2021-01-08 17:06:19 +01:00
|
|
|
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.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 = ''
|
2021-02-18 12:58:35 +01:00
|
|
|
vim.o.completeopt = 'menuone,noselect'
|
2021-01-08 17:06:19 +01:00
|
|
|
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
|
2021-06-10 15:00:31 +02:00
|
|
|
vim.o.swapfile = false
|
2021-01-08 17:06:19 +01:00
|
|
|
vim.o.sessionoptions = 'buffers,curdir,tabpages,winsize'
|
|
|
|
vim.o.shada = ''
|
|
|
|
vim.o.diffopt = 'filler,internal,algorithm:histogram,indent-heuristic'
|
2021-02-22 10:14:10 +01:00
|
|
|
vim.o.scrolloff = 999
|
2021-05-29 09:15:02 +02:00
|
|
|
vim.o.formatoptions = "crqn1j"
|
|
|
|
vim.o.relativenumber = true
|
2020-10-22 11:15:32 +02:00
|
|
|
|
2020-12-12 07:01:35 +01:00
|
|
|
vim.g.python3_host_prog = '/usr/bin/python3'
|
2020-10-22 11:15:32 +02:00
|
|
|
-- Disable providers we do not give a shit about
|
|
|
|
vim.g.loaded_python_provider = 0
|
|
|
|
vim.g.loaded_ruby_provider = 0
|
|
|
|
vim.g.loaded_perl_provider = 0
|
|
|
|
vim.g.loaded_node_provider = 0
|
|
|
|
|
|
|
|
-- Disable some in built plugins completely
|
|
|
|
vim.g.loaded_netrw = 1
|
|
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
vim.g.loaded_matchparen = 1
|
|
|
|
vim.g.loaded_matchit = 1
|
|
|
|
vim.g.loaded_2html_plugin = 1
|
|
|
|
vim.g.loaded_getscriptPlugin = 1
|
|
|
|
vim.g.loaded_gzip = 1
|
|
|
|
vim.g.loaded_logipat = 1
|
|
|
|
vim.g.loaded_rrhelper = 1
|
|
|
|
vim.g.loaded_spellfile_plugin = 1
|
|
|
|
vim.g.loaded_tarPlugin = 1
|
|
|
|
vim.g.loaded_vimballPlugin = 1
|
|
|
|
vim.g.loaded_zipPlugin = 1
|
|
|
|
|
2020-10-26 06:31:54 +01:00
|
|
|
-- Map leader
|
2021-05-14 14:34:55 +02:00
|
|
|
vim.g.mapleader = " "
|
2020-10-26 06:31:54 +01:00
|
|
|
vim.g.maplocalleader = ","
|
|
|
|
|
2021-05-07 11:00:06 +02:00
|
|
|
-- Needs to set before loading ferret
|
2021-05-14 14:34:55 +02:00
|
|
|
vim.g.FerretMap = 0
|
|
|
|
vim.g.FerretHlsearch = 0
|
|
|
|
vim.g.FerretAutojump = 0
|
2020-10-22 11:15:32 +02:00
|
|
|
-- Needs to be set before loading quickr-cscope
|
2021-05-14 14:34:55 +02:00
|
|
|
vim.g.quickr_cscope_keymaps = 0
|
2020-10-22 11:15:32 +02:00
|
|
|
-- Needs to be set before vimtex gets loaded, else it complains
|
2021-05-14 14:34:55 +02:00
|
|
|
vim.g.tex_flavor = 'latex'
|
|
|
|
vim.g.vimtex_view_general_viewer = 'zathura'
|
2020-10-23 16:24:13 +02:00
|
|
|
vim.g.vimtex_view_general_options = '--unique \\@pdf\\#src:@tex:@line:@col'
|
2020-10-22 11:15:32 +02:00
|
|
|
-- Needs to be before togglelist gets loadded
|
2021-05-14 14:34:55 +02:00
|
|
|
vim.g.toggle_list_no_mappings = 1
|
2021-05-08 09:51:49 +02:00
|
|
|
-- Needs to be set before nvim-peekup
|
2021-05-14 14:34:55 +02:00
|
|
|
vim.g.peekup_paste_before = '<Leader>P'
|
|
|
|
vim.g.peekup_paste_after = '<Leader>p'
|
2020-10-22 11:15:32 +02:00
|
|
|
-- Needs to be set before vim-sneak is loaded
|
2021-05-14 14:34:55 +02:00
|
|
|
vim.g['sneak#label'] = 1
|
|
|
|
vim.g['sneak#s_next'] = 1
|
|
|
|
vim.g['sneak#use_ic_scs'] = 0
|
2021-05-12 15:08:59 +02:00
|
|
|
|
2020-10-22 11:15:32 +02:00
|
|
|
-- 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')
|
|
|
|
|
2020-11-10 16:36:15 +01:00
|
|
|
require 'plugins'
|
2020-10-22 11:15:32 +02:00
|
|
|
require 'autocmd'
|
|
|
|
require 'keymappings'
|
2020-12-07 05:20:26 +01:00
|
|
|
require 'yolokai'
|
2020-12-31 15:10:27 +01:00
|
|
|
require 'lsp'
|
2020-12-07 05:20:26 +01:00
|
|
|
|
|
|
|
-- Load our custom color scheme
|
|
|
|
vim.api.nvim_command('colorscheme yolokai')
|