Initial Commit - Add nvim config

Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
2025-08-25 18:23:54 -05:00
commit 7a73f19921
10 changed files with 665 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
local o = vim.opt
-- Numbers/UI
o.number = true
o.relativenumber = true
o.signcolumn = "yes"
o.termguicolors = true
o.updatetime = 300
-- Indentation: 2 spaces, never tabs
o.expandtab = true -- insert spaces when you press <Tab>
o.shiftwidth = 2 -- >> and << shift by 2
o.tabstop = 2 -- a <Tab> displays as 2 spaces
o.softtabstop = 2 -- <BS> unindents by 2 in insert mode
o.smartindent = true -- basic smart indenting for code
o.clipboard = "unnamedplus"
-- Diagnostics: right-side virtual text + nice floats + sorted severity
vim.diagnostic.config({
virtual_text = {
spacing = 2,
prefix = "", -- small dot; try "▎" or "" if you like
},
severity_sort = true,
underline = true,
update_in_insert = false, -- dont distract while typing
float = {
border = "rounded",
source = "if_many",
header = "",
prefix = "",
},
})
-- Pretty signs in the gutter (left)
for type, icon in pairs({ Error="", Warn="", Hint="", Info="" }) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
end