init: Disable tree-sitter indentation
[vimconf.git] / init-plugins-noroot-nolowendbox.vim
index 227da01d516f10d6b10b0e7f5e1682cb64528eed..31b2a896cf73bbf79cd59bc2d1eba9c3805d76d1 100644 (file)
@@ -82,9 +82,8 @@ let s:normal_mode_mappings = [
             \ ]
 
 " Have deoplete completion for vimtex (e.g., bibtex entries)
-call deoplete#custom#var('omni', 'input_patterns', {
-            \ 'tex': g:vimtex#re#deoplete
-            \})
+au Filetype tex call deoplete#custom#var('omni', 'input_patterns', {
+            \ 'tex': g:vimtex#re#deoplete })
 
 if has('nvim-0.5')
     set foldexpr=nvim_treesitter#foldexpr()
@@ -97,7 +96,9 @@ lua <<EOF
         ignore_install = {},
         -- Modules and its options go here
         highlight = { enable = true },
-        indent = { enable = true },
+        -- Indentation is still quite buggy, e.g., for multi-line C comments
+        -- or for comments right after a preproc definition.
+        -- indent = { enable = true },
         textobjects = { enable = true },
         incremental_selection = {
             enable = true,