feat(plugins): add Copilot & Jedi-Vim Python code completion & Jenkins syntax highlights plugins
parent
f4b2b9ea53
commit
c8992c9463
|
|
@ -63,6 +63,12 @@ call plug#begin()
|
||||||
" https://vimawesome.com/plugin/vim-workspace
|
" https://vimawesome.com/plugin/vim-workspace
|
||||||
Plug 'thaerkh/vim-workspace'
|
Plug 'thaerkh/vim-workspace'
|
||||||
|
|
||||||
|
" Highlights plugins
|
||||||
|
|
||||||
|
" Jenkinsfile syntax highlighting
|
||||||
|
" https://vimawesome.com/plugin/vim-jenkinsfile
|
||||||
|
Plug 'thanethomson/vim-jenkinsfile'
|
||||||
|
|
||||||
" Visual Studio Code plugins
|
" Visual Studio Code plugins
|
||||||
|
|
||||||
" coloured icons & explorer
|
" coloured icons & explorer
|
||||||
|
|
@ -82,12 +88,23 @@ call plug#begin()
|
||||||
" cd ~/.local/share/fonts/Hermit && unzip Hermit.zip
|
" cd ~/.local/share/fonts/Hermit && unzip Hermit.zip
|
||||||
" cd ~ && fc-cache -fv
|
" cd ~ && fc-cache -fv
|
||||||
|
|
||||||
" YouCompleteMe a code-completion engine for Vim
|
" Copilot - AI completion
|
||||||
|
" https://github.com/github/copilot.vim
|
||||||
|
Plug 'github/copilot.vim'
|
||||||
|
|
||||||
|
" YouCompleteMe a code-completion (C / C++ / Java) engine for Vim
|
||||||
" you must install some dependecies manually:
|
" you must install some dependecies manually:
|
||||||
" https://github.com/ycm-core/YouCompleteMe#linux-64-bit
|
" https://github.com/ycm-core/YouCompleteMe#linux-64-bit
|
||||||
" https://vimawesome.com/plugin/youcompleteme#python-semantic-completion
|
" https://vimawesome.com/plugin/youcompleteme#python-semantic-completion
|
||||||
" Plug 'valloric/youcompleteme'
|
" Plug 'valloric/youcompleteme'
|
||||||
|
|
||||||
|
" Python code completion plugin - Jedi-vim
|
||||||
|
" https://github.com/davidhalter/jedi-vim
|
||||||
|
Plug 'davidhalter/jedi-vim'
|
||||||
|
|
||||||
|
" jedi-vim not working with 'set paste' option,
|
||||||
|
" disable it by 'set nopaste' for use this plugin
|
||||||
|
|
||||||
" tabline plugin with re-orderable, auto-sizing, clickable tabs, icons,
|
" tabline plugin with re-orderable, auto-sizing, clickable tabs, icons,
|
||||||
" nice highlighting, sort-by commands and a magic jump-to-buffer mode
|
" nice highlighting, sort-by commands and a magic jump-to-buffer mode
|
||||||
" Plus the tab names are made unique when two filenames match.
|
" Plus the tab names are made unique when two filenames match.
|
||||||
|
|
@ -272,11 +289,27 @@ call plug#begin()
|
||||||
" set termguicolors to enable highlight groups
|
" set termguicolors to enable highlight groups
|
||||||
au VimEnter * lua vim.opt.termguicolors = true
|
au VimEnter * lua vim.opt.termguicolors = true
|
||||||
|
|
||||||
|
" jedi-vim configuration
|
||||||
|
|
||||||
|
let g:jedi#use_tabs_not_buffers = 1
|
||||||
|
let g:jedi#use_splits_not_buffers = "left"
|
||||||
|
let g:jedi#environment_path = "/usr/bin/python3"
|
||||||
|
|
||||||
|
" Copilot configuration
|
||||||
|
|
||||||
|
au VimEnter * Copilot setup
|
||||||
|
|
||||||
" startup
|
" startup
|
||||||
|
|
||||||
" display code line numbers by default
|
" display code line numbers by default
|
||||||
set number
|
set number
|
||||||
|
|
||||||
|
" set paste from host system in insert mode (Ctrl + Shift + V)
|
||||||
|
set paste
|
||||||
|
|
||||||
|
" set tab size
|
||||||
|
set tabstop=4
|
||||||
|
|
||||||
" install plugins automatically
|
" install plugins automatically
|
||||||
autocmd VimEnter *
|
autocmd VimEnter *
|
||||||
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
||||||
|
|
@ -294,12 +327,6 @@ call plug#begin()
|
||||||
" insert mode shorcuts
|
" insert mode shorcuts
|
||||||
nnoremap <C-s> :w\|bd<CR>
|
nnoremap <C-s> :w\|bd<CR>
|
||||||
|
|
||||||
" set paste shorcut (Ctrl + Shift + V)
|
|
||||||
set paste
|
|
||||||
|
|
||||||
" set tab size
|
|
||||||
set tabstop=4
|
|
||||||
|
|
||||||
" vim panes switching
|
" vim panes switching
|
||||||
" map <C-l> :tabn<CR> " Ctrl + l
|
" map <C-l> :tabn<CR> " Ctrl + l
|
||||||
" map <C-h> :tabp<CR> " Ctrl + h
|
" map <C-h> :tabp<CR> " Ctrl + h
|
||||||
|
|
@ -417,6 +444,10 @@ call plug#begin()
|
||||||
" Ctrl + \ + Ctrl + n - exit form terminal mode
|
" Ctrl + \ + Ctrl + n - exit form terminal mode
|
||||||
" a - terminal mode (when terminal pane is selected)
|
" a - terminal mode (when terminal pane is selected)
|
||||||
|
|
||||||
|
" Jedi-vim shortcuts (:help jedi-vim)
|
||||||
|
|
||||||
|
" g:jedi#completions_command Ctrl + Space
|
||||||
|
|
||||||
" vim-visual-multi - multiline editing shortcuts
|
" vim-visual-multi - multiline editing shortcuts
|
||||||
" https://github.com/mg979/vim-visual-multi/wiki/Quick-start
|
" https://github.com/mg979/vim-visual-multi/wiki/Quick-start
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue