Cleanup and stuff

This commit is contained in:
Robert Morrison 2022-07-25 20:36:43 +01:00
parent a7eb7106fe
commit ce9a15e83b
Signed by: robert
GPG Key ID: 73E012EB3F4EC696

View File

@ -16,7 +16,10 @@ if vim.fn.exists('+winbar') ~= 0 then
}
})
else
saga.init_lsp_saga()
saga.init_lsp_saga({
-- diagnostic sign
diagnostic_header = { "", "", "", "" },
})
end
-- Here we map keys since it makes sense to do it here
@ -24,18 +27,10 @@ end
local action = require("lspsaga.codeaction")
vim.keymap.set("n", "<leader>lca", action.code_action, { silent = true,noremap = true })
vim.keymap.set("n","<leader>lca",function ()
vim.keymap.set("v", "<leader>lca", function()
vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<C-U>", true, false, true))
action.range_code_action()
end, { silent = true,noremap =true })
--local gr = vim.api.nvim_create_augroup("LspSaga_Hover",{clear = true})
--vim.api.nvim_create_autocmd("CursorHold",{
--pattern = {"*"},
--callback = function ()
--require("lspsaga.hover").render_hover_doc()
--end,
--group = gr
--}
--)