mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Add ltex-ls support to lsp. (#166)
* Add ltex-ls support to lsp. Co-authored-by: bldur (https://github.com/bldur)
This commit is contained in:
parent
43c1615822
commit
53c17aea96
@ -131,6 +131,20 @@ end
|
|||||||
-- vim.notify("pyright not found!", vim.log.levels.WARN, {title = 'Nvim-config'})
|
-- vim.notify("pyright not found!", vim.log.levels.WARN, {title = 'Nvim-config'})
|
||||||
-- end
|
-- end
|
||||||
|
|
||||||
|
if utils.executable("ltex-ls") then
|
||||||
|
lspconfig.ltex.setup {
|
||||||
|
on_attach = custom_attach,
|
||||||
|
cmd = { "ltex-ls" },
|
||||||
|
filetypes = { "text", "plaintex", "tex", "markdown" },
|
||||||
|
settings = {
|
||||||
|
ltex = {
|
||||||
|
language = "en"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
flags = { debounce_text_changes = 300 },
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
if utils.executable("clangd") then
|
if utils.executable("clangd") then
|
||||||
lspconfig.clangd.setup {
|
lspconfig.clangd.setup {
|
||||||
on_attach = custom_attach,
|
on_attach = custom_attach,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user