Compare commits

...

2 Commits

Author SHA1 Message Date
siduck
020b8e4428 nvcheatsheet: exclude Opens group #2846 2024-05-19 19:35:06 +05:30
siduck
e7d4ff89e9 remove some diagnostic/lsp mappings cuz 0.10 adds them by default 2024-05-19 13:37:17 +05:30
3 changed files with 2 additions and 6 deletions

View File

@ -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.declaration, opts "Go to declaration")
map("n", "gd", vim.lsp.buf.definition, opts "Go to definition") 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", "gi", vim.lsp.buf.implementation, opts "Go to implementation")
map("n", "<leader>sh", vim.lsp.buf.signature_help, opts "Show signature help") map("n", "<leader>sh", vim.lsp.buf.signature_help, opts "Show signature help")
map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, opts "Add workspace folder") map("n", "<leader>wa", vim.lsp.buf.add_workspace_folder, opts "Add workspace folder")

View File

@ -26,10 +26,7 @@ map("n", "<leader>fm", function()
end, { desc = "format files" }) end, { desc = "format files" })
-- global lsp mappings -- global lsp mappings
map("n", "<leader>lf", vim.diagnostic.open_float, { desc = "lsp floating diagnostics" }) map("n", "<leader>ds", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" })
map("n", "[d", vim.diagnostic.goto_prev, { desc = "lsp prev diagnostic" })
map("n", "]d", vim.diagnostic.goto_next, { desc = "lsp next diagnostic" })
map("n", "<leader>q", vim.diagnostic.setloclist, { desc = "lsp diagnostic loclist" })
-- tabufline -- tabufline
map("n", "<leader>b", "<cmd>enew<CR>", { desc = "buffer new" }) map("n", "<leader>b", "<cmd>enew<CR>", { desc = "buffer new" })

View File

@ -63,7 +63,7 @@ M.ui = {
cheatsheet = { cheatsheet = {
theme = "grid", -- simple/grid theme = "grid", -- simple/grid
excluded_groups = { "terminal (t)", "autopairs", "Nvim" }, -- can add group name or with mode excluded_groups = { "terminal (t)", "autopairs", "Nvim", "Opens" }, -- can add group name or with mode
}, },
lsp = { signature = true }, lsp = { signature = true },