diff options
author | admin <contact@optics-design.com> | 2025-05-11 00:43:32 +0200 |
---|---|---|
committer | admin <contact@optics-design.com> | 2025-05-11 00:43:32 +0200 |
commit | 102f9a5608cbb7b5553cd0d1862b6bd8e40c8075 (patch) | |
tree | f6ae6dbbf3c9b60e34bb0e24dca20008c704f721 /nvim/lua/core/options.lua | |
parent | 681468ea7f56624ca869e7ba859f4457a8412cc3 (diff) |
refractored neovim config
Diffstat (limited to 'nvim/lua/core/options.lua')
-rw-r--r-- | nvim/lua/core/options.lua | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nvim/lua/core/options.lua b/nvim/lua/core/options.lua new file mode 100644 index 0000000..b05ad08 --- /dev/null +++ b/nvim/lua/core/options.lua @@ -0,0 +1,37 @@ +-- Core Neovim settings
+-- General options and settings
+
+-- UI settings
+vim.opt.termguicolors = true -- True color support
+vim.opt.number = true -- Show line numbers
+vim.opt.relativenumber = true -- Show relative line numbers
+vim.opt.scrolloff = 999 -- Keep cursor centered
+vim.opt.splitbelow = true -- Horizontal splits below
+vim.opt.splitright = true -- Vertical splits to the right
+vim.opt.wrap = true -- Line wrapping
+vim.opt.virtualedit = "block" -- Allow cursor beyond text in block mode
+
+-- Search settings
+vim.opt.hlsearch = false -- Don't highlight search results
+vim.opt.incsearch = true -- Incremental search
+vim.opt.ignorecase = true -- Case insensitive search
+
+-- Tab settings
+vim.opt.tabstop = 4 -- Tab width
+vim.opt.softtabstop = 4 -- Soft tab width
+vim.opt.shiftwidth = 4 -- Indentation width
+vim.opt.expandtab = true -- Use spaces instead of tabs
+
+-- File management
+vim.opt.swapfile = false -- No swap files
+vim.opt.backup = false -- No backup files
+vim.opt.undodir = os.getenv("USERPROFILE").."/.vim/undodir" -- Undo directory
+vim.opt.undofile = true -- Persistent undo history
+
+-- Performance and usability
+vim.opt.updatetime = 50 -- Faster update time
+vim.opt.inccommand = "split" -- Live substitution preview
+
+-- Status line
+vim.cmd([[set laststatus=2]]) -- Always show statusline
+vim.cmd([[set shortmess=I]]) -- Don't show intro message
|