diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2021-10-14 15:24:45 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2021-10-14 15:24:45 +0200 |
commit | 8430fafe74b834b7920c7a5919eac952e487e379 (patch) | |
tree | 37c69ae3e11b5d9c9a76008e92fe99109ce65630 /.config/nvim/lua/setup.lua | |
parent | d69e72a868816211a9275f098ff3264091c2c9db (diff) |
Nvim full lua setup
Diffstat (limited to '.config/nvim/lua/setup.lua')
-rw-r--r-- | .config/nvim/lua/setup.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/nvim/lua/setup.lua b/.config/nvim/lua/setup.lua index 5f9cd4f..5d71554 100644 --- a/.config/nvim/lua/setup.lua +++ b/.config/nvim/lua/setup.lua @@ -1,5 +1,22 @@ local set = vim.opt +if vim.fn.has('mouse') then + set.mouse = "a" +end + +if vim.fn.has('filetype') then + vim.cmd('filetype indent plugin on') +end + +if vim.fn.has('syntax') then + vim.cmd('syntax on') +end + +if vim.fn.has('persistent_undo') then + vim.cmd('set undodir=$HOME/.vim/undo') + vim.cmd('set undofile') +end + set.termguicolors = true set.hidden = true set.wildmenu = true |