make lsphandlers overridable

This commit is contained in:
siduck 2021-12-15 20:27:54 +05:30
parent 01f652fcc4
commit abcd035e89

View File

@ -1,3 +1,5 @@
require("plugins.configs.others").lsp_handlers()
local function on_attach(_, bufnr)
local function buf_set_keymap(...)
vim.api.nvim_buf_set_keymap(bufnr, ...)
@ -56,5 +58,3 @@ local addlsp_confs = require("core.utils").load_config().plugins.options.lspconf
if #addlsp_confs ~= 0 then
require(addlsp_confs).setup_lsp(on_attach, capabilities)
end
require("plugins.configs.others").lsp_handlers()