X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/0e40ccc49e9680d208724dc4da2eaa8ede5d4fa6..b119078502c0b82f890aea559cdc211d1b518353:/vimrc?ds=inline diff --git a/vimrc b/vimrc index affae76..fdcc917 100755 --- a/vimrc +++ b/vimrc @@ -63,7 +63,6 @@ au BufNewFile,BufRead *.asm,*.s set filetype=snes" " load the plugin and indent settings for the detected filetype filetype plugin indent on filetype plugin on -set omnifunc=syntaxcomplete#Complete " Directories for swp files set backupdir=~/.vim/.backup @@ -97,13 +96,32 @@ runtime! macros/matchit.vim highlight Keyword cterm=italic " FZF config -set rtp+=/usr/local/opt/fzf +set rtp+=$FZF_VIM_PATH " Inserts the path of the currently edited file into a command noremap :FZF +let g:fzf_layout = { 'down': '40%' } + +" Auto Pairs +let g:AutoPairsMultilineClose = 0 + " ALE config -let g:ale_linters = {'javascript': ['eslint']} +let g:ale_linter_aliases = {'svelte': ['css', 'javascript']} +let g:ale_linters = { + \'javascript': ['eslint'], + \'svelte': ['stylelint', 'eslint'] + \} +let g:ale_fixers = { + \'javascript': ['eslint'], + \'svelte': ['eslint'] + \} +let g:ale_fix_on_save = 1 + +" Deoplete config +let g:deoplete#enable_at_startup = 1 +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" " " A E S T H E T I C S @@ -167,6 +185,17 @@ inoremap :m .-2==gi vnoremap :m '>+1gv=gv vnoremap :m '<-2gv=gv +" Limelight / Goyo config + +autocmd! User GoyoEnter Limelight +autocmd! User GoyoLeave Limelight! +nnoremap :Limelight!!== +inoremap :Limelight!!==gi +vnoremap :Limelight!!gv=gv +nnoremap :Goyo== +inoremap :Goyo==gi +vnoremap :Goyogv=gv + " " Plug Config " @@ -174,7 +203,7 @@ vnoremap :m '<-2gv=gv call plug#begin('~/.vim/plugged') " Syntaxes -Plug 'rbdr/api-notation.vim' +Plug 'https://gitlab.com/rbdr/api-notation.vim.git' Plug 'elzr/vim-json' Plug 'mustache/vim-mode' Plug 'othree/yajs.vim' @@ -183,20 +212,28 @@ Plug 'posva/vim-vue' Plug 'leafOfTree/vim-svelte-plugin' Plug 'bumaociyuan/vim-swift' Plug 'udalov/kotlin-vim' +Plug 'tikhomirov/vim-glsl' +Plug 'jparise/vim-graphql' +Plug 'digitaltoad/vim-pug' " Editing -Plug 'jiangmiao/auto-pairs' Plug 'tpope/vim-endwise' +Plug 'rstacruz/vim-closer' Plug 'michaeljsmith/vim-indent-object' +Plug 'editorconfig/editorconfig-vim' + +" Distraction free editing +Plug 'junegunn/goyo.vim' +Plug 'junegunn/limelight.vim' " Tools Plug 'editorconfig/editorconfig-vim' Plug 'dense-analysis/ale' +Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'vim-scripts/LargeFile' Plug 'tpope/vim-fugitive' Plug 'milkypostman/vim-togglelist' Plug 'jremmen/vim-ripgrep' -Plug 'lifepillar/vim-mucomplete' " List ends here. Plugins become visible to Vim after this call. call plug#end()