diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-12-02 23:02:50 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-12-02 23:02:50 +0100 |
commit | 8213801b89e9d2a27c6b1df50881b8476679b870 (patch) | |
tree | ecd4a1e2489cff11c4e3c703dc80111d26b97a7a /.config/nvim/lua/lsp/null-ls/linters.lua | |
parent | a3690ed8ca90823787fbaddb72f0a1874f1e999d (diff) |
LunarVim updates
Diffstat (limited to '.config/nvim/lua/lsp/null-ls/linters.lua')
-rw-r--r-- | .config/nvim/lua/lsp/null-ls/linters.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.config/nvim/lua/lsp/null-ls/linters.lua b/.config/nvim/lua/lsp/null-ls/linters.lua index 0d34365..ec5e25a 100644 --- a/.config/nvim/lua/lsp/null-ls/linters.lua +++ b/.config/nvim/lua/lsp/null-ls/linters.lua @@ -4,7 +4,13 @@ local null_ls = require "null-ls" local services = require "lsp.null-ls.services" local Log = require "core.log" -local is_registered = require("null-ls.sources").is_registered +local is_registered = function(name) + local query = { + name = name, + method = require("null-ls").methods.DIAGNOSTICS, + } + return require("null-ls.sources").is_registered(query) +end function M.list_registered_providers(filetype) local null_ls_methods = require "null-ls.methods" |