diff options
author | Josh Rahm <rahm@google.com> | 2023-01-17 23:24:00 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2023-01-17 23:24:00 +0000 |
commit | cabff8615ed4784c52d4c421536020c8a44d970d (patch) | |
tree | 84d13e7029a3720632af10bad055e472d1343af2 | |
download | config.vim-cabff8615ed4784c52d4c421536020c8a44d970d.tar.gz config.vim-cabff8615ed4784c52d4c421536020c8a44d970d.tar.bz2 config.vim-cabff8615ed4784c52d4c421536020c8a44d970d.zip |
add init.vim
-rw-r--r-- | init.vim | 58 |
1 files changed, 58 insertions, 0 deletions
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 <C-w>% <C-w>v +noremap <C-w>" <C-w>s + +augroup InitVim + au! + autocmd BufRead *.java,*.c,*.cpp,*.cxx TSBufEnable highlight +augroup END + +noremap รบ <cmd>FormatCode<cr> +noremap <leader>p <plug>(SynStack) + +lua << EOF + -- CiderLSP + vim.opt.completeopt = { "menu", "menuone", "noselect" } + require("lsp") + require("lspconfig") + + -- Diagnostics + require("diagnostics") +EOF |