feat: UI improvements

This commit is contained in:
2026-04-26 14:21:13 +02:00
parent c61efc6f5c
commit c5e3f674b6
7 changed files with 25 additions and 41 deletions
@@ -24,19 +24,6 @@ require("lz.n").load({
})
end,
},
{
"nvim-navic",
after = function()
require("nvim-navic").setup({
highlight = true,
separator = " > ",
depth_limit = 5,
lsp = {
auto_attach = false,
},
})
end,
},
{
"nvim-lspconfig",
event = { "BufReadPre", "BufNewFile" },
@@ -58,9 +45,7 @@ require("lz.n").load({
end
end
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded" })
vim.lsp.handlers["textDocument/signatureHelp"] =
vim.lsp.with(vim.lsp.handlers.signature_help, { border = "rounded" })
local lsp_float = { border = "single" }
local navic_excluded_filetypes = {
[""] = true,
@@ -124,7 +109,12 @@ require("lz.n").load({
map("<leader>rn", vim.lsp.buf.rename, "[R]e[n]ame")
map("<leader>ca", vim.lsp.buf.code_action, "[C]ode [A]ction", { "n", "x" })
map("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration")
map("K", vim.lsp.buf.hover, "Hover Documentation")
map("K", function()
vim.lsp.buf.hover(lsp_float)
end, "Hover Documentation")
map("<C-s>", function()
vim.lsp.buf.signature_help(lsp_float)
end, "Signature Help", { "i", "s" })
map("gd", telescope_picker("lsp_definitions"), "[G]oto [D]efinition")
map("gr", telescope_picker("lsp_references"), "[G]oto [R]eferences")
@@ -191,7 +181,7 @@ require("lz.n").load({
current_line = true,
},
float = {
border = "rounded",
border = "single",
source = "if_many",
},
})
@@ -253,7 +243,7 @@ require("lz.n").load({
require("trouble").setup({
focus = true,
preview = {
border = "rounded",
border = "single",
},
})
end,