diff options
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 |