diff options
author | adamstuck <adam.moloney.stuck@gmail.com> | 2021-10-14 12:36:27 +0200 |
---|---|---|
committer | adamstuck <adam.moloney.stuck@gmail.com> | 2021-10-14 12:36:27 +0200 |
commit | cc94abeebde2bd51bd74d14ee7e15b994024e54b (patch) | |
tree | 6982f6b63c411374699608e90c32540f78e87a05 /.config/nvim/lua/setup.lua | |
parent | 789948d6f193452cdaa45b0cbecae68a41330f05 (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 |