summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/options.lua
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-08-16 20:20:21 -0400
committertriethyl <triethylammonium@pm.me>2025-08-16 20:20:21 -0400
commit58ceb817bb6ba195d1189160878f318f3bcda0ef (patch)
tree6c17c013c92af8c6e410bb1d4fe3a2557841d0d3 /pkgs/custom-neovim/config/lua/options.lua
parent94980b0be13a690128992d98a2ed5db3ab592642 (diff)
neovim: restarted config
Diffstat (limited to 'pkgs/custom-neovim/config/lua/options.lua')
-rw-r--r--pkgs/custom-neovim/config/lua/options.lua60
1 files changed, 26 insertions, 34 deletions
diff --git a/pkgs/custom-neovim/config/lua/options.lua b/pkgs/custom-neovim/config/lua/options.lua
index 20f3e01..6840085 100644
--- a/pkgs/custom-neovim/config/lua/options.lua
+++ b/pkgs/custom-neovim/config/lua/options.lua
@@ -1,43 +1,16 @@
--- General Settings
-vim.o.winborder = 'rounded'
-vim.o.showtabline = 2 -- whether to only show tabline if there is more than one tab.
+-- General
+vim.opt.clipboard = "unnamedplus" -- use system clipboard
+vim.o.mouse = "" -- Don't use mouse
+
+-- UI
+vim.o.winborder = 'rounded' -- rounded window borders where possible.
+vim.o.showtabline = 1 -- whether to only show tabline if there is more than one tab.
vim.o.laststatus = 3 -- only have one statusline at the bottom of the window.
vim.o.showmode = false -- don't show the mode in the commandline.
vim.o.ruler = false -- don't show #,# in the commandline.
-vim.o.icm = 'split'
-vim.o.cia = 'abbr,kind,menu'
-vim.o.mouse = ""
vim.o.number = true -- set absolute numbered lines
--- vim.o.relativenumber = true -- set relative numbered lines
vim.o.scrolloff = 4 -- minimal number of screen lines to keep above and below the cursor
vim.o.signcolumn = "yes" -- always show the sign column, otherwise it would shift the text each time
-vim.o.clipboard = "unnamedplus" -- use system clipboard
--- vim.o.equalalways = true -- equalize splits
-vim.o.sessionoptions = "blank,curdir,folds,help,tabpages,winsize,winpos,terminal,globals,buffers,localoptions" -- define what is saved with the session.
-
--- Split Behavior
-vim.o.splitright = true
-vim.o.splitbelow = true
-
--- Indention
-local indent = 2
-vim.o.autoindent = true -- auto indentation
-vim.o.expandtab = true -- convert tabs to spaces
-vim.o.shiftwidth = indent -- the number of spaces inserted for each indentation
-vim.o.smartindent = true -- make indenting smarter
-vim.o.softtabstop = indent -- when hitting <BS>, pretend like a tab is removed, even if spaces
-vim.o.tabstop = indent -- insert 2 spaces for a tab
-vim.o.shiftround = true -- use multiple of shiftwidth when indenting with "<" and ">"
-
--- Backups
-vim.o.backup = false -- create a backup file
-vim.o.swapfile = false -- creates a swapfile
-vim.o.writebackup = false -- if a file is being edited by another program, it is not allowed to be edited
-
--- Search
-vim.o.hlsearch = true -- highlight all matches on previous search pattern
-vim.o.ignorecase = true -- ignore case in search patterns
-vim.o.smartcase = true -- smart case
-- Folding
vim.o.foldmethod = "expr"
@@ -56,3 +29,22 @@ vim.opt.fillchars = {
vertright = '┣',
verthoriz = '╋',
}
+
+-- Splits
+vim.o.splitright = true
+vim.o.splitbelow = true
+
+-- Indention
+local indent = 2
+vim.o.autoindent = true -- auto indentation
+vim.o.expandtab = true -- convert tabs to spaces
+vim.o.shiftwidth = indent -- the number of spaces inserted for each indentation
+vim.o.smartindent = true -- make indenting smarter
+vim.o.softtabstop = indent -- when hitting <BS>, pretend like a tab is removed, even if spaces
+vim.o.tabstop = indent -- insert 2 spaces for a tab
+vim.o.shiftround = true -- use multiple of shiftwidth when indenting with "<" and ">"
+
+-- Backups
+vim.o.backup = false -- create a backup file
+vim.o.swapfile = false -- creates a swapfile
+vim.o.writebackup = false -- if a file is being edited by another program, it is not allowed to be edited