summaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/ibrahim/set.lua.tmpl
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2024-10-03 17:54:22 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commit7876fabd7c5c625194ee723972e63105eca4b505 (patch)
tree8a60254fdba136242a10954bc0429747e509a46c /dot_config/nvim/lua/ibrahim/set.lua.tmpl
parent25845fce1beb28e783e7f9495a0fadf19e26bee6 (diff)
feat(nvim): neovim config rewrite
Diffstat (limited to 'dot_config/nvim/lua/ibrahim/set.lua.tmpl')
-rw-r--r--dot_config/nvim/lua/ibrahim/set.lua.tmpl87
1 files changed, 0 insertions, 87 deletions
diff --git a/dot_config/nvim/lua/ibrahim/set.lua.tmpl b/dot_config/nvim/lua/ibrahim/set.lua.tmpl
deleted file mode 100644
index 019fa4f..0000000
--- a/dot_config/nvim/lua/ibrahim/set.lua.tmpl
+++ /dev/null
@@ -1,87 +0,0 @@
--- vim:ft=lua
----@diagnostic disable: undefined-global
-
-local opt = vim.opt
-
--- Set default shell
-{{- if eq .chezmoi.os "windows" }}
-opt.shell = "pwsh"
-{{ else }}
-opt.shell = "zsh"
-{{ end }}
-
--- Begin searching as I type a search string instead of waiting for me to press Enter
-opt.incsearch = true
-
--- Make line numbers default
-opt.number = true
-opt.relativenumber = true
-
--- Highlight only the line number for the current line.
--- Disable the second line here to highlight the entire line where the
--- cursor is.
-opt.cursorline = true
-opt.cursorlineopt = "number"
-
--- Try to keep this many lines visible above and below the cursor.
--- This makes the window scroll sooner if mashing j / k.
-opt.scrolloff = 8
-
--- Folds
-vim.o.foldtext = ''
-
--- Don't fold absolutely everything when opening a new file
-opt.foldlevelstart = 1
-
--- Enable mouse mode
-opt.mouse = "a"
-
--- Set the conceal level (mainly for obsidian md formatting)
-opt.conceallevel = 2
-
--- Tab settings
-opt.tabstop = 4
-opt.softtabstop = 4
-opt.shiftwidth = 0
-opt.expandtab = true
-
--- Automatically set the same indent level on a new line
-opt.autoindent = true
-
--- Increase or decrease indent based on braces or language keywords
-opt.smartindent = true
-
--- Enable break indent
-opt.breakindent = true
-
--- Don't make local backup files. Instead, write undo history to disk.
--- This works especially well with the undotree plugin.
-opt.swapfile = false
-opt.backup = false
-opt.undodir = vim.fn.expand("~/.vim/undodir")
-opt.undofile = true
-
--- Case insensitive searching UNLESS /C or capital in search
-opt.ignorecase = true
-opt.smartcase = true
-
--- Decrease update time
-opt.updatetime = 250
-
--- Enable signcolumn (used for diagnostics and gitsigns)
-opt.signcolumn = "yes"
-
--- Column at line 80
-opt.colorcolumn = "80"
-
--- Set completeopt to have a better completion experience
-opt.completeopt = "menuone,noselect"
-
--- Highlight when yanking text
-vim.api.nvim_create_autocmd('TextYankPost', {
- desc = 'Highlight when yanking text',
- group = vim.api.nvim_create_augroup('IbrahimHighlightYank', { clear = true }),
- callback = function()
- vim.highlight.on_yank()
- end,
-})