plugins: Pin nvim-treesitter to v0.8.0
[vimconf.git] / plugins-noroot-nolowendbox.vim
index 32df579034d0f66bd1f801805a2b9585635895ab..d3d955961a08ad3940268d5595e8b810422395a2 100644 (file)
@@ -57,7 +57,7 @@ Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'}
 Plug 'sheerun/vim-polyglot'
 
 if has('nvim-0.5')
-    Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
+    Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate', 'tag': 'v0.8.0'}
     Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'}
 endif
 
@@ -175,8 +175,8 @@ function PluginsNorootNolowendboxConfig()
 
 lua <<EOF
         require'nvim-treesitter.configs'.setup {
-            -- one of "all", "maintained" (parsers with maintainers), or a list of languages
-            ensure_installed = "maintained",
+            -- one of "all"
+            ensure_installed = "all",
             -- List of parsers to ignore installing
             ignore_install = {},
             -- Modules and its options go here
@@ -220,7 +220,13 @@ EOF
     let g:detectspelllang_langs = {}
     let g:detectspelllang_langs.aspell =[ 'en_US', 'de_AT']
 
-    let g:languagetool_cmd='languagetool'
+    " Try finding jar file. If it does not work, set cmd directly
+    let g:languagetool_jar='/snap/languagetool/current/usr/bin/languagetool-commandline.jar'
+    if !filereadable(g:languagetool_jar)
+        unlet! g:languagetool_jar
+        let g:languagetool_cmd='languagetool'
+    endif
+
 
     au FileType mail let g:VimMailSpellLangs=['de', 'en']
     let g:VimMailContactsProvider=['khard']