From e7d4ff89e92fae41da14740f844c72fb5f54c9a4 Mon Sep 17 00:00:00 2001 From: siduck Date: Sun, 19 May 2024 13:37:17 +0530 Subject: [PATCH] remove some diagnostic/lsp mappings cuz 0.10 adds them by default --- lua/nvchad/configs/lspconfig.lua | 1 - lua/nvchad/mappings.lua | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lua/nvchad/configs/lspconfig.lua b/lua/nvchad/configs/lspconfig.lua index cab37ca..f6f1b0f 100644 --- a/lua/nvchad/configs/lspconfig.lua +++ b/lua/nvchad/configs/lspconfig.lua @@ -10,7 +10,6 @@ M.on_attach = function(client, bufnr) map("n", "gD", vim.lsp.buf.declaration, opts "Go to declaration") map("n", "gd", vim.lsp.buf.definition, opts "Go to definition") - map("n", "K", vim.lsp.buf.hover, opts "hover information") map("n", "gi", vim.lsp.buf.implementation, opts "Go to implementation") map("n", "sh", vim.lsp.buf.signature_help, opts "Show signature help") map("n", "wa", vim.lsp.buf.add_workspace_folder, opts "Add workspace folder") diff --git a/lua/nvchad/mappings.lua b/lua/nvchad/mappings.lua index 8730906..494a98a 100644 --- a/lua/nvchad/mappings.lua +++ b/lua/nvchad/mappings.lua @@ -26,10 +26,7 @@ map("n", "fm", function() end, { desc = "format files" }) -- global lsp mappings -map("n", "lf", vim.diagnostic.open_float, { desc = "lsp floating diagnostics" }) -map("n", "[d", vim.diagnostic.goto_prev, { desc = "lsp prev diagnostic" }) -map("n", "]d", vim.diagnostic.goto_next, { desc = "lsp next diagnostic" }) -map("n", "q", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" }) +map("n", "ds", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" }) -- tabufline map("n", "b", "enew", { desc = "buffer new" })