summaryrefslogtreecommitdiff
path: root/lua/lsp/null-ls.lua
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-07-28 19:33:49 +0430
committerGitHub <[email protected]>2021-07-28 11:03:49 -0400
commit21971cbed54905f38651f0484f9546d69dee9bc5 (patch)
treee07f4f8144a43644f5b16d733631acb755307389 /lua/lsp/null-ls.lua
parent2ec446e21edd292acd4634837eee3abef5def9b5 (diff)
null-ls formatter name is different from its command (#1141)
* null-ls formatter name is different from it's command * add more language support * nil is unnecessary
Diffstat (limited to 'lua/lsp/null-ls.lua')
-rw-r--r--lua/lsp/null-ls.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lsp/null-ls.lua b/lua/lsp/null-ls.lua
index 48924be5..5008144f 100644
--- a/lua/lsp/null-ls.lua
+++ b/lua/lsp/null-ls.lua
@@ -43,7 +43,7 @@ local function setup_ls(exe, type)
end
end
else
- if vim.fn.executable(exe) == 1 then
+ if null_ls.builtins[type][exe] and vim.fn.executable(null_ls.builtins[type][exe]._opts.command) then
table.insert(sources, null_ls.builtins[type][exe])
end
end