Selaa lähdekoodia

disable treesitter indent for python

Chris 4 vuotta sitten
vanhempi
commit
94444afe20
2 muutettua tiedostoa jossa 3 lisäystä ja 4 poistoa
  1. 2 3
      lua/nv-autopairs/init.lua
  2. 1 1
      lua/nv-treesitter/init.lua

+ 2 - 3
lua/nv-autopairs/init.lua

@@ -36,10 +36,9 @@
 --     return npairs.check_break_line_char()
 --   end
 -- end
--- 
--- 
+--
+--
 -- remap('i' , '<CR>','v:lua.MUtils.completion_confirm()', {expr = true , noremap = true})
-
 -- TODO switch to lua plugin when possible
 vim.cmd([[
 let g:lexima_no_default_rules = v:true

+ 1 - 1
lua/nv-treesitter/init.lua

@@ -5,7 +5,7 @@ require'nvim-treesitter.configs'.setup {
     highlight = {
         enable = true -- false will disable the whole extension
     },
-    indent = {enable = true},
+    indent = {enable = true, disable = {"python"}},
     playground = {
         enable = true,
         disable = {},