aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/config/options.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/config/options.lua')
-rw-r--r--.config/nvim/lua/config/options.lua51
1 files changed, 51 insertions, 0 deletions
diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua
new file mode 100644
index 0000000..dbd8e66
--- /dev/null
+++ b/.config/nvim/lua/config/options.lua
@@ -0,0 +1,51 @@
+-- disable netrw at the very start of your init.lua --------------------------
+vim.g.loaded_netrw = 1
+vim.g.loaded_netrwPlugin = 1
+
+local opt = vim.opt
+
+-- TAB/INDENT ----------------------------------------------------------------
+opt.tabstop = 2
+opt.shiftwidth = 2
+opt.softtabstop = 2
+opt.expandtab = true
+opt.smartindent = true
+opt.wrap = false
+
+-- SEARCH --------------------------------------------------------------------
+opt.incsearch = true
+opt.ignorecase = true
+opt.smartcase = true
+opt.hlsearch = false
+
+-- APPEARANCE ----------------------------------------------------------------
+opt.number = true
+opt.relativenumber = false
+opt.termguicolors = true
+--opt.colorcolumn = "100"
+opt.signcolumn = "yes"
+opt.cmdheight = 1
+opt.scrolloff = 10
+opt.completeopt = "menuone,noinsert,noselect"
+opt.cursorline = true -- Highlight the active cursor line
+
+-- MISC ----------------------------------------------------------------------
+opt.hidden = true
+opt.errorbells = false
+opt.swapfile = false
+opt.backup = false
+opt.undodir = vim.fn.expand("~/.config/nvim/undodir//")
+opt.undofile = true
+opt.backspace = "indent,eol,start"
+opt.splitright = true
+opt.splitbelow = true
+opt.autochdir = false
+opt.modifiable = true
+opt.encoding = "UTF-8"
+opt.guicursor = "n-v-c:block,i-ci-ve:block,r-cr:hor20,o:hor50,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175"
+opt.termguicolors = true
+
+-- APPEND --------------------------------------------------------------------
+opt.mouse:append('a')
+opt.iskeyword:append("-")
+opt.clipboard:append("unnamedplus")