diff options
author | Luc Sinet <[email protected]> | 2021-08-13 22:32:56 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-14 01:02:56 +0430 |
commit | 70d139ac2771fac9b072aaebe505f9ac77480b2a (patch) | |
tree | f914460477982486f20bb00676f8a36c89618635 /lua/lsp/init.lua | |
parent | 53869f00be7eda020088342e6e1a160ef5fc2a53 (diff) |
[Refactor/Bugfix] Improve null ls handler (#1277)
Diffstat (limited to 'lua/lsp/init.lua')
-rw-r--r-- | lua/lsp/init.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index e4ea02db..891147e5 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -1,5 +1,6 @@ local M = {} local Log = require "core.log" + function M.config() vim.lsp.protocol.CompletionItemKind = lvim.lsp.completion.item_kind @@ -127,13 +128,13 @@ function M.common_on_attach(client, bufnr) end function M.setup(lang) + local lsp_utils = require "lsp.utils" local lsp = lvim.lang[lang].lsp - if require("utils").check_lsp_client_active(lsp.provider) then + if lsp_utils.is_client_active(lsp.provider) then return end local overrides = lvim.lsp.override - if type(overrides) == "table" then if vim.tbl_contains(overrides, lang) then return |