all repos

init.lua @ 41349dd

my nvim config
2 files changed, 25 insertions(+), 0 deletions(-)
update lsp diagnostics
Author: flof-ik ss2316544@gmail.com
Committed at: 2022-02-17 17:56:36 +0200
Parent: 47417c1
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,