[feature] add vimspector
This commit is contained in:
parent
757e2c547b
commit
d79fdefd7f
|
@ -11,11 +11,8 @@ case "$PM" in
|
||||||
sudo add-apt-repository ppa:fish-shell/release-3 -y
|
sudo add-apt-repository ppa:fish-shell/release-3 -y
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install fish libnotify-bin xdotool silversearcher-ag dash -y
|
sudo apt install fish libnotify-bin xdotool silversearcher-ag dash -y
|
||||||
if apt show fzf 2>/dev/null; then
|
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
||||||
sudo apt install -y fzf
|
~/.fzf/install
|
||||||
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
|
|
||||||
~/.fzf/install
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
sudo pacman -S --needed --needed fish xdotool fzf the_silver_searcher dash
|
sudo pacman -S --needed --needed fish xdotool fzf the_silver_searcher dash
|
||||||
|
@ -52,5 +49,5 @@ lnsf "$DIR/config/functions/fish_right_prompt.fish" "$XDG_CONFIG_HOME/fish/funct
|
||||||
lnsf "$DIR/config/functions/fisher.fish" "$XDG_CONFIG_HOME/fish/functions/fisher.fish"
|
lnsf "$DIR/config/functions/fisher.fish" "$XDG_CONFIG_HOME/fish/functions/fisher.fish"
|
||||||
|
|
||||||
# install plugins
|
# install plugins
|
||||||
fish -c "fisher add jethrokuan/fzf"
|
#fish -c "fisher add jethrokuan/fzf"
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ set incsearch
|
||||||
set signcolumn=yes
|
set signcolumn=yes
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set fillchars=vert:\ ,fold:-
|
set fillchars=vert:\ ,fold:-
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamed,unnamedplus
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
syntax on
|
syntax on
|
||||||
au! BufWritePost $MYVIMRC source %
|
au! BufWritePost $MYVIMRC source %
|
||||||
|
@ -86,22 +86,22 @@ if !filereadable(vim_plug_path)
|
||||||
echo "vim-plug installed"
|
echo "vim-plug installed"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
|
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||||
Plug 'posva/vim-vue', { 'for': 'vue' }
|
Plug 'posva/vim-vue', { 'for': 'vue' }
|
||||||
Plug 'tpope/vim-repeat'
|
Plug 'tpope/vim-repeat'
|
||||||
if $COC_ENABLED == 'yes'
|
if $VIM_MODE == 'enhanced'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'puremourning/vimspector'
|
||||||
else
|
else
|
||||||
Plug 'Vimjas/vim-python-pep8-indent', { 'for': 'python' }
|
Plug 'Vimjas/vim-python-pep8-indent', { 'for': 'python' }
|
||||||
endif
|
endif
|
||||||
Plug 'liuchengxu/eleline.vim'
|
Plug 'liuchengxu/eleline.vim'
|
||||||
Plug 'tpope/vim-fugitive' " git 功能
|
Plug 'tpope/vim-fugitive' " git 功能
|
||||||
Plug 'scrooloose/nerdcommenter'
|
Plug 'scrooloose/nerdcommenter'
|
||||||
"Plug 'ctrlpvim/ctrlp.vim'
|
|
||||||
Plug 'mhinz/vim-grepper', { 'on': ['Grepper', '<plug>(GrepperOperator)'] }
|
Plug 'mhinz/vim-grepper', { 'on': ['Grepper', '<plug>(GrepperOperator)'] }
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
Plug 'dag/vim-fish', { 'for': 'fish' }
|
Plug 'dag/vim-fish', { 'for': 'fish' }
|
||||||
|
@ -120,8 +120,8 @@ let g:vim_markdown_folding_disabled = 1
|
||||||
let g:closetag_filetypes = 'html,xhtml,phtml,vue'
|
let g:closetag_filetypes = 'html,xhtml,phtml,vue'
|
||||||
|
|
||||||
|
|
||||||
" ==== coc configuration ====
|
if $VIM_MODE == 'enhanced'
|
||||||
if $COC_ENABLED == 'yes'
|
" ==== coc configuration ====
|
||||||
let g:coc_disable_startup_warning = 1
|
let g:coc_disable_startup_warning = 1
|
||||||
set statusline^=%{coc#status()}
|
set statusline^=%{coc#status()}
|
||||||
nmap <silent> gd <Plug>(coc-definition)
|
nmap <silent> gd <Plug>(coc-definition)
|
||||||
|
@ -139,6 +139,10 @@ if $COC_ENABLED == 'yes'
|
||||||
nmap <silent> <leader>cl :CocList<CR>
|
nmap <silent> <leader>cl :CocList<CR>
|
||||||
nmap <silent> <leader>sd :call CocAction('doHover')<CR>
|
nmap <silent> <leader>sd :call CocAction('doHover')<CR>
|
||||||
nmap <silent> <leader>ol <Plug>(coc-openlink)
|
nmap <silent> <leader>ol <Plug>(coc-openlink)
|
||||||
|
|
||||||
|
" ==== vimspector configuration ====
|
||||||
|
let g:vimspector_enable_mappings = 'HUMAN'
|
||||||
|
let g:vimspector_install_gadgets = [ 'debugpy' ]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ==== auto-pairs configuration ====
|
" ==== auto-pairs configuration ====
|
||||||
|
|
|
@ -22,3 +22,4 @@ esac
|
||||||
lnsf "$DIR/config/init.vim" "$XDG_CONFIG_HOME/nvim/init.vim"
|
lnsf "$DIR/config/init.vim" "$XDG_CONFIG_HOME/nvim/init.vim"
|
||||||
lnsf "$DIR/config/coc-settings.json" "$XDG_CONFIG_HOME/nvim/coc-settings.json"
|
lnsf "$DIR/config/coc-settings.json" "$XDG_CONFIG_HOME/nvim/coc-settings.json"
|
||||||
lnsf "$DIR/config/init.vim" ~/.vimrc
|
lnsf "$DIR/config/init.vim" ~/.vimrc
|
||||||
|
lnsf "$DIR/config/coc-settings.json" ~/.vim/coc-settings.json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user