2 files changed,
25 insertions(+),
0 deletions(-)
jump to
| A | lua/lsp/diagnostic.lua |
| M | lua/lsp/init.lua |
A
lua/lsp/diagnostic.lua
@@ -0,0 +1,22 @@
+return { + virtual_text = false, + update_in_insert = true, + underline = true, + severity_sort = true, + signs = { + active = { + { name = "DiagnosticSignError", text = "" }, + { name = "DiagnosticSignWarn", text = "" }, + { name = "DiagnosticSignHint", text = "" }, + { name = "DiagnosticSignInfo", text = "" }, + }, + }, + float = { + focusable = false, + style = "minimal", + border = "rounded", + source = "always", + header = "", + prefix = "", + }, +}
M
lua/lsp/init.lua
@@ -1,7 +1,10 @@
local on_attach = require "lsp.attach" +local diagnostic = require "lsp.diagnostic" local M = {} function M.setup() + vim.diagnostic.config(diagnostic) + require("nvim-lsp-installer").on_server_ready(function(server) local opts = { on_attach = on_attach,