2 files changed,
13 insertions(+),
7 deletions(-)
Author:
Smirnov Alexander
ss2316544@gmail.com
Committed at:
2022-03-26 19:08:59 +0200
Parent:
9edf309
jump to
| M | lua/fk/lsp/diagnostic.lua |
| M | lua/fk/lsp/init.lua |
M
lua/fk/lsp/diagnostic.lua
@@ -1,4 +1,4 @@
-return { +local diagnostic = { virtual_text = true, update_in_insert = false, underline = true,@@ -20,3 +20,14 @@ header = "",
prefix = "", }, } + +return function() + vim.diagnostic.config(diagnostic) + for _, sign in ipairs(diagnostic.signs.active) do + vim.fn.sign_define(sign.name, { + texthl = sign.name, + text = sign.text, + numhl = "", + }) + end +end
M
lua/fk/lsp/init.lua
@@ -1,12 +1,7 @@
-local diagnostic = require "fk.lsp.diagnostic" local M = {} function M.setup() - vim.diagnostic.config(diagnostic) - for _, sign in ipairs(diagnostic.signs.active) do - vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" }) - end - + require "fk.lsp.diagnostic"() require "fk.lsp.null" require("nvim-lsp-installer").on_server_ready(function(server) local opts = {