Fix so definition and diagnostic lsp actions in nvim has reuse_win =
true
This commit is contained in:
parent
865ee21b8f
commit
04e06142c2
1 changed files with 7 additions and 2 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue