feat: use templ if it is installed in path
This commit is contained in:
@@ -79,7 +79,13 @@ local lsps = {
|
||||
root_dir = nil,
|
||||
},
|
||||
-- ["tailwindcss"] = {},
|
||||
["templ"] = {},
|
||||
["templ"] = function()
|
||||
if vim.fn.executable("templ") then
|
||||
return {}
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end,
|
||||
["ts_ls"] = {},
|
||||
["rust_analyzer"] = {},
|
||||
["unocss"] = function()
|
||||
@@ -103,6 +109,10 @@ return {
|
||||
v = v()
|
||||
end
|
||||
|
||||
if v == nil then
|
||||
return
|
||||
end
|
||||
|
||||
v.capabilities = require("blink.cmp").get_lsp_capabilities(v.capabilities)
|
||||
lsp[k].setup(v)
|
||||
end
|
||||
|
||||
@@ -80,7 +80,6 @@
|
||||
lua-language-server
|
||||
nil
|
||||
tailwindcss-language-server
|
||||
templ
|
||||
typescript-language-server
|
||||
rust-analyzer
|
||||
vscode-langservers-extracted
|
||||
|
||||
Reference in New Issue
Block a user