2020-06-26 18:37:31 +00:00
|
|
|
call plug#begin(stdpath('data') . '/plugged')
|
2020-05-06 21:46:35 +00:00
|
|
|
|
2020-05-07 17:43:25 +00:00
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
exe 'source' (stdpath('config') . '/airline.vim')
|
|
|
|
|
2020-05-07 04:20:54 +00:00
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
|
|
exe 'source' (stdpath('config') . '/coc.vim')
|
2020-06-08 16:11:42 +00:00
|
|
|
" Plug 'file://'.expand('~/Projects/coc-nvim-rs/')
|
2020-04-09 04:18:20 +00:00
|
|
|
|
2020-05-07 04:20:54 +00:00
|
|
|
Plug 'preservim/nerdtree'
|
|
|
|
exe 'source' (stdpath('config') . '/nerdtree.vim')
|
2020-04-09 04:18:20 +00:00
|
|
|
|
2020-05-07 04:20:54 +00:00
|
|
|
Plug 'ctrlpvim/ctrlp.vim'
|
2020-06-15 08:18:21 +00:00
|
|
|
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
|
|
|
|
|
2020-11-30 22:22:22 +00:00
|
|
|
Plug 'jiangmiao/auto-pairs', { 'for': 'rust' }
|
2020-11-14 01:34:09 +00:00
|
|
|
Plug 'kovisoft/slimv', { 'for': 'lisp' }
|
2020-11-30 22:22:22 +00:00
|
|
|
Plug 'leafOfTree/vim-svelte-plugin'
|
2021-01-25 22:21:29 +00:00
|
|
|
Plug 'JuliaEditorSupport/julia-vim'
|
|
|
|
|
2020-05-07 17:43:25 +00:00
|
|
|
Plug 'mhinz/vim-startify'
|
|
|
|
Plug 'tomasiser/vim-code-dark'
|
2020-11-14 01:34:09 +00:00
|
|
|
Plug 'tpope/vim-sleuth'
|
2020-11-07 19:04:31 +00:00
|
|
|
|
|
|
|
" Language plugins
|
2020-11-30 22:22:22 +00:00
|
|
|
Plug 'kovisoft/slimv'
|
|
|
|
Plug 'leafOfTree/vim-svelte-plugin'
|
2020-11-07 19:04:31 +00:00
|
|
|
Plug 'vmchale/dhall-vim'
|
2020-11-30 22:22:22 +00:00
|
|
|
Plug 'qnighy/lalrpop.vim'
|
2020-06-15 08:18:21 +00:00
|
|
|
Plug 'cespare/vim-toml'
|
2020-11-07 19:04:31 +00:00
|
|
|
Plug 'GutenYe/json5.vim'
|
|
|
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
2020-11-30 22:22:22 +00:00
|
|
|
Plug 'pest-parser/pest.vim', { 'for': 'pest' }
|
2020-12-24 05:00:20 +00:00
|
|
|
Plug 'zah/nim.vim'
|
2020-04-09 04:18:20 +00:00
|
|
|
|
2020-05-07 04:20:54 +00:00
|
|
|
Plug 'godlygeek/tabular'
|
|
|
|
Plug 'plasticboy/vim-markdown'
|
2020-06-08 16:11:42 +00:00
|
|
|
|
2020-11-14 01:34:09 +00:00
|
|
|
Plug 'wakatime/vim-wakatime'
|
2020-06-29 05:26:49 +00:00
|
|
|
Plug 'aurieh/discord.nvim', { 'do': ':UpdateRemotePlugins'}
|
2020-11-07 19:04:31 +00:00
|
|
|
Plug 'wakatime/vim-wakatime'
|
2020-06-29 05:26:49 +00:00
|
|
|
|
2020-06-26 18:24:22 +00:00
|
|
|
let g:go_fmt_command = 'goimports'
|
|
|
|
|
2020-05-07 04:20:54 +00:00
|
|
|
let g:vim_markdown_new_list_item_indent = 2
|
2020-06-15 08:18:21 +00:00
|
|
|
let g:vim_markdown_folding_disabled = 1
|
|
|
|
let g:vim_markdown_toml_frontmatter = 1
|
2020-05-07 04:20:54 +00:00
|
|
|
|
2020-06-15 08:18:21 +00:00
|
|
|
Plug 'editorconfig/editorconfig-vim'
|
2020-04-09 04:18:20 +00:00
|
|
|
call plug#end()
|
|
|
|
|
|
|
|
" General config
|
|
|
|
|
|
|
|
colorscheme codedark
|
|
|
|
|
|
|
|
set splitright
|
|
|
|
set number
|
|
|
|
set cursorline
|
|
|
|
set hidden
|
2020-05-06 22:01:14 +00:00
|
|
|
set modeline
|
|
|
|
set modelines=5
|
2020-05-09 06:42:34 +00:00
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set expandtab
|
2020-06-15 08:18:21 +00:00
|
|
|
set formatoptions+=t
|
2020-07-13 20:45:29 +00:00
|
|
|
set colorcolumn=80
|
2020-04-09 04:18:20 +00:00
|
|
|
|
|
|
|
syntax on
|
|
|
|
filetype on
|
|
|
|
filetype plugin indent on
|
|
|
|
|
2020-05-07 17:43:25 +00:00
|
|
|
" Binds
|
|
|
|
|
2020-04-09 04:18:20 +00:00
|
|
|
let mapleader = ";"
|
2020-05-07 17:43:25 +00:00
|
|
|
|
2020-04-09 04:18:20 +00:00
|
|
|
nnoremap T :vsplit<BAR>vertical resize 54<BAR>terminal<CR>i
|
|
|
|
|
2020-05-07 17:43:25 +00:00
|
|
|
imap kj <Esc>
|
2020-11-30 22:22:22 +00:00
|
|
|
" imap ;; <Esc>:w<CR>i
|
2020-04-09 04:18:20 +00:00
|
|
|
|
|
|
|
nmap <F8> :TagbarToggle<CR>
|
2020-11-30 22:22:22 +00:00
|
|
|
" nmap ;; :w<CR>
|
2020-05-07 04:20:54 +00:00
|
|
|
|
|
|
|
" 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()
|
2020-04-09 04:18:20 +00:00
|
|
|
|
|
|
|
" Plugin-related configs
|
|
|
|
|
2021-02-11 20:04:40 +00:00
|
|
|
let g:go_fmt_command = "goimports"
|