From 3e9a9704a2c3ea1348f680ebd052eac67aa0d4d3 Mon Sep 17 00:00:00 2001 From: Daniel Lynn Date: Wed, 11 Aug 2021 11:15:24 -0500 Subject: [PATCH] Add folding for rust and ruby --- nvim/ruby.vimrc | 1 + nvim/rust.vimrc | 1 + vimrc | 11 +++++++++++ 3 files changed, 13 insertions(+) create mode 100644 nvim/ruby.vimrc create mode 100644 nvim/rust.vimrc diff --git a/nvim/ruby.vimrc b/nvim/ruby.vimrc new file mode 100644 index 0000000..2f5c33a --- /dev/null +++ b/nvim/ruby.vimrc @@ -0,0 +1 @@ +let g:ruby_fold = 1 diff --git a/nvim/rust.vimrc b/nvim/rust.vimrc new file mode 100644 index 0000000..0bc83fa --- /dev/null +++ b/nvim/rust.vimrc @@ -0,0 +1 @@ +let g:rust_fold = 1 diff --git a/vimrc b/vimrc index e1775fe..ab494b9 100644 --- a/vimrc +++ b/vimrc @@ -13,6 +13,7 @@ set expandtab set exrc set fillchars=vert:▐ set foldlevelstart=1 +set foldmethod=manual set hidden set history=50 set incsearch @@ -116,6 +117,16 @@ if filereadable(expand("~/.config/nvim/markdown.vimrc")) source ~/.config/nvim/markdown.vimrc endif +" Ruby setup +if filereadable(expand("~/.config/nvim/ruby.vimrc")) + source ~/.config/nvim/ruby.vimrc +endif + +" Rust setup +if filereadable(expand("~/.config/nvim/rust.vimrc")) + source ~/.config/nvim/rust.vimrc +endif + " Color setup if filereadable(expand("~/.config/nvim/colors.vimrc")) source ~/.config/nvim/colors.vimrc