Created
June 5, 2024 17:42
-
-
Save jaidevd/126d47194eadcd0b32f0af4f4101232e to your computer and use it in GitHub Desktop.
init.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:python3_host_prog="~/conda/bin/python" | |
let g:python2_host_prog="~/conda/bin/python" | |
call plug#begin('~/.local/share/nvim/plugged') | |
" Autocomplete stuff | |
if has('nvim') | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
else | |
Plug 'Shougo/deoplete.nvim' | |
Plug 'roxma/nvim-yarp' | |
Plug 'roxma/vim-hug-neovim-rpc' | |
endif | |
let g:deoplete#enable_at_startup=1 | |
Plug 'zchee/deoplete-jedi' | |
Plug 'davidhalter/jedi-vim' | |
" Powerline alternative | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'tpope/vim-fugitive' | |
Plug 'scrooloose/nerdtree' | |
Plug 'nvie/vim-flake8' | |
Plug 'tpope/vim-surround' | |
Plug 'kien/ctrlp.vim' | |
Plug 'airblade/vim-gitgutter' | |
" Plug 'msanders/snipmate.vim' | |
Plug 'SirVer/ultisnips' | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'takac/vim-hardtime' | |
Plug 'mileszs/ack.vim' | |
" Plug 'altercation/vim-colors-solarized' | |
Plug 'lifepillar/vim-solarized8' | |
Plug 'janko/vim-test' | |
Plug 'tmhedberg/SimpylFold' | |
Plug 'heavenshell/vim-pydocstring' | |
" Plug 'godlygeek/tabular' | |
" Plug 'plasticboy/vim-markdown' | |
Plug 'ambv/black' | |
Plug 'mattn/emmet-vim' | |
Plug 'neoclide/coc.nvim', {'branch': 'release', 'for': 'typescript'} | |
" Kotlin | |
Plug 'udalov/kotlin-vim' | |
Plug 'artur-shaik/vim-javacomplete2' | |
" For Java | |
" Plug 'vim-syntastic/syntastic' | |
" Add maktaba and codefmt to the runtimepath. | |
" (The latter must be installed before it can be used.) | |
Plug 'google/vim-maktaba' | |
Plug 'google/vim-codefmt' | |
" " Also add Glaive, which is used to configure codefmt's maktaba flags. See | |
" " `:help :Glaive` for usage. | |
Plug 'google/vim-glaive' | |
" Eslint | |
Plug 'eslint/eslint' | |
" Prettier | |
Plug 'prettier/vim-prettier', { | |
\ 'do': 'yarn install --frozen-lockfile --production', | |
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } | |
" Copilot | |
Plug 'github/copilot.vim' | |
call plug#end() | |
call glaive#Install() | |
let g:airline_powerline_fonts = 1 | |
set cursorline | |
set number | |
map <C-n> ;NERDTreeToggle<CR> | |
" Flake8 | |
let g:flake8_show_in_gutter=1 | |
let g:flake8_show_in_file=1 | |
let g:flake8_show_quickfix=1 | |
autocmd BufWritePost *.py call Flake8() | |
" Java Formatting | |
" autocmd FileType java AutoFormatBuffer google-java-format | |
" Fold markdown at 80 | |
au BufRead,BufNewFile *.md setlocal textwidth=80 | |
nnoremap : ; | |
nnoremap ; : | |
set clipboard+=unnamedplus | |
set rnu | |
" solarized | |
syntax enable | |
set background=dark | |
let g:solarized_termcolors=256 | |
autocmd vimenter * ++nested colorscheme solarized8_high | |
let test#python#runner = 'pytest' | |
let g:UltiSnipsExpandTrigger="<c-j>" | |
let g:UltiSnipsSnippetDirectories=[$HOME.'/.config/ultisnips'] | |
" Java | |
autocmd FileType java setlocal omnifunc=javacomplete#Complete | |
Glaive codefmt google_java_executable="java -jar /home/jaidevd/.local/java/google-java-format-1.14.0-all-deps.jar" | |
" Doq | |
let g:pydocstring_doq_path="/home/jaidevd/conda/bin/doq" | |
let g:pydocstring_formatter="numpy" | |
" Tab stuff | |
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment