Fix so definition and diagnostic lsp actions in nvim has reuse_win =

true
This commit is contained in:
Martin Lasson 2025-01-30 20:51:49 +01:00
parent 865ee21b8f
commit 04e06142c2

View file

@ -26,9 +26,12 @@ local function global_on_attach(client, bufnr)
utils.add_keymaps({ utils.add_keymaps({
n = { n = {
["gd"] = { ["gd"] = {
cmd = function() cmd = function()
vim.lsp.buf.definition() vim.lsp.buf.definition({
reuse_win = true,
})
end, end,
opts = { opts = {
noremap = true, noremap = true,
@ -38,7 +41,9 @@ local function global_on_attach(client, bufnr)
}, },
["gD"] = { ["gD"] = {
cmd = function() cmd = function()
vim.lsp.buf.declaration() vim.lsp.buf.declaration({
reuse_win = true,
})
end, end,
opts = { opts = {
noremap = true, noremap = true,