summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/mango/set.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-12 12:17:08 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-12 12:17:08 +0200
commit74858f94885c3bc9cef98a128a4710c2c2b99177 (patch)
tree73889360bcf232da3e9ffaa7ab3fba9f71c9e338 /.config/nvim/lua/mango/set.lua
parent24fc98bfaca3f07c90ff33a3bfeb738fd84ff79a (diff)
nvim: Include more Neovim configurations
Diffstat (limited to '.config/nvim/lua/mango/set.lua')
-rw-r--r--.config/nvim/lua/mango/set.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua
new file mode 100644
index 0000000..28c5cf2
--- /dev/null
+++ b/.config/nvim/lua/mango/set.lua
@@ -0,0 +1,36 @@
+local lib = require('mango.lib')
+local opt = vim.opt
+
+opt.nu = true
+opt.relativenumber = true
+
+lib.setTabWidth(4)
+opt.expandtab = false
+opt.smartindent = true
+
+opt.wrap = false
+
+opt.swapfile = false
+opt.backup = false
+opt.undodir = os.getenv('XDG_STATE_HOME') .. '/nvim/undo'
+opt.undofile = true
+
+opt.hlsearch = true
+opt.incsearch = true
+
+opt.termguicolors = true
+
+opt.scrolloff = 8
+-- TODO: Research
+-- opt.signcolumn = 'yes'
+-- opt.isfname:append('@-@')
+
+opt.updatetime = 50
+
+opt.colorcolumn = '81'
+
+-- Disable auto commenting
+vim.bo.formatoptions = 'jnql'
+
+opt.splitright = true
+opt.splitbelow = true