Skip to content

Instantly share code, notes, and snippets.

View ayghri's full-sized avatar

Ayoub Ghriss ayghri

View GitHub Profile
@ayghri
ayghri / ltex.lua
Last active July 20, 2023 15:52 — forked from lbiaggi/ltex.lua
lspconfig - Implement addToDictionary for ltex
local S = {}
-- define the files for each language
-- new words will be added to the last file in the language table
S.dictionaries = {
["en-US"] = { vim.fn.stdpath("config") .. "/spell/en.txt" },
}
-- function to avoid interacting with the table directly
function S.getDictFiles(lang)