init: Disable tree-sitter indentation
[vimconf.git] / init-plugins-noroot-nolowendbox.vim
index eb48f8a5af6cb663477b03cd345652d3ddb38211..31b2a896cf73bbf79cd59bc2d1eba9c3805d76d1 100644 (file)
@@ -81,6 +81,9 @@ let s:normal_mode_mappings = [
             \ ['r', '<denite:redraw>', 'noremap'],
             \ ]
 
+" Have deoplete completion for vimtex (e.g., bibtex entries)
+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()
@@ -93,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,