feat(nvim): make ltex use vim dictionary
This commit is contained in:
parent
0f91c11aea
commit
fa54bfe71d
@ -281,6 +281,25 @@ lspconfig.powershell_es.setup({
|
|||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local path = vim.fn.stdpath("config") .. "/spell/en.utf-8.add"
|
||||||
|
local words = {}
|
||||||
|
|
||||||
|
for word in io.open(path, "r"):lines() do
|
||||||
|
table.insert(words, word)
|
||||||
|
end
|
||||||
|
|
||||||
|
lspconfig.ltex.setup({
|
||||||
|
settings = {
|
||||||
|
ltex = {
|
||||||
|
dictionary = {
|
||||||
|
["en-US"] = words,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
capabilities = lsp_capabilities,
|
||||||
|
on_attach = on_attach,
|
||||||
|
})
|
||||||
|
|
||||||
-- NOTE: GENERIC LSP SERVERS
|
-- NOTE: GENERIC LSP SERVERS
|
||||||
for _, server in ipairs({
|
for _, server in ipairs({
|
||||||
"clangd",
|
"clangd",
|
||||||
|
Loading…
Reference in New Issue
Block a user