summary refs log tree commit diff stats
path: root/.config/nvim/lua/core/options.lua
diff options
context:
space:
mode:
authorChristian Krinitsin <christian@krinitsin.xyz>2024-03-16 21:00:19 +0100
committerChristian Krinitsin <christian@krinitsin.xyz>2024-03-16 21:00:19 +0100
commitb8a4392c8754a56265701f97f4833b447efff29a (patch)
treec7a0f84d29ace7a215201311ebc02e1e8eb7f952 /.config/nvim/lua/core/options.lua
downloaddotfiles-b8a4392c8754a56265701f97f4833b447efff29a.tar.gz
dotfiles-b8a4392c8754a56265701f97f4833b447efff29a.zip
init
Diffstat (limited to '.config/nvim/lua/core/options.lua')
-rw-r--r--.config/nvim/lua/core/options.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/nvim/lua/core/options.lua b/.config/nvim/lua/core/options.lua
new file mode 100644
index 0000000..8f5b36e
--- /dev/null
+++ b/.config/nvim/lua/core/options.lua
@@ -0,0 +1,27 @@
+vim.opt.clipboard = 'unnamedplus'
+vim.opt.mouse = 'a'
+vim.opt.shell='/bin/bash'
+
+vim.opt.backup=false
+vim.opt.writebackup=false
+vim.opt.updatetime=300
+vim.opt.signcolumn="yes"
+
+vim.opt.tabstop = 4                 -- number of visual spaces per TAB
+vim.opt.softtabstop = 4             -- number of spacesin tab when editing
+vim.opt.shiftwidth = 4              -- insert 4 spaces on a tab
+vim.opt.expandtab = true            -- tabs are spaces, mainly because of python
+vim.opt.smartindent=true
+vim.opt.autoindent=true
+vim.opt.smarttab=true
+
+vim.opt.number = true               -- show absolute number
+vim.opt.relativenumber = true       -- add numbers to each line on the left side
+vim.opt.splitbelow = true           -- open new vertical split bottom
+vim.opt.splitright = true           -- open new horizontal splits right
+vim.opt.termguicolors = true        -- enabl 24-bit RGB color in the TUI
+vim.opt.showmode = false            -- we are experienced, wo don't need the "-- INSERT --" mode hint
+
+vim.opt.incsearch = true            -- search as characters are entered
+vim.opt.ignorecase = true           -- ignore case in searches by default
+vim.opt.smartcase = true            -- but make it case sensitive if an uppercase is entered