Skip to content

Commit

Permalink
feat(lsp_servers): added LSP for LaTeX
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-grigoriev committed Oct 5, 2023
1 parent c27cf51 commit e6f4be0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lsp/lsp_servers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ local filename_to_lsp_name = {
['lsp/servers/_cpp'] = 'clangd',
['lsp/servers/_toml'] = 'taplo',
['lsp/servers/_xml'] = 'lemminx',
['lsp/servers/_vim'] = 'vimls'
['lsp/servers/_vim'] = 'vimls',
['lsp/servers/_latex'] = 'ltex-ls'
}

for filename, lsp_name in pairs(filename_to_lsp_name) do
Expand Down
12 changes: 12 additions & 0 deletions lua/lsp/servers/_latex.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
local lspconfig = require('lspconfig')

lspconfig.ltex.setup {
cmd = { "ltex-ls" },
filetypes = { "text", "plaintex", "tex", "markdown" },
settings = {
ltex = {
language = "ru"
},
},
flags = { debounce_text_changes = 300 },
}

0 comments on commit e6f4be0

Please sign in to comment.