added more capabilities to my nvim setup

This commit is contained in:
2026-01-19 18:45:00 -07:00
parent aa84c4997e
commit a9b956e141
18 changed files with 312 additions and 44 deletions

View File

@@ -3,35 +3,40 @@
local opt = vim.opt
if vim.env.SSH_CONNECTION then
opt.clipboard = ""
opt.timeoutlen = 1000
end
-- General
opt.clipboard = "unnamedplus" -- Sync with system clipboard
opt.confirm = true -- Confirm before closing unsaved buffer
opt.cursorline = true -- Highlight current line
opt.mouse = "a" -- Enable mouse
opt.number = true -- Show line numbers
opt.relativenumber = true -- Relative line numbers
opt.signcolumn = "yes" -- Always show sign column
opt.termguicolors = true -- True color support
opt.wrap = false -- Disable line wrap
opt.confirm = true -- Confirm before closing unsaved buffer
opt.cursorline = true -- Highlight current line
opt.mouse = "a" -- Enable mouse
opt.number = true -- Show line numbers
opt.relativenumber = true -- Relative line numbers
opt.signcolumn = "yes" -- Always show sign column
opt.termguicolors = true -- True color support
opt.wrap = true -- Disable line wrap
-- Indentation
opt.expandtab = true -- Use spaces instead of tabs
opt.shiftwidth = 2 -- Size of indent
opt.tabstop = 2 -- Number of spaces tabs count for
opt.expandtab = true -- Use spaces instead of tabs
opt.shiftwidth = 2 -- Size of indent
opt.tabstop = 2 -- Number of spaces tabs count for
opt.smartindent = true -- Smart indentation
-- Search
opt.ignorecase = true -- Ignore case
opt.smartcase = true -- Don't ignore case with capitals
opt.hlsearch = true -- Highlight search results
opt.incsearch = true -- Show search results as you type
opt.smartcase = true -- Don't ignore case with capitals
opt.hlsearch = true -- Highlight search results
opt.incsearch = true -- Show search results as you type
-- Split behavior
opt.splitbelow = true -- Put new windows below current
opt.splitright = true -- Put new windows right of current
-- Undo
opt.undofile = true -- Persistent undo
opt.undofile = true -- Persistent undo
opt.undolevels = 10000 -- Maximum undo levels
-- Performance
@@ -45,3 +50,16 @@ opt.completeopt = "menu,menuone,noselect"
opt.foldmethod = "expr"
opt.foldexpr = "nvim_treesitter#foldexpr()"
opt.foldlevel = 99 -- Start with all folds open
opt.exrc = true
opt.secure = true
vim.diagnostic.config({
virtual_text = {
prefix = "",
},
severity_sort = true,
float = {
border = "rounded",
},
})