106 lines
2.6 KiB
VimL
106 lines
2.6 KiB
VimL
call plug#begin(stdpath('data') . '/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 'file://'.expand('~/Projects/coc-nvim-rs/')
|
|
|
|
Plug 'preservim/nerdtree'
|
|
exe 'source' (stdpath('config') . '/nerdtree.vim')
|
|
|
|
" Plug 'ctrlpvim/ctrlp.vim'
|
|
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
|
|
|
|
Plug 'FStarLang/VimFStar', {'for': 'fstar'}
|
|
Plug 'LnL7/vim-nix'
|
|
Plug 'ashinkarov/nvim-agda'
|
|
Plug 'evanleck/vim-svelte', {'branch': 'main'}
|
|
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
|
|
Plug 'sheerun/vim-polyglot'
|
|
Plug 'tomasiser/vim-code-dark'
|
|
Plug 'editorconfig/editorconfig-vim'
|
|
Plug 'ctrlpvim/ctrlp.vim'
|
|
|
|
" Plug 'jiangmiao/auto-pairs', { 'for': 'rust' }
|
|
" Plug 'kovisoft/slimv', { 'for': 'lisp' }
|
|
" Plug 'leafOfTree/vim-svelte-plugin'
|
|
" Plug 'JuliaEditorSupport/julia-vim'
|
|
|
|
" Plug 'mhinz/vim-startify'
|
|
" Plug 'tpope/vim-sleuth'
|
|
|
|
" Language plugins
|
|
" Plug 'kovisoft/slimv'
|
|
" Plug 'vmchale/dhall-vim'
|
|
" Plug 'qnighy/lalrpop.vim'
|
|
" Plug 'cespare/vim-toml'
|
|
" Plug 'GutenYe/json5.vim'
|
|
" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
|
" Plug 'pest-parser/pest.vim', { 'for': 'pest' }
|
|
" Plug 'zah/nim.vim'
|
|
|
|
" Plug 'godlygeek/tabular'
|
|
" Plug 'plasticboy/vim-markdown'
|
|
|
|
" Plug 'aurieh/discord.nvim', { 'do': ':UpdateRemotePlugins'}
|
|
|
|
call plug#end()
|
|
|
|
let g:go_fmt_command = 'goimports'
|
|
|
|
let g:vim_markdown_new_list_item_indent = 2
|
|
let g:vim_markdown_folding_disabled = 1
|
|
let g:vim_markdown_toml_frontmatter = 1
|
|
|
|
" 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
|
|
set formatoptions+=t
|
|
set colorcolumn=80
|
|
|
|
syntax on
|
|
filetype on
|
|
filetype plugin indent on
|
|
|
|
" Binds
|
|
|
|
let mapleader = ";"
|
|
let maplocalleader = ";"
|
|
" nnoremap ; :
|
|
|
|
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
|
|
|
|
let g:go_fmt_command = "goimports"
|