aboutsummaryrefslogtreecommitdiffstats
path: root/lua/pi/lsp/servers/smarty_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pi/lsp/servers/smarty_ls.lua')
-rw-r--r--lua/pi/lsp/servers/smarty_ls.lua34
1 files changed, 18 insertions, 16 deletions
diff --git a/lua/pi/lsp/servers/smarty_ls.lua b/lua/pi/lsp/servers/smarty_ls.lua
index bf29082..88e4b22 100644
--- a/lua/pi/lsp/servers/smarty_ls.lua
+++ b/lua/pi/lsp/servers/smarty_ls.lua
@@ -2,24 +2,26 @@ local lsp_attach = require "pi.lsp.attach"
local lsp_flags = require "pi.lsp.flags"
return function(ops)
+ local capabilities = require("blink.cmp").get_lsp_capabilities(vim.lsp.protocol.make_client_capabilities())
return vim.tbl_extend("force", {
- on_attach = lsp_attach,
- flags = lsp_flags,
- settings = {
- css = {
- validate = true
- },
- smarty = {
- pluginDirs = {}
- },
- ["smarty_ls"] = {
- checkOnSave = {
- overrideCommand = {
- "smarty-language-server",
- "--stdio",
- },
+ on_attach = lsp_attach,
+ flags = lsp_flags,
+ capabilities = capabilities,
+ settings = {
+ css = {
+ validate = true,
+ },
+ smarty = {
+ pluginDirs = {},
+ },
+ ["smarty_ls"] = {
+ checkOnSave = {
+ overrideCommand = {
+ "smarty-language-server",
+ "--stdio",
},
},
},
- }, ops)
+ },
+ }, ops)
end