diff options
Diffstat (limited to '.config/nvim/lua/options.lua')
| -rw-r--r-- | .config/nvim/lua/options.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua new file mode 100644 index 0000000..2010277 --- /dev/null +++ b/.config/nvim/lua/options.lua @@ -0,0 +1,34 @@ +-- tabs +vim.opt.tabstop = 4 +vim.opt.shiftwidth = 0 +vim.opt.expandtab = false +vim.opt.autoindent = true +vim.opt.smartindent = true +-- display cursor at front of tabs +vim.opt.list = true +vim.opt.listchars = { tab = " " } + +vim.opt.shortmess:append { s = true, I = true } + +vim.g.mapleader = ' ' +vim.g.maplocalleader = '\\' + +-- line numbers +vim.opt.signcolumn="number" +vim.opt.number=true +vim.opt.fillchars:append({ eob = " " }) +vim.opt.scrolloff = 7 + +vim.opt.splitright = true + +vim.opt.cursorline = true + +vim.diagnostic.config({ + virtual_text = true, +}) + +-- undo +vim.opt.swapfile = false +vim.opt.backup = false +vim.opt.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir" +vim.opt.undofile = true |
