aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua13
1 files changed, 11 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index bbc9f05..2dc45ee 100644
--- a/init.lua
+++ b/init.lua
@@ -1,13 +1,17 @@
1vim.cmd('source ~/.vim/vimrc') 1vim.cmd('source ~/.vim/vimrc')
2 2
3vim.o.termguicolors = true 3vim.opt.termguicolors = true
4vim.o.exrc = true 4vim.opt.exrc = true
5vim.opt.foldmethod = 'syntax'
5 6
6if vim.fn.has("win32") then 7if 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"))
8end 9end
9 10
10vim.opt.runtimepath:remove("/usr/share/vim/vimfiles") 11vim.opt.runtimepath:remove("/usr/share/vim/vimfiles")
12vim.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
209vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
210vim.wo.foldlevel = 1
211
212
204-- vim: tabstop=2 shiftwidth=2 softtabstop=2 213-- vim: tabstop=2 shiftwidth=2 softtabstop=2
..