fix: fixed lspconfig issues and cleaned up
This commit is contained in:
@@ -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) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user