call plug#begin() Plug 'dylnmc/synstack.vim' Plug 'folke/trouble.nvim' Plug 'google/vim-codefmt' Plug 'google/vim-glaive' Plug 'google/vim-maktaba' Plug 'hrsh7th/cmp-buffer' Plug 'hrsh7th/cmp-nvim-lsp' Plug 'hrsh7th/cmp-nvim-lua' Plug 'hrsh7th/cmp-path' Plug 'hrsh7th/cmp-vsnip' Plug 'hrsh7th/nvim-cmp' Plug 'hrsh7th/vim-vsnip' Plug 'kyazdani42/nvim-web-devicons' Plug 'neovim/nvim-lspconfig' Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'onsails/lspkind.nvim' Plug 'flazz/vim-colorschemes' if filereadable($HOME . '/.config/nvim/local-plugins.vim') source $HOME/.config/nvim/local-plugins.vim endif Plug 'git://git.josher.dev/fieldmarshal.vim.git' Plug 'git://git.josher.dev/rneovim-userregs.git' Plug 'git@git.josher.dev:config.vim.git', { 'dir': g:plug_home . '/config.vim' } call plug#end() set termguicolors set shiftwidth=2 set tabstop=2 set expandtab set nowrap set splitright set wildmode=longest,list,full let mapleader=" " noremap % v noremap " s noremap Y y$ augroup InitVim au! autocmd BufRead *.java,*.c,*.cpp,*.cxx TSBufEnable highlight augroup END noremap รบ FormatCode noremap p (SynStack) lua << EOF -- CiderLSP vim.opt.completeopt = { "menu", "menuone", "noselect" } require("lsp") require("lspconfig") -- Diagnostics require("diagnostics") EOF if filereadable($HOME . '/.config/nvim/local.vim') source $HOME/.config/nvim/local.vim else colorscheme gruvbox endif