diff --git a/.config/nvim/lua/plugins/harper.lua b/.config/nvim/lua/plugins/harper.lua index d476041d..c3037240 100644 --- a/.config/nvim/lua/plugins/harper.lua +++ b/.config/nvim/lua/plugins/harper.lua @@ -1,3 +1,25 @@ +local harperSettings = { + fileDictPath = "/home/fic/.config/harper-ls/file_dictionaries/", + userDictPath = "/home/fic/.config/harper-ls/dictionary.txt", + linters = { + spell_check = true, + spelled_numbers = false, + an_a = true, + sentence_capitalization = true, + unclosed_quotes = true, + wrong_quotes = false, + long_sentences = true, + repeated_words = true, + spaces = true, + matcher = true, + correct_number_suffix = true, + number_suffix_capitalization = true, + multiple_sequential_pronouns = true, + linking_verbs = false, + avoid_curses = true, + terminating_conjunctions = true, + }, +} return { { "neovim/nvim-lspconfig", @@ -8,33 +30,6 @@ return { filetypes = { "markdown", }, - -- on_attach = function(client, bufnr) - -- require("ltex_extra").setup(extraOpts) - -- end, - settings = { - harper_ls = { - fileDictPath = "/home/fic/.config/harper-ls/file_dictionaries/", - userDictPath = "/home/fic/.config/harper-ls/dictionary.txt", - linters = { - spell_check = true, - spelled_numbers = false, - an_a = true, - sentence_capitalization = true, - unclosed_quotes = true, - wrong_quotes = false, - long_sentences = true, - repeated_words = true, - spaces = true, - matcher = true, - correct_number_suffix = true, - number_suffix_capitalization = true, - multiple_sequential_pronouns = true, - linking_verbs = false, - avoid_curses = true, - terminating_conjunctions = true, - }, - }, - }, }, }, },