diff options
Diffstat (limited to '.config/nvim/lua/config/opt.lua')
-rw-r--r-- | .config/nvim/lua/config/opt.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/nvim/lua/config/opt.lua b/.config/nvim/lua/config/opt.lua new file mode 100644 index 0000000..ab65cd5 --- /dev/null +++ b/.config/nvim/lua/config/opt.lua @@ -0,0 +1,27 @@ +local opt = vim.opt + +-- tabs +opt.tabstop = 4 +opt.softtabstop = 4 +opt.shiftwidth = 4 +opt.expandtab = true +opt.smartindent = true + +-- search +opt.showmatch = true +opt.ignorecase = true +opt.smartcase = true + +opt.swapfile = false -- noswapfile +opt.undofile = true -- persistent undo + +vim.cmd("syntax on") +opt.termguicolors = true + +opt.number = true +opt.relativenumber = true +opt.numberwidth = 2 +opt.cursorline = true + +opt.splitright = true +opt.splitbelow = true |