nvim: Some consistency cleanup
This commit is contained in:
parent
efc8bf88b5
commit
47fcbd2233
2 changed files with 9 additions and 10 deletions
|
@ -1,7 +1,3 @@
|
||||||
" Set up leader
|
|
||||||
let mapleader="\<SPACE>"
|
|
||||||
let maplocalleader=","
|
|
||||||
|
|
||||||
lua require 'init'
|
lua require 'init'
|
||||||
|
|
||||||
" This seems to be required here as well as in init.lua else the colorscheme
|
" This seems to be required here as well as in init.lua else the colorscheme
|
||||||
|
|
|
@ -58,6 +58,10 @@ vim.g.loaded_tarPlugin = 1
|
||||||
vim.g.loaded_vimballPlugin = 1
|
vim.g.loaded_vimballPlugin = 1
|
||||||
vim.g.loaded_zipPlugin = 1
|
vim.g.loaded_zipPlugin = 1
|
||||||
|
|
||||||
|
-- Map leader
|
||||||
|
vim.g.mapleader = " "
|
||||||
|
vim.g.maplocalleader = ","
|
||||||
|
|
||||||
-- Needs to be set before loading quickr-cscope
|
-- Needs to be set before loading quickr-cscope
|
||||||
vim.g.quickr_cscope_keymaps = 0
|
vim.g.quickr_cscope_keymaps = 0
|
||||||
-- Needs to be set before vimtex gets loaded, else it complains
|
-- Needs to be set before vimtex gets loaded, else it complains
|
||||||
|
@ -69,12 +73,12 @@ vim.g.vimtex_view_general_options_latexmk = '--unique'
|
||||||
vim.g.toggle_list_no_mappings = 1
|
vim.g.toggle_list_no_mappings = 1
|
||||||
-- Enable rainbow brackets everywhere
|
-- Enable rainbow brackets everywhere
|
||||||
vim.g.rainbow_active = 1
|
vim.g.rainbow_active = 1
|
||||||
|
|
||||||
|
-- Settings using nvim.api
|
||||||
-- Needs to be set before vim-sneak is loaded
|
-- Needs to be set before vim-sneak is loaded
|
||||||
vim.api.nvim_command('let g:sneak#label = 1')
|
vim.api.nvim_command('let g:sneak#label = 1')
|
||||||
vim.api.nvim_command('let g:sneak#s_next = 1')
|
vim.api.nvim_command('let g:sneak#s_next = 1')
|
||||||
vim.api.nvim_command('let g:sneak#use_ic_scs = 0')
|
vim.api.nvim_command('let g:sneak#use_ic_scs = 0')
|
||||||
|
|
||||||
-- Settings using nvim.api
|
|
||||||
-- We do this to prevent the loading of the system fzf.vim plugin. This is
|
-- We do this to prevent the loading of the system fzf.vim plugin. This is
|
||||||
-- present at least on Arch/Manjaro
|
-- present at least on Arch/Manjaro
|
||||||
vim.api.nvim_command('set rtp-=/usr/share/vim/vimfiles')
|
vim.api.nvim_command('set rtp-=/usr/share/vim/vimfiles')
|
||||||
|
@ -90,11 +94,10 @@ vim.api.nvim_command('set pumblend=30')
|
||||||
vim.api.nvim_command('set sessionoptions-=blank')
|
vim.api.nvim_command('set sessionoptions-=blank')
|
||||||
vim.api.nvim_command('set backspace=indent,eol,start')
|
vim.api.nvim_command('set backspace=indent,eol,start')
|
||||||
vim.api.nvim_command('set diffopt=filler,internal,algorithm:histogram,indent-heuristic')
|
vim.api.nvim_command('set diffopt=filler,internal,algorithm:histogram,indent-heuristic')
|
||||||
|
-- Load out custom colorscheme
|
||||||
|
vim.api.nvim_command('colorscheme yolokai')
|
||||||
-- Add the in built Cfilter plugin. Replaces QFGrep.
|
-- Add the in built Cfilter plugin. Replaces QFGrep.
|
||||||
vim.cmd [[packadd cfilter]]
|
vim.api.nvim_command('packadd cfilter')
|
||||||
|
|
||||||
vim.cmd [[colorscheme yolokai]]
|
|
||||||
|
|
||||||
-- Add other lua configs or plugins
|
-- Add other lua configs or plugins
|
||||||
require 'autocmd'
|
require 'autocmd'
|
||||||
|
|
Loading…
Reference in a new issue