diff options
author | Luc Sinet <[email protected]> | 2021-08-14 22:02:17 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-15 00:32:17 +0430 |
commit | 6e0f56f09ec66f7e00ec095456fb113fdf6b07cb (patch) | |
tree | a59c1e018223fc450ac08d11e4030f3f197aef28 /lua/lsp/null-ls/linters.lua | |
parent | 0fbf66e379f10d816d875583f6805ab7e3ea9e78 (diff) |
[Bugfix] Support extending null builtin args (#1317)
Diffstat (limited to 'lua/lsp/null-ls/linters.lua')
-rw-r--r-- | lua/lsp/null-ls/linters.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lua/lsp/null-ls/linters.lua b/lua/lsp/null-ls/linters.lua index 780a9c4d..64d2db4a 100644 --- a/lua/lsp/null-ls/linters.lua +++ b/lua/lsp/null-ls/linters.lua @@ -7,14 +7,9 @@ local logger = require("core.log"):get_default() local function list_names(linters, options) options = options or {} - local names = {} - local filter = options.filter or "supported" - for name, _ in pairs(linters[filter]) do - table.insert(names, name) - end - return names + return vim.tbl_keys(linters[filter]) end function M.list_supported_names(filetype) @@ -59,7 +54,7 @@ function M.list_configured(linter_configs) errors[lnt_config.exe] = {} -- Add data here when necessary else logger.info("Using linter:", linter_cmd) - linters[lnt_config.exe] = linter.with { command = linter_cmd, args = lnt_config.args } + linters[lnt_config.exe] = linter.with { command = linter_cmd, extra_args = lnt_config.args } end end end |