languagetool ltex

This commit is contained in:
Christoph J. Scherr 2024-03-12 22:40:55 +01:00
parent 2673b3ce1e
commit c30637ace3
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
5 changed files with 25 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ coc-settings.json
lazy-lock.json
after
**/.DS_Store
lua/custom/secret

View File

@ -54,6 +54,11 @@ M.ltex = {
"html",
"xhtml",
},
languageToolOrg = {
apiKey = require "custom.secret.languagetool_token",
username = "accounts@cscherr.de",
languageToolHttpServerUrl = "https://api.languagetoolplus.com/v2/",
},
},
},
}

View File

@ -899,6 +899,21 @@ local plugins = {
vim.g.mkdp_echo_preview_url = 1
end,
},
{
"rhysd/vim-grammarous",
enabled = false,
-- TODO: figure out how i can login to languagetool.org
lazy = false,
config = function()
vim.g["grammarous#jar_url"] = "https://www.languagetool.org/download/LanguageTool-5.9.zip"
vim.g["grammarous#use_vim_spelllang"] = 1
vim.cmd [[
let g:grammarous#default_comments_only_filetypes = {
\ '*' : 1, 'help' : 0, 'markdown' : 0,
\ }
]]
end,
},
}
return plugins

View File

@ -303,3 +303,7 @@ libpt
T2000
TINF22CS
Fliegendes/!
Gewöhnungsphase
Notfallmaßnahmen
übergriffig
Eligswalde

Binary file not shown.