fix: fixed lspconfig issues and cleaned up

This commit is contained in:
Leon Heidelbach 2022-05-26 17:49:13 +02:00 committed by siduck
parent cdf18fd334
commit f8b5571466
4 changed files with 25 additions and 28 deletions

View file

@ -28,7 +28,7 @@ M.on_attach = function(client, bufnr)
lsp_mappings[1]["mode_opts"] = { buffer = bufnr }
if not nvchad.whichKey_map(lsp_mappings, options) then
nvchad.no_WhichKey_table_map(lsp_mappings)
nvchad.no_WhichKey_map(lsp_mappings)
end
end

View file

@ -1,9 +1,3 @@
local present, wk = pcall(require, "which-key")
if not present then
return
end
local M = {}
M.options = {
@ -60,6 +54,12 @@ M.options = {
M.options = nvchad.load_override(M.options, "folke/which-key.nvim")
M.setup = function()
local present, wk = pcall(require, "which-key")
if not present then
return
end
local mappings = nvchad.load_config().mappings
local mapping_groups = { groups = vim.deepcopy(mappings.groups) }