From cabff8615ed4784c52d4c421536020c8a44d970d Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 17 Jan 2023 23:24:00 +0000 Subject: add init.vim --- init.vim | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 init.vim (limited to 'init.vim') diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..d113179 --- /dev/null +++ b/init.vim @@ -0,0 +1,58 @@ +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 'git://git.josher.dev/spectral.vim.git' +Plug 'git://git.josher.dev/fieldmarshal.vim.git' +Plug 'git://git.josher.dev/rneovim-userregs.git' +Plug 'git://git.josher.dev/config.vim.git' + +call plug#end() + +set termguicolors +set shiftwidth=2 +set tabstop=2 +set expandtab +set nowrap +set splitright +set wildmode=longest,list,full + +colorscheme spectral + +let mapleader=" " + +noremap % v +noremap " s + +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 -- cgit