From fa18abaf658c360965442398b6f707cb6cd6c39b Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 8 Jan 2021 21:36:19 +0530 Subject: [PATCH] nvim: Clean up init --- nvim/.config/nvim/init.lua | 97 ++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 50 deletions(-) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 90a3015..c4cd936 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -1,37 +1,50 @@ --- Global vim options -vim.o.laststatus = 2 -vim.o.updatetime = 100 -vim.o.scrolloff = 3 -vim.o.sidescrolloff = 5 -vim.o.textwidth = 78 -vim.o.linespace = 0 -vim.o.exrc = true -vim.o.secure = true -vim.o.showcmd = true -vim.o.showmatch = true -vim.o.ruler = true -vim.o.autoindent = true -vim.o.errorbells = false -vim.o.modeline = true -vim.o.joinspaces = false -vim.o.showmode = false -vim.o.splitbelow = true -vim.o.splitright = true -vim.o.foldenable = false -vim.o.undofile = true -vim.o.hidden = true -vim.o.autochdir = false -vim.o.hlsearch = true -vim.o.startofline = false -vim.o.ignorecase = true -vim.o.smartcase = true -vim.o.magic = true -vim.o.autoread = true -vim.o.termguicolors = true -vim.o.fileformat = 'unix' -vim.o.inccommand = 'split' -vim.o.switchbuf = 'useopen' -vim.o.encoding = 'utf-8' +vim.o.laststatus = 2 +vim.o.updatetime = 100 +vim.o.scrolloff = 3 +vim.o.sidescrolloff = 5 +vim.o.textwidth = 78 +vim.o.linespace = 0 +vim.o.exrc = true +vim.o.secure = true +vim.o.showcmd = true +vim.o.showmatch = true +vim.o.ruler = true +vim.o.autoindent = true +vim.o.errorbells = false +vim.o.modeline = true +vim.o.joinspaces = false +vim.o.showmode = false +vim.o.splitbelow = true +vim.o.splitright = true +vim.o.foldenable = false +vim.o.undofile = true +vim.o.hidden = true +vim.o.autochdir = false +vim.o.hlsearch = true +vim.o.startofline = false +vim.o.ignorecase = true +vim.o.smartcase = true +vim.o.magic = true +vim.o.autoread = true +vim.o.termguicolors = true +vim.o.fileformat = 'unix' +vim.o.inccommand = 'split' +vim.o.switchbuf = 'useopen' +vim.o.encoding = 'utf-8' +vim.o.mouse = '' +vim.o.completeopt = 'menuone,noinsert,noselect' +vim.o.backspace = 'indent,eol,start' +vim.o.wildmenu = true +vim.o.wildmode = 'longest:full,full' +vim.o.wildoptions = 'pum' +vim.o.pumblend = 30 +vim.o.backup = false +vim.o.writebackup = false +vim.o.sessionoptions = 'buffers,curdir,tabpages,winsize' +vim.o.shada = '' +vim.o.diffopt = 'filler,internal,algorithm:histogram,indent-heuristic' +vim.bo.swapfile = false +vim.bo.formatoptions = "crqn1j" vim.g.python3_host_prog = '/usr/bin/python3' -- Disable providers we do not give a shit about @@ -79,22 +92,6 @@ vim.api.nvim_command('let g:sneak#use_ic_scs = 0') -- We do this to prevent the loading of the system fzf.vim plugin. This is -- present at least on Arch/Manjaro vim.api.nvim_command('set rtp-=/usr/share/vim/vimfiles') -vim.api.nvim_command('set shada="NONE"') -vim.api.nvim_command('set mouse-=a') -vim.api.nvim_command('set formatoptions+=o') -vim.api.nvim_command('set formatoptions+=j') -vim.api.nvim_command('set completeopt=menuone,noinsert,noselect') -vim.api.nvim_command('set wildmenu') -vim.api.nvim_command('set wildmode=longest:full,full') -vim.api.nvim_command('set wildoptions=pum') -vim.api.nvim_command('set pumblend=30') -vim.api.nvim_command('set sessionoptions-=blank') -vim.api.nvim_command('set backspace=indent,eol,start') -vim.api.nvim_command('set diffopt=filler,internal,algorithm:histogram,indent-heuristic') --- Do not create any backups or swap file -vim.api.nvim_command('set nobackup') -vim.api.nvim_command('set nowritebackup') -vim.api.nvim_command('set noswapfile') require 'plugins' require 'autocmd'