diff options
author | Botond Hende <nettingman@gmail.com> | 2024-06-11 23:39:25 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-06-11 23:47:32 +0200 |
commit | 8fcb2c0854ce64e56a13a4beebba6f8b68b89550 (patch) | |
tree | 9985e7f62c63da045ac4664055660c68e10da894 /home | |
parent | e0932f1df6544438ca3877c93631819b4ff67a11 (diff) |
moved to init.lua for nvim
Diffstat (limited to 'home')
-rw-r--r-- | home/.config/nvim/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/home/.config/nvim/init.lua b/home/.config/nvim/init.lua new file mode 100644 index 0000000..1bd6317 --- /dev/null +++ b/home/.config/nvim/init.lua @@ -0,0 +1,17 @@ +vim.opt.tabstop = 4 -- Number of spaces that a <Tab> in the file counts for. +vim.opt.shiftwidth = 0 -- Number of spaces to use for each step of (auto)indent. +vim.opt.expandtab = false -- Do not use the appropriate number of spaces to insert a <Tab>. +vim.opt.showmatch = true -- When a bracket is inserted, briefly jump to the matching +vim.opt.ignorecase = true -- Ignore case in search patterns. +vim.opt.smartcase = true -- Override 'ignorecase' if the pattern contains upper case + +vim.opt.background = dark +vim.opt.mouse = "" -- Disable mouse + +vim.opt.number = true + +local r = vim.version.range('0.0.0 - 0.10.0') + +if not r:has(vim.version()) then + vim.cmd("colorscheme vim") +end |