summaryrefslogtreecommitdiff
path: root/.config/nvim/plugin
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-07-09 22:33:50 +0300
committerKyren223 <ulmliad223@gmail.com>2024-07-09 22:33:50 +0300
commitff13fce3739ef8c09d08a48b058363d2f7fb6c11 (patch)
tree9c10347fd28fd0b9c0bb13ddfae3197f571cae58 /.config/nvim/plugin
parent79905005126b9638390366c6206d669a0d3d723f (diff)
Neovim: almost finished with git integration, did minor unrelated tweaks
Diffstat (limited to '.config/nvim/plugin')
-rw-r--r--.config/nvim/plugin/options.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/.config/nvim/plugin/options.lua b/.config/nvim/plugin/options.lua
index 79a0f46..4a2da62 100644
--- a/.config/nvim/plugin/options.lua
+++ b/.config/nvim/plugin/options.lua
@@ -1,14 +1,14 @@
-- System
vim.g.have_nerd_font = true
-vim.opt.mouse = 'a' -- enable mouse
+vim.opt.mouse = 'a' -- enable mouse
vim.opt.clipboard = 'unnamedplus' -- use system clipboard
-vim.opt.undofile = true -- Persist undo history by saving it to a file
+vim.opt.undofile = true -- Persist undo history by saving it to a file
-- Tab
vim.opt.expandtab = true -- convert tabs to spaces
-vim.opt.tabstop = 4 -- number of visual spaces per TAB
-vim.opt.softtabstop = 4 -- number of idfk tab when editing
-vim.opt.shiftwidth = 4 -- number of spaces to insert on tab
+vim.opt.tabstop = 4 -- number of visual spaces per TAB
+vim.opt.softtabstop = 4 -- number of idfk tab when editing
+vim.opt.shiftwidth = 4 -- number of spaces to insert on tab
-- UI
vim.opt.signcolumn = 'auto:9'
@@ -21,6 +21,7 @@ vim.opt.showmode = false -- don't show mode, because lualine already does
vim.opt.list = true
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
vim.diagnostic.config({ signs = false }) -- disable signcolumn diagnostics
+vim.opt.fillchars:append({ diff = '╱' }) -- nicer diff view for filled spaces
-- Searching
vim.opt.hlsearch = true
@@ -33,7 +34,7 @@ vim.opt.wrap = false
vim.opt.scrolloff = 8
vim.opt.undofile = true
vim.opt.termguicolors = true
-vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline
+vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline
vim.opt.splitkeep = 'screen' -- for edgy.nvim
vim.opt.inccommand = 'split' -- shows preview for commands like :%s/from/to