fix: fixed lspconfig issues and cleaned up
This commit is contained in:
parent
cdf18fd334
commit
f8b5571466
4 changed files with 25 additions and 28 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue