mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-02 03:19:54 +02:00
56 lines
1.5 KiB
VimL
56 lines
1.5 KiB
VimL
packadd dracula
|
|
syntax enable
|
|
colorscheme dracula
|
|
|
|
|
|
set tabstop=4
|
|
set shiftwidth=4
|
|
set expandtab
|
|
command GoToFile cd %:p:h
|
|
set clipboard^=unnamedplus
|
|
set shell=bash shellquote=\" shellxquote=\"
|
|
set shcf=-i\ -c
|
|
tnoremap <Esc> <C-\><C-n>
|
|
set number
|
|
|
|
call plug#begin('~/AppData/Local/nvim/plugged')
|
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
Plug 'scrooloose/nerdtree'
|
|
Plug 'jdonaldson/vaxe', {'branch' : 'neovaxe', 'do' : 'sh install.sh'}
|
|
Plug 'SirVer/ultisnips'
|
|
let g:UltiSnipsSnippetDirectories=["UltiSnips", "bundle/UltiSnips/UltiSnips"]
|
|
|
|
Plug 'Xuyuanp/nerdtree-git-plugin'
|
|
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
|
|
Plug 'ryanoasis/vim-devicons'
|
|
Plug 'cespare/vim-toml'
|
|
|
|
call plug#end()
|
|
|
|
" GoTo code navigation.
|
|
nmap <silent> gd <Plug>(coc-definition)
|
|
nmap <silent> gy <Plug>(coc-type-definition)
|
|
nmap <silent> gi <Plug>(coc-implementation)
|
|
nmap <silent> gr <Plug>(coc-references)
|
|
|
|
" Use K to show documentation in preview window.
|
|
nnoremap <silent> K :call <SID>show_documentation()<CR>
|
|
|
|
function! s:show_documentation()
|
|
if (index(['vim','help'], &filetype) >= 0)
|
|
execute 'h '.expand('<cword>')
|
|
elseif (coc#rpc#ready())
|
|
call CocActionAsync('doHover')
|
|
else
|
|
execute '!' . &keywordprg . " " . expand('<cword>')
|
|
endif
|
|
endfunction
|
|
|
|
" Highlight the symbol and its references when holding the cursor.
|
|
autocmd CursorHold * silent call CocActionAsync('highlight')
|
|
|
|
autocmd StdinReadPre * let s:std_in=1
|
|
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
|
|