From c1e58a905bbdddf109dd3b7473edb2e8076d708b Mon Sep 17 00:00:00 2001
From: ben <ben@nagy.contact>
Date: Sat, 3 May 2025 14:28:00 -0700
Subject: current neovim config (lua)

---
 config/nvim/lua/core/options.lua | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 config/nvim/lua/core/options.lua

(limited to 'config/nvim/lua/core/options.lua')

diff --git a/config/nvim/lua/core/options.lua b/config/nvim/lua/core/options.lua
new file mode 100644
index 0000000..5796aef
--- /dev/null
+++ b/config/nvim/lua/core/options.lua
@@ -0,0 +1,38 @@
+local opt = vim.opt
+local cmd = vim.cmd
+
+-- Syntax and colors
+opt.termguicolors = true
+opt.background = "dark"
+opt.signcolumn = "yes"
+cmd("syntax on")
+
+-- Line Numbers
+opt.number = true
+opt.relativenumber = true
+
+-- Tabs
+opt.expandtab = false     -- Use tabs instead of spaces
+opt.tabstop = 4           -- Number of spaces a tab counts for
+opt.shiftwidth = 4        -- Number of spaces for auto-indentation
+opt.softtabstop = 4       -- Spaces used when hitting Tab or Backspace
+opt.smartindent = true
+opt.autoindent = true
+cmd("match TabChar /\t/")
+vim.opt.list = true
+vim.opt.listchars = { tab = ">." }
+
+-- File type detection
+vim.cmd("filetype on")
+vim.cmd("filetype plugin on")
+
+-- Mouse and clipboard
+vim.opt.mouse = ""
+vim.opt.clipboard = "unnamedplus"
+vim.api.nvim_set_keymap('v', 'yy', ':w !xclip -selection clipboard<CR><CR>',
+{ noremap = true, silent = true })
+
+-- MISC
+opt.swapfile = false
+opt.backup = false
+vim.opt.encoding = "utf-8"
-- 
cgit v1.2.3