summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/options.lua
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-03-12 17:38:32 +0100
committerAdam <56338480+adastx@users.noreply.github.com>2022-03-13 17:58:45 +0100
commita429e351263d07e9d032cd9d5e820c675b790d9b (patch)
tree68da1ae8a7dcd74cfad254f8b8c7fcc33f1de855 /.config/nvim/lua/options.lua
parent5a908c6cbcdba880f7f267c9a238c492d021ac0c (diff)
nvim: better lazy loading
Diffstat (limited to '.config/nvim/lua/options.lua')
-rw-r--r--.config/nvim/lua/options.lua62
1 files changed, 62 insertions, 0 deletions
diff --git a/.config/nvim/lua/options.lua b/.config/nvim/lua/options.lua
new file mode 100644
index 0000000..68d6705
--- /dev/null
+++ b/.config/nvim/lua/options.lua
@@ -0,0 +1,62 @@
+vim.cmd('syntax enable')
+vim.cmd('set undodir=$XDG_CACHE_HOME/nvim/undo')
+vim.cmd('set undofile')
+
+local set = vim.opt
+set.mouse = "a"
+set.termguicolors = true
+set.hidden = true
+set.wildmenu = true
+set.wildignorecase = true
+set.fileignorecase = true
+set.showcmd = true
+set.hlsearch = true
+set.ignorecase = true
+set.smartcase = true
+set.incsearch = true
+set.backspace= 'indent,eol,start'
+set.pastetoggle = '<F11>'
+set.confirm = true
+set.number = true
+set.relativenumber = true
+set.shiftwidth = 4
+set.softtabstop = 4
+set.autoindent = true
+set.expandtab = true
+set.showmode = false
+set.ruler = false
+set.timeout = false
+set.ttimeoutlen = 200
+set.wrap = false
+set.fcs = 'eob: '
+set.swapfile = false
+set.pumblend = 0
+set.splitright = true
+set.splitbelow = true
+set.cursorline = true
+
+-- Disable default vim plugins
+local disabled_built_ins = {
+ "netrw",
+ "netrwPlugin",
+ "netrwSettings",
+ "netrwFileHandlers",
+ "gzip",
+ "zip",
+ "zipPlugin",
+ "tar",
+ "tarPlugin",
+ "getscript",
+ "getscriptPlugin",
+ "vimball",
+ "vimballPlugin",
+ "2html_plugin",
+ "logipat",
+ "rrhelper",
+ "spellfile_plugin",
+ "matchit"
+}
+
+for _, plugin in pairs(disabled_built_ins) do
+ vim.g["loaded_" .. plugin] = 1
+end