83 lines
1.9 KiB
VimL
83 lines
1.9 KiB
VimL
call plug#begin(stdpath('config') . '/plugged')
|
|
|
|
Plug 'vim-airline/vim-airline'
|
|
exe 'source' (stdpath('config') . '/airline.vim')
|
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
exe 'source' (stdpath('config') . '/coc.vim')
|
|
|
|
Plug 'preservim/nerdtree'
|
|
exe 'source' (stdpath('config') . '/nerdtree.vim')
|
|
|
|
Plug 'ctrlpvim/ctrlp.vim'
|
|
Plug 'mhinz/vim-startify'
|
|
Plug 'tomasiser/vim-code-dark'
|
|
Plug 'jiangmiao/auto-pairs'
|
|
Plug 'GutenYe/json5.vim'
|
|
|
|
Plug 'godlygeek/tabular'
|
|
Plug 'plasticboy/vim-markdown'
|
|
let g:vim_markdown_new_list_item_indent = 2
|
|
|
|
" Plug 'editorconfig/editorconfig-vim'
|
|
" Plug 'dense-analysis/ale'
|
|
" Plug 'vim-syntastic/syntastic'
|
|
" Plug 'majutsushi/tagbar'
|
|
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
|
"
|
|
" Plug 'autozimu/LanguageClient-neovim', {
|
|
" \ 'branch': 'next',
|
|
" \ 'do': 'bash install.sh',
|
|
" \ }
|
|
"
|
|
" Plug 'rust-lang/rust.vim'
|
|
" " Plug 'racer-rust/vim-racer'
|
|
"
|
|
" Plug 'idris-hackers/idris-vim'
|
|
call plug#end()
|
|
|
|
" General config
|
|
|
|
colorscheme codedark
|
|
|
|
set splitright
|
|
set number
|
|
set cursorline
|
|
set hidden
|
|
set modeline
|
|
set modelines=5
|
|
set tabstop=4
|
|
set shiftwidth=4
|
|
set expandtab
|
|
|
|
syntax on
|
|
filetype on
|
|
filetype plugin indent on
|
|
|
|
" Binds
|
|
|
|
let mapleader = ";"
|
|
|
|
nnoremap T :vsplit<BAR>vertical resize 54<BAR>terminal<CR>i
|
|
|
|
imap kj <Esc>
|
|
imap ;; <Esc>:w<CR>i
|
|
|
|
nmap <F8> :TagbarToggle<CR>
|
|
nmap ;; :w<CR>
|
|
|
|
" let g:LanguageClient_serverCommands = {
|
|
" \ 'rust': ['rust-analyzer'],
|
|
" \ }
|
|
" nnoremap <F5> :call LanguageClient_contextMenu()<CR>
|
|
" function LC_maps()
|
|
" if has_key(g:LanguageClient_serverCommands, &filetype)
|
|
" nnoremap <buffer> <silent> K :call LanguageClient#textDocument_hover()<cr>
|
|
" nnoremap <buffer> <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
|
" nnoremap <buffer> <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
|
|
" endif
|
|
" endfunction
|
|
" autocmd FileType * call LC_maps()
|
|
|
|
" Plugin-related configs
|
|
|