vim.cmd([[ set nu set smarttab set tabstop=4 set shiftwidth=4 set noexpandtab set autoindent filetype plugin indent on colorscheme vim set notermguicolors set splitbelow splitright let g:calendar_monday = 1 let g:tex_flavor='latex' " Insert mode hjkl inoremap inoremap inoremap inoremap nnoremap : nnoremap o o nnoremap O O nnoremap t :NvimTreeOpen nnoremap /<++>vf>di " Vim Wiki macros autocmd Filetype vimwiki inoremap m -[] autocmd Filetype vimwiki inoremap h == autocmd Filetype vimwiki inoremap hh ==== " C Macros autocmd Filetype c inoremap im intmain(){return0;} autocmd Filetype c inoremap i #include<> autocmd Filetype c inoremap w while(){}ke2li autocmd Filetype c inoremap f for(;;){}ke2li autocmd Filetype c inoremap s switch(){}ke2li " LaTex Macros autocmd Filetype tex inoremap up \usepackage{} autocmd Filetype tex inoremap equ \begin{equation*}\end{equation*}<++> autocmd Filetype tex inoremap ig \includegraphics{} autocmd Filetype tex inoremap b \begin{}\end{}<++>2kf{a autocmd Filetype tex inoremap e 0f{lvf}hyj0f{pO autocmd Filetype tex inoremap s \section{} autocmd Filetype tex inoremap ss \subsection{} autocmd Filetype tex inoremap sss \subsubsection{} autocmd Filetype tex inoremap tf {}yy4pki\titleformat autocmd Filetype tex inoremap fr \frac{}{<++>}6hi ]]) vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 local function bootstrap_pckr() local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim" if not (vim.uv or vim.loop).fs_stat(pckr_path) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/lewis6991/pckr.nvim", pckr_path }) end vim.opt.rtp:prepend(pckr_path) end bootstrap_pckr() require("pckr").add{ { "christoomey/vim-tmux-navigator", cmd = { "TmuxNavigateLeft", "TmuxNavigateDown", "TmuxNavigateUp", "TmuxNavigateRight", "TmuxNavigatePrevious", }, keys = { { "", "TmuxNavigateLeft" }, { "", "TmuxNavigateDown" }, { "", "TmuxNavigateUp" }, { "", "TmuxNavigateRight" }, { "", "TmuxNavigatePrevious" }, }, }, { "windwp/nvim-autopairs", event = "InsertEnter", config = function() require("nvim-autopairs").setup {} end }, { "nvim-tree/nvim-tree.lua", config = function() require("nvim-tree").setup() end }, { "vimwiki/vimwiki" }, { "mattn/calendar-vim" } }