diff --git a/lua/custom/lspconfig.lua b/lua/custom/lspconfig.lua index 346a5ff..0989631 100644 --- a/lua/custom/lspconfig.lua +++ b/lua/custom/lspconfig.lua @@ -12,6 +12,28 @@ end local keymap = vim.keymap -- for conciseness +---------- border >------------------------------ +local _border = "single" +require('lspconfig.ui.windows').default_options = { + border = _border +} +vim.lsp.handlers["textDocument/hover"] = vim.lsp.with( + vim.lsp.handlers.hover, { + border = _border + } +) + +vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with( + vim.lsp.handlers.signature_help, { + border = _border + } +) + +vim.diagnostic.config { + float = { border = _border } +} +---------- rn", "lua vim.lsp.buf.rename()", opts) -- format code keymap.set("n", "ca", "lua vim.lsp.buf.code_action()", opts) -- see available code actions keymap.set("n", "ed", "Telescope diagnostics", opts) -- jump to previous diagnostic in buffer + -- keymap.set("n", "K", "lua vim.lsp.buf.hover()", opts) -- show documentation for what is under cursor keymap.set( "n", "cbf", @@ -33,8 +56,7 @@ local on_attach = function(_, bufnr) { noremap = true, silent = false, buffer = bufnr } ) - keymap.set("n", "o", "LSoutlineToggle", opts) -- see outline on right hand side - keymap.set("n", "K", "lua vim.lsp.buf.hover()", opts) -- show documentation for what is under cursor + keymap.set("n", "o", "Lspsaga outline", opts) -- see outline on right hand side -- LSP Saga