summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/mango/set.lua
diff options
context:
space:
mode:
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