chore: some random updates

This commit is contained in:
Mariano Z. 2025-02-04 21:00:06 -03:00
parent c52e7a518e
commit 74529c72d8
Signed by: marianozunino
GPG key ID: 4C73BAD25156DACE
6 changed files with 54 additions and 56 deletions

View file

@ -1,20 +1,15 @@
local M = {
"SmiteshP/nvim-navic",
"nvimdev/lspsaga.nvim",
}
M.config = function()
require("nvim-navic").setup({
icons = icons.kind,
highlight = true,
lsp = {
auto_attach = true,
require("lspsaga").setup({
lightbulb = {
enable = false,
},
click = true,
separator = " " .. icons.ui.ChevronRight .. " ",
depth_limit = 0,
depth_limit_indicator = "..",
})
vim.o.winbar = "%{%v:lua.require'nvim-navic'.get_location()%}"
nmap("K", "<cmd>Lspsaga hover_doc<cr>")
nmap("pd", "<cmd>Lspsaga peek_definition<cr>")
end
return M

View file

@ -32,6 +32,7 @@ end
local function setup_keymaps(bufnr)
local keymaps = {
{ "<C-h>", vim.lsp.buf.signature_help, "Signature Help" },
-- { "K", vim.lsp.buf.hover, "Hover Doc"},
{ "<leader>cw", vim.lsp.buf.rename, "Rename" },
{ "<leader>r", vim.lsp.buf.rename, "Rename" },
{ "vd", vim.diagnostic.open_float, "Open Diagnostics" },