Selaa lähdekoodia

add option to use change folding mode (#978)

Abouzar Parvan 4 vuotta sitten
vanhempi
commit
eb88a16c7e
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      lua/default-config.lua

+ 2 - 0
lua/default-config.lua

@@ -20,6 +20,8 @@ O = {
     completeopt = { "menuone", "noselect" },
     conceallevel = 0, -- so that `` is visible in markdown files
     fileencoding = "utf-8", -- the encoding written to a file
+    foldmethod = "manual", -- folding, set to "expr" for treesitter based foloding
+    foldexpr = "", -- set to "nvim_treesitter#foldexpr()" for treesitter based folding
     guifont = "monospace:h17", -- the font used in graphical neovim applications
     hidden = true, -- required to keep multiple buffers and open multiple buffers
     hlsearch = true, -- highlight all matches on previous search pattern