aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-01-06 11:10:56 -0700
committerGitHub <noreply@github.com>2022-01-06 11:10:56 -0700
commitd78e46679d2ff31916091f9368367ccc1539c299 (patch)
treeeab41e8ecf863638324ed85769df5c42451f1fce /runtime/lua/vim/lsp/util.lua
parent2f779e33615d41e4472b3705e68ef9465b5f5d4e (diff)
downloadrneovim-d78e46679d2ff31916091f9368367ccc1539c299.tar.gz
rneovim-d78e46679d2ff31916091f9368367ccc1539c299.tar.bz2
rneovim-d78e46679d2ff31916091f9368367ccc1539c299.zip
feat(lua): add notify_once() (#16956)
Like vim.notify(), but only displays the notification once.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index dcd68a3433..0af4fcb036 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -10,14 +10,6 @@ local uv = vim.loop
local npcall = vim.F.npcall
local split = vim.split
-local _warned = {}
-local warn_once = function(message)
- if not _warned[message] then
- vim.api.nvim_err_writeln(message)
- _warned[message] = true
- end
-end
-
local M = {}
local default_border = {
@@ -1928,7 +1920,6 @@ function M.lookup_section(settings, section)
end
M._get_line_byte_from_position = get_line_byte_from_position
-M._warn_once = warn_once
M.buf_versions = {}