瀏覽代碼

add option to use change folding mode (#978)

Abouzar Parvan 4 年之前
父節點
當前提交
eb88a16c7e
共有 1 個文件被更改,包括 2 次插入0 次删除
  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