diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,13 +1,17 @@ | |||
1 | vim.cmd('source ~/.vim/vimrc') | 1 | vim.cmd('source ~/.vim/vimrc') |
2 | 2 | ||
3 | vim.o.termguicolors = true | 3 | vim.opt.termguicolors = true |
4 | vim.o.exrc = true | 4 | vim.opt.exrc = true |
5 | vim.opt.foldmethod = 'syntax' | ||
5 | 6 | ||
6 | if vim.fn.has("win32") then | 7 | if vim.fn.has("win32") then |
7 | vim.opt.rtp:append(vim.fn.expand("$HOME\\scoop\\shims")) | 8 | vim.opt.rtp:append(vim.fn.expand("$HOME\\scoop\\shims")) |
8 | end | 9 | end |
9 | 10 | ||
10 | vim.opt.runtimepath:remove("/usr/share/vim/vimfiles") | 11 | vim.opt.runtimepath:remove("/usr/share/vim/vimfiles") |
12 | vim.keymap.set('n', '<F12>', ':Buffers<CR>') | ||
13 | |||
14 | |||
11 | 15 | ||
12 | -- vim.o.shadafile = "/tmp/shada" | 16 | -- vim.o.shadafile = "/tmp/shada" |
13 | 17 | ||
@@ -201,4 +205,9 @@ require'nvim-treesitter.configs'.setup { | |||
201 | }, | 205 | }, |
202 | } | 206 | } |
203 | 207 | ||
208 | -- vim.wo.foldtext = 'v:lua.vim.treesitter.foldtext()' -- not available yet in my installation | ||
209 | vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()' | ||
210 | vim.wo.foldlevel = 1 | ||
211 | |||
212 | |||
204 | -- vim: tabstop=2 shiftwidth=2 softtabstop=2 | 213 | -- vim: tabstop=2 shiftwidth=2 softtabstop=2 |