diff options
Diffstat (limited to 'archive/.config/nvim/lua/options.lua')
| -rw-r--r-- | archive/.config/nvim/lua/options.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/archive/.config/nvim/lua/options.lua b/archive/.config/nvim/lua/options.lua new file mode 100644 index 0000000..d0adefb --- /dev/null +++ b/archive/.config/nvim/lua/options.lua @@ -0,0 +1,40 @@ +-- 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.cinoptions:append("g0") +vim.opt.cinoptions:append("L0") + +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 + +-- misc +vim.opt.updatetime = 700 |
