diff options
Diffstat (limited to 'lua/pi/lsp/servers/texlab.lua')
| -rw-r--r-- | lua/pi/lsp/servers/texlab.lua | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/lua/pi/lsp/servers/texlab.lua b/lua/pi/lsp/servers/texlab.lua index 523628b..810bae4 100644 --- a/lua/pi/lsp/servers/texlab.lua +++ b/lua/pi/lsp/servers/texlab.lua @@ -1,16 +1,18 @@ 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 = { - ["texlab"] = { - latexFormatter = "latexindent", - latexindent = { - modifyLineBreaks = false - } - } - } - }, ops) + on_attach = lsp_attach, + flags = lsp_flags, + capabilities = capabilities, + settings = { + ["texlab"] = { + latexFormatter = "latexindent", + latexindent = { + modifyLineBreaks = false, + }, + }, + }, + }, ops) end |