|
|
@ -9,6 +9,7 @@ endif |
|
|
|
call plug#begin() |
|
|
|
|
|
|
|
Plug 'tpope/vim-fugitive' " Git integration |
|
|
|
Plug 'tpope/vim-rhubarb' " Github integration |
|
|
|
Plug 'tpope/vim-sensible' " Defaults everyone can agree on |
|
|
|
Plug 'tpope/vim-surround' " better handling of surrounding markers |
|
|
|
Plug 'tpope/vim-ragtag' " Enhancement of surround for html |
|
|
@ -35,6 +36,8 @@ Plug 'nvim-treesitter/nvim-treesitter-textobjects' |
|
|
|
Plug 'kyazdani42/nvim-web-devicons' " Icons... |
|
|
|
Plug 'mfussenegger/nvim-dap', { 'for': ['typescript', 'javascript', 'python', 'rust'] } |
|
|
|
Plug 'lbrayner/vim-rzip' " recursive zip support, needed for yarn pnp |
|
|
|
Plug 'kkoomen/vim-doge', { 'do': { -> doge#install() } } |
|
|
|
Plug 'taybart/b64.nvim' " en/decode base64 strings |
|
|
|
|
|
|
|
" telescope. Needed for octo.nvim, might replace fzf |
|
|
|
Plug 'nvim-lua/popup.nvim' |
|
|
@ -43,6 +46,8 @@ Plug 'nvim-telescope/telescope.nvim' |
|
|
|
Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' } " improve sort performance |
|
|
|
Plug 'pwntester/octo.nvim' |
|
|
|
|
|
|
|
"Plug 'github/copilot.vim' |
|
|
|
|
|
|
|
" {{{ CocPlugins |
|
|
|
Plug 'neoclide/coc-json', { 'do': 'yarn install --frozen-lockfile' } |
|
|
|
Plug 'neoclide/coc-snippets', { 'do': 'yarn install --frozen-lockfile' } |
|
|
@ -58,6 +63,7 @@ Plug 'neoclide/coc-yaml', { 'do': 'yarn install --frozen-lockfile' } |
|
|
|
Plug 'fannheyward/coc-sql', { 'do': 'yarn install --frozen-lockfile' } |
|
|
|
Plug 'fannheyward/coc-markdownlint', { 'do': 'yarn install --frozen-lockfile' } |
|
|
|
Plug 'fannheyward/coc-pyright', { 'for': 'python', 'do': 'yarn install --frozen-lockfile' } |
|
|
|
Plug 'josa42/coc-sh', { 'do': 'yarn install --frozen-lockfile' } |
|
|
|
" }}} |
|
|
|
|
|
|
|
" html / templates{{{ |
|
|
@ -71,7 +77,6 @@ Plug 'jvanja/vim-bootstrap4-snippets', { 'for': ['html', 'blade'] } |
|
|
|
|
|
|
|
" JavaScript{{{ |
|
|
|
Plug 'gavocanov/vim-js-indent', { 'for': [ 'javascript' ]} " JavaScript indent support |
|
|
|
Plug 'heavenshell/vim-jsdoc', { 'for': [ 'javascript', 'typescript', 'vue' ], 'do': 'make install'} " Generate JSDoc comments |
|
|
|
Plug 'posva/vim-vue', { 'for': [ 'javascript', 'html', 'vue' ] } " vue.js integration |
|
|
|
Plug 'kevinoid/vim-jsonc' |
|
|
|
"}}} |
|
|
@ -112,6 +117,11 @@ Plug 'jwalton512/vim-blade', { 'for': 'php' } |
|
|
|
Plug 'jeetsukumaran/vim-pythonsense', { 'for': ['python'] } " text objects for python |
|
|
|
Plug 'heavenshell/vim-pydocstring', { 'for': ['python'], 'do': 'make install' } |
|
|
|
Plug 'anntzer/vim-cython', { 'for': ['python']} |
|
|
|
Plug 'python-rope/ropevim' |
|
|
|
"}}} |
|
|
|
|
|
|
|
"{{{ CSV |
|
|
|
Plug 'chrisbra/csv.vim', { 'for': 'csv' } |
|
|
|
"}}} |
|
|
|
|
|
|
|
" All of your Plugins must be added before the following line |
|
|
@ -240,6 +250,9 @@ nnoremap <leader>tn :tabnew<cr> |
|
|
|
|
|
|
|
nnoremap <F3> :Git<cr> |
|
|
|
nnoremap <F4> :Git push<cr> |
|
|
|
|
|
|
|
vnoremap <silent> <leader>be :<c-u>lua require("b64").encode()<cr> |
|
|
|
vnoremap <silent> <leader>bd :<c-u>lua require("b64").decode()<cr> |
|
|
|
"}}} |
|
|
|
|
|
|
|
" {{{ Textobjects |
|
|
@ -260,12 +273,12 @@ require'nvim-treesitter.configs'.setup { |
|
|
|
["ic"] = "@class.inner", |
|
|
|
|
|
|
|
-- Or you can define your own textobjects like this |
|
|
|
["iF"] = { |
|
|
|
python = "(function_definition) @function", |
|
|
|
cpp = "(function_definition) @function", |
|
|
|
c = "(function_definition) @function", |
|
|
|
java = "(method_declaration) @function", |
|
|
|
}, |
|
|
|
-- ["iF"] = { |
|
|
|
-- python = "(function_definition) @function", |
|
|
|
-- cpp = "(function_definition) @function", |
|
|
|
-- c = "(function_definition) @function", |
|
|
|
-- java = "(method_declaration) @function", |
|
|
|
-- }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -302,8 +315,6 @@ let vim_tags_ctags_binary='~/bin/phpctags'" |
|
|
|
" Java config |
|
|
|
autocmd FileType java setlocal omnifunc=javacomplete#Complete |
|
|
|
|
|
|
|
" Python-mode config |
|
|
|
let g:pymode_lint_on_write = 0 |
|
|
|
|
|
|
|
" Vimtex{{{ |
|
|
|
if !exists('g:neocomplete#sources#omni#input_patterns') |
|
|
@ -493,5 +504,11 @@ require('telescope').load_extension('fzf') |
|
|
|
EOF |
|
|
|
"}}} |
|
|
|
|
|
|
|
" doge settings |
|
|
|
let g:doge_javascript_settings = { |
|
|
|
\ 'omit_redundant_param_types': 1, |
|
|
|
\} |
|
|
|
let g:doge_doc_standard_python = 'google' |
|
|
|
let g:doge_mapping_comment_jump_forward = '<c-k>' |
|
|
|
|
|
|
|
"}}} |