summaryrefslogtreecommitdiff
path: root/lua/lvim/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim/lsp')
-rw-r--r--lua/lvim/lsp/init.lua4
-rw-r--r--lua/lvim/lsp/manager.lua13
2 files changed, 2 insertions, 15 deletions
diff --git a/lua/lvim/lsp/init.lua b/lua/lvim/lsp/init.lua
index 5bdebe52..2f3258c9 100644
--- a/lua/lvim/lsp/init.lua
+++ b/lua/lvim/lsp/init.lua
@@ -50,10 +50,10 @@ end
function M.common_on_exit(_, _)
if lvim.lsp.document_highlight then
- pcall(vim.api.nvim_del_augroup_by_name, "lsp_document_highlight")
+ autocmds.clear_augroup "lsp_document_highlight"
end
if lvim.lsp.code_lens_refresh then
- pcall(vim.api.nvim_del_augroup_by_name, "lsp_code_lens_refresh")
+ autocmds.clear_augroup "lsp_code_lens_refresh"
end
end
diff --git a/lua/lvim/lsp/manager.lua b/lua/lvim/lsp/manager.lua
index 2f24298d..9e898841 100644
--- a/lua/lvim/lsp/manager.lua
+++ b/lua/lvim/lsp/manager.lua
@@ -3,19 +3,6 @@ local M = {}
local Log = require "lvim.core.log"
local lvim_lsp_utils = require "lvim.lsp.utils"
-function M.init_defaults(languages)
- languages = languages or lvim_lsp_utils.get_all_supported_filetypes()
- for _, entry in ipairs(languages) do
- if not lvim.lang[entry] then
- lvim.lang[entry] = {
- formatters = {},
- linters = {},
- lsp = {},
- }
- end
- end
-end
-
---Resolve the configuration for a server by merging with the default config
---@param server_name string
---@vararg any config table [optional]