-- You can add your own plugins here or in other files in this directory! -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information return { { 'stevearc/oil.nvim', opts = {}, dependencies = { { 'echasnovski/mini.icons', opts = {} } }, config = function() require('oil').setup { default_file_explorer = true, view_options = { show_hidden = true, }, } end, }, { 'christoomey/vim-tmux-navigator', cmd = { 'TmuxNavigateLeft', 'TmuxNavigateDown', 'TmuxNavigateUp', 'TmuxNavigateRight', 'TmuxNavigatePrevious', 'TmuxNavigatorProcessList', }, keys = { { '', 'TmuxNavigateLeft' }, { '', 'TmuxNavigateDown' }, { '', 'TmuxNavigateUp' }, { '', 'TmuxNavigateRight' }, { '', 'TmuxNavigatePrevious' }, }, }, { 'mbbill/undotree', config = function() local wk = require 'which-key' wk.add { { 'u', desc = 'Show undotree', mode = 'n', buffer = true, }, } end, }, { 'lervag/vimtex', lazy = false, -- we don't want to lazy load VimTeX -- tag = "v2.15", -- uncomment to pin to a specific release init = function() -- VimTeX configuration goes here, e.g. vim.g.vimtex_view_method = 'zathura' vim.g.vimtex_compiler_method = 'pdflatex' end, config = function() local wk = require 'which-key' vim.api.nvim_create_autocmd('FileType', { pattern = { 'tex' }, callback = function() vim.keymap.set('n', 'm', 'i\\[\\]kA', { buffer = true }) vim.keymap.set('n', 'p', 'i\\begin{pmatrix}\\end{pmatrix}kA', { buffer = true }) end, }) wk.add { { 'm', desc = 'Insert display math block', mode = 'n', buffer = true, }, { 'p', desc = 'Insert pmatrix block', mode = 'n', buffer = true, }, } end, }, }