Fix so we use lspsagas hover doc instead of default one. Change lspsaga

to use rounded corners. Change to use vimbuilt in diagnostics jump
without spawning floating windows.
This commit is contained in:
Martin Larsson 2025-01-13 01:00:35 +01:00
parent cdfa4fe2d8
commit 0c466f10ae
2 changed files with 17 additions and 8 deletions

View file

@ -19,6 +19,11 @@ local move_down = {
require("utils").add_keymaps({
n = {
-- Using lspsaga for hover doc
["K"] = {
cmd = "nop",
},
-- Navigation
["<C-Left>"] = {
cmd = "<C-w>h",
@ -81,6 +86,16 @@ require("utils").add_keymaps({
["<leader>m"] = {
cmd = "m",
},
["[d"] = {
cmd = function()
vim.diagnostic.jump({ count = -1, float = false })
end
},
["]d"] = {
cmd = function()
vim.diagnostic.jump({ count = 1, float = false })
end
},
},
i = {},
v = {

View file

@ -19,8 +19,8 @@ return {
win_width = 52,
},
ui = {
border = "single",
title = false
border = "rounded",
title = false,
},
code_action = {
extend_gitsigns = true
@ -29,12 +29,6 @@ return {
local keymaps = {
n = {
["[d"] = {
cmd = ":Lspsaga diagnostic_jump_prev<CR>"
},
["]d"] = {
cmd = ":Lspsaga diagnostic_jump_next<CR>"
},
["K"] = {
cmd = ":Lspsaga hover_doc<CR>"
},