summary refs log tree commit diff
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.lua39
1 files changed, 39 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..073835f
--- /dev/null
+++ b/.config/nvim/lua/config/options.lua
@@ -0,0 +1,39 @@
+local opt = vim.opt
+
+opt.number = true
+opt.cursorline = true
+
+-- connect system clipboard
+opt.clipboard:prepend({ 'unnamedplus' })
+
+-- preview supported ops in split buffer
+opt.inccommand = 'split'
+
+-- show whitespace indicators
+opt.list = true
+opt.listchars:append({
+  trail = '¬',
+  tab = '> ',
+  -- space = '·',
+  -- lead = '·',
+})
+opt.showbreak = '↪ '
+
+-- show indicator and wrap text at 80 chars
+opt.colorcolumn = '+1'
+opt.textwidth = 80
+opt.wrap = true
+
+opt.conceallevel = 2
+opt.concealcursor = nil
+
+-- use treesitter to determine folds
+opt.foldmethod = 'expr'
+opt.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
+opt.foldlevel = 99
+
+-- https://fosstodon.org/@rockorager/114183888444195197
+opt.mousescroll = 'ver:1,hor:6'
+
+-- load local vim config (will as to allow it)
+opt.exrc = true