Update nvim

This commit is contained in:
Pablu23
2025-08-03 15:46:52 +02:00
parent 17e24ac90c
commit 7920f81c93
4 changed files with 17 additions and 2 deletions

View File

@@ -7,8 +7,8 @@ return {
config = function()
local capabilities = require("cmp_nvim_lsp").default_capabilities()
local handlers = {
["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded" }),
["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = "rounded" }),
-- ["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded" }),
-- ["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = "rounded" }),
}
require("mason").setup()
@@ -24,6 +24,7 @@ return {
"clangd",
"omnisharp",
"yamlls",
"svelte",
},
handlers = {
function(server_name)

View File

@@ -6,6 +6,8 @@ return {
sources = {
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.gofmt,
null_ls.builtins.formatting.prettierd,
null_ls.builtins.formatting.black
},
})
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})

11
lua/plugins/trouble.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
"folke/trouble.nvim",
opts = {},
cmd = "Trouble",
keys = {
{
"<leader>dd",
"<cmd>Trouble diagnostics toggle<cr>"
}
}
}

View File

@@ -9,4 +9,5 @@ vim.cmd("highlight Normal guibg=none")
vim.cmd("highlight NonText guibg=none")
vim.cmd("highlight Normal ctermbg=none")
vim.cmd("highlight NonText ctermbg=none")
vim.o.winborder='rounded'