From c30637ace3a513cdc4ce702bc14a4e6cb70dda4d Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Tue, 12 Mar 2024 22:40:55 +0100 Subject: [PATCH] languagetool ltex --- .gitignore | 1 + lua/custom/configs/lspsettings.lua | 5 +++++ lua/custom/plugins.lua | 15 +++++++++++++++ spell/en.utf-8.add | 4 ++++ spell/en.utf-8.add.spl | Bin 3927 -> 4017 bytes 5 files changed, 25 insertions(+) diff --git a/.gitignore b/.gitignore index 0cc9af9..ed11bf1 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ coc-settings.json lazy-lock.json after **/.DS_Store +lua/custom/secret diff --git a/lua/custom/configs/lspsettings.lua b/lua/custom/configs/lspsettings.lua index f66f3ff..b2cf427 100644 --- a/lua/custom/configs/lspsettings.lua +++ b/lua/custom/configs/lspsettings.lua @@ -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/", + }, }, }, } diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua index 627bb7f..6448e09 100644 --- a/lua/custom/plugins.lua +++ b/lua/custom/plugins.lua @@ -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 diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index eacef56..a52f6a5 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -303,3 +303,7 @@ libpt T2000 TINF22CS Fliegendes/! +Gewöhnungsphase +Notfallmaßnahmen +übergriffig +Eligswalde diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 24b986498648d03e967bb1edaf264b1e6a08e72f..2fe2d8a8ff787b7811dd3dd74b4b2da111079efd 100644 GIT binary patch literal 4017 zcmZ8kOK%)m6|QruU3L&c#zIJ_*|x%Bkep8J=~-aOuMAcu6No)C(x?@vS65fMs;g6v zw%e;P$^s-tmXKgESM3Mm{yZ~l}varNvHjMHI*sub=@7#7|;g+j!-Fx2W zJLlYfckgyJiL5K1SwyAnab;89=dT>VLOy{S>-{$ z2T7EX;+qmEImiE+M0|h0E42xs09&;Z#9+2>v2l!9^n*Cf>c)hXj9|~$^1+fAs}!VU zsA(hE#hXz`FEl<)uVG(m8G4pAl|&i{NpR{*AOqC}mXid6YW!n;PH`jf7HZKzObcQ% z9H(=4t1CX}*263>CI}{WYpZ{geo{QGh@d(H4@Hi#JHR?I4v#7&n85U*)p^UBUqQ?i zJ6!~5O|Fru^TyIOvfPM~!GdH?ue;!nDlVESG-NRJ7_w6^mM*rZG0)U4EIJ9!#~O|j z&W~U#qh(f@(q0H2a5CSiq0AGC!lnrj&kq`$FvcVugKr`g(((|YW3&(XTw%KAK6eVZ z#K2RgLgO^SN^^ZH{z4d~fFSU91l{6=5oo#aL7^e(6D9I=>_#z-fL8dz{9d3^{qM{) zfrn}}O^$#meD_26hwsO^DJxYkUIAuo-N<1Q%@8jFTcC-d>)83Mfm=2VIlh_980X+R z&su3#)b1dI?=IkoJ%wH^Gw^_S1u#TFmNjO?5CKZVSTl;^m}jv@azrt&#Sll6&8HNc;s3(m00t@2`jMQ;@3b&4 zfIh*SR^JI^0w3l{Jha9*y}+LI0~eT)zYbWb1m!VgryBP}>yGP6weghsPBmj@DJP=E zvuz=9{dnev6=6n4W->G(%aB=Q{nF(Uw!(@f!k_OWIWkd<=;SgnG~gCg-6~*I1**w+RX9HSC1>L|0JpJqBH;%>lNFz(_*y3qzQXVRERIVRZjNQGw#i9j1x|(3yk@_hBHL4vny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