Addition of dictionary files for LaTeX lsp

This commit is contained in:
Eduardo Cueto-Mendoza 2023-07-26 09:46:02 +01:00
parent 33652face2
commit 35c7a9d291
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
CIFAR
MNIST
LeNet
MUL
BCNN

View File

@ -27,10 +27,20 @@ require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
require('lspconfig').texlab.setup({}) require('lspconfig').texlab.setup({})
local path = vim.fn.stdpath("config") .. "/after/plugin/dictionary-gb.txt"
local words = {}
for word in io.open(path, "r"):lines() do
table.insert(words, word)
end
require('lspconfig').ltex.setup({ require('lspconfig').ltex.setup({
settings = { settings = {
ltex = { ltex = {
language = "en-GB", language = "en-GB",
dictionary = {
["en-GB"] = words,
},
}, },
}, },
}) })