aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2026-01-15 14:03:36 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2026-01-15 14:03:36 +0200
commitcc73a0721c6c33948b89e1d3982b6cd3c837271e (patch)
treedd165d9035572f9c9c49d24a9538cf657e857e06
parenta7ad036065b84c9569b6deeb65e6f16239405b7a (diff)
downloadnixos-cc73a0721c6c33948b89e1d3982b6cd3c837271e.tar.zst
Set few more options
-rw-r--r--home/nvim/options.lua27
1 files changed, 19 insertions, 8 deletions
diff --git a/home/nvim/options.lua b/home/nvim/options.lua
index 4795bac..3b601aa 100644
--- a/home/nvim/options.lua
+++ b/home/nvim/options.lua
@@ -4,8 +4,15 @@ end)
vim.g.have_nerd_fonts = true
+vim.o.compatible = false
+vim.o.history = 999
+vim.o.lbr = true -- Enable linebreaking
+vim.o.breakindent = true
+vim.o.breakindentopt = "shift:1" -- When breaking, intend
vim.o.fileencoding = "utf-8"
-vim.o.mouse = "a" -- turn on mouse interaction
+vim.o.fileformat = "unix" -- default file format for file
+vim.o.joinspaces = false -- dont't insert two spaces after . or ?
+vim.o.mouse = "vn" -- mouse on normal and visual
vim.o.shell = "nushell"
vim.o.signcolumn = "yes"
vim.o.termguicolors = true -- Enable GUI colors for the terminal to get truecolor
@@ -37,9 +44,11 @@ vim.opt.hidden = true -- required to keep multiple buffers and open multiple buf
vim.opt.inccommand = "split"
vim.opt.linebreak = true
vim.opt.shortmess:append("c")
+vim.opt.infercase = true
vim.opt.smartcase = true
vim.opt.virtualedit = "block"
vim.opt.wrap = true
+vim.o.showbreak = "↳" --when there is a break, show this character
vim.o.undofile = true
vim.o.undodir = "/home/petri/.config/nvim/undo/"
@@ -74,20 +83,22 @@ vim.opt.foldmethod = "syntax"
vim.opt.scrolloff = 8
vim.opt.sidescrolloff = 8
-vim.opt.backspace = "indent,start,eol" -- make backspace behave like normal again
+vim.opt.backspace = "indent,start,eol" -- make backspace behave like normal again
vim.opt.formatoptions:remove({ "c", "t" })
-vim.opt.laststatus = 2 -- always show status line
-vim.opt.lazyredraw = false -- faster scrolling
+vim.opt.laststatus = 2 -- always show status line
+vim.opt.lazyredraw = false -- faster scrolling
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
-vim.opt.splitbelow = true -- open horizontal splits below current window
-vim.opt.splitright = true -- open vertical splits to the right of the current window
-vim.opt.wildignore = vim.opt.wildignore + "*.o,*.rej,*.so" -- patterns to ignore during file-navigation
+vim.opt.splitbelow = true -- open horizontal splits below current window
+vim.opt.splitright = true -- open vertical splits to the right of the current window
vim.opt.spell = false
vim.opt.spelllang = "en"
-vim.opt.wildignore:append({ "*.pyc" })
+
vim.opt.wildmenu = true
+vim.opt.wildignorecase = true
+vim.opt.wildignore:append({ "*.pyc" })
vim.opt.wildmode = "longest:full,full"
+vim.opt.wildignore = vim.opt.wildignore + "*.o,*.rej,*.so" -- patterns to ignore during file-navigation
vim.opt.diffopt:append("linematch:60")