From 652cf3044edd8c66a088819a882a0bdc66870e60 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 5 Jul 2022 14:24:47 -0700 Subject: [PATCH] fennel style and set foldlevel=1 --- nvim/fnl/init.fnl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/nvim/fnl/init.fnl b/nvim/fnl/init.fnl index 0df5747..3ec74ae 100644 --- a/nvim/fnl/init.fnl +++ b/nvim/fnl/init.fnl @@ -1,5 +1,6 @@ (vim.cmd "colorscheme paramount") +(set vim.opt.foldlevel 1) (set vim.opt.list true) ;; fnlfmt: skip @@ -98,12 +99,11 @@ ;;; netrw +;; https://github.com/tpope/vim-vinegar/issues/13 (set vim.g.netrw_fastbrowse 0) - -; https://github.com/tpope/vim-vinegar/issues/13 (set vim.g.netrw_home "~/.nvim_tmp") -;;; tree-sitter +;;; treesitter (let [configs (require :nvim-treesitter.configs) {: setup} configs] @@ -111,15 +111,16 @@ :sync_install false :highlight {:enable true :additional_vim_regex_highlighting false} :indent {:enable true}})) + (set vim.opt.foldmethod :expr) (set vim.opt.foldexpr "nvim_treesitter#foldexpr()") ;;; generate help files -; Load all plugins now. -; Plugins need to be added to runtimepath before helptags can be generated. +;; Load all plugins now. +;; Plugins need to be added to runtimepath before helptags can be generated. (vim.api.nvim_command :packloadall) -; Load all of the helptags now, after plugins have been loaded. -; All messages and errors will be ignored. +;; Load all of the helptags now, after plugins have been loaded. +;; All messages and errors will be ignored. (vim.api.nvim_command "silent! helptags ALL")