.dotfiles/nvim/lua/pluginoptions.lua

52 lines
1.4 KiB
Lua
Raw Normal View History

2022-04-17 21:31:47 +02:00
-- PLUGIN OPTIONS
-- GITGUTTER SETUP
-- =========================
vim.api.nvim_set_var('gitgutter_sign_added', '')
vim.api.nvim_set_var('gitgutter_sign_modified', '')
vim.api.nvim_set_var('gitgutter_sign_removed', '')
vim.api.nvim_set_var('gitgutter_sign_modified_removed', '')
vim.cmd [[
augroup VimDiff
autocmd!
autocmd VimEnter,FilterWritePre * if &diff | GitGutterDisable | endif
augroup END
]]
-- VIMWIKI SETUP
-- =========================
vim.api.nvim_set_var('vimwiki_list', {{path = '~/.notes/', syntax = 'markdown', ext = '.md'}})
vim.api.nvim_set_var('vimwiki_hl_headers', 1)
vim.api.nvim_set_var('vimwiki_listsyms', ' X')
-- VIMTEX SETUP
-- =========================
vim.api.nvim_set_var('vimtex_compiler_engine', 'lualatex')
vim.api.nvim_set_var('vimtex_quickfix_mode', 0)
vim.api.nvim_set_var('tex_flavor', 'latex')
vim.api.nvim_set_var('vimtex_compiler_method', 'latexmk')
vim.api.nvim_set_var('vimtex_compiler_latexmk', {
backend = 'nvim',
background = 1,
build_dir = '',
callback = 1,
continuous = 1,
executable = 'latexmk',
hooks = {},
options = {'-pdflatex=lualatex', '-file-line-error', '-synctex=1', '-interaction=nonstopmode'}
})
-- TMUX SETUP
-- =========================
vim.api.nvim_set_var('tmuxcomplete#trigger', '')
-- COLORS.LUA SETUP
-- =========================
require('colorizer').setup()
-- nvim surround
require("nvim-surround").setup()