diff options
author | ben <ben@nagy.contact> | 2025-01-08 15:45:00 -0800 |
---|---|---|
committer | ben <ben@nagy.contact> | 2025-01-08 15:45:00 -0800 |
commit | bb2e30b412c23b76ae876e792398f4926467d962 (patch) | |
tree | 4f50f94b7bf50103a61ddbab8a0a30f753918b21 /nvim/lua/core/options.lua | |
parent | ec2cc455fed8933a98a8b13bea015dd9c4b6e99a (diff) |
added current config
Diffstat (limited to 'nvim/lua/core/options.lua')
-rw-r--r-- | nvim/lua/core/options.lua | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nvim/lua/core/options.lua b/nvim/lua/core/options.lua new file mode 100644 index 0000000..2f4a200 --- /dev/null +++ b/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" |