all repos

init.lua @ d818ee8

my nvim config
1 files changed, 2 insertions(+), 4 deletions(-)
updated lsp opts config setup
Author: Smirnov Alexander ss2316544@gmail.com
Committed at: 2022-03-26 19:08:59 +0200
Parent: 531acfb
M lua/fk/lsp/init.lua

@@ -4,13 +4,11 @@ function M.setup()

require "fk.lsp.diagnostic"() require "fk.lsp.null" require("nvim-lsp-installer").on_server_ready(function(server) - local opts = { + local opts = require "fk.lsp.providers"(server, { on_attach = require "fk.lsp.attach", capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()), flags = { debounce_text_changes = 150 }, - } - - opts = require "fk.lsp.providers"(server, opts) + }) server:setup(opts) vim.cmd [[ do User LspAttachBuffers ]]