diff --git a/roles/neovim/files/init.lua b/roles/neovim/files/init.lua index 45e9756..fabbdfd 100644 --- a/roles/neovim/files/init.lua +++ b/roles/neovim/files/init.lua @@ -4,5 +4,6 @@ require('remaps') require('spacetabs') require('searching') require('folding') +require('options') require('plugins') -- require('colors') diff --git a/roles/neovim/files/lua/options.lua b/roles/neovim/files/lua/options.lua new file mode 100644 index 0000000..01eec7e --- /dev/null +++ b/roles/neovim/files/lua/options.lua @@ -0,0 +1,13 @@ +-- OPTIONS + +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.spelllang = { 'en', 'fr' } +vim.opt.showcmd = true -- show command in bottom bar +vim.opt.cursorline = true -- highlight current line +vim.cmd('filetype indent on') -- load filetype-specific indent files +vim.opt.autoindent = true -- use indentation of previous line +vim.opt.smartindent = true -- use intelligent indentation for C +vim.opt.wildmenu = true -- visual autocomplete for command menu +vim.opt.lazyredraw = true -- redraw only when necessary +vim.opt.showmatch = true -- highlight matching braces