Update prefs

This commit is contained in:
Christian Nieves
2022-05-09 16:34:38 +00:00
parent 76a6480b62
commit 79c012a08a
9 changed files with 76 additions and 361 deletions

View File

@ -4,6 +4,7 @@ source /google/data/ro/projects/vigor/vigor.vim
" source /usr/share/vim/google/google.vim
Plug 'vim-scripts/vcscommand.vim'
Plug 'sso://user/chmnchiang/google-comments'
if has('nvim') || has('patch-8.0.902')
Plug 'mhinz/vim-signify'

View File

@ -0,0 +1,36 @@
lua << EOF
-- Here are all the options and their default values:
require('google.comments').setup {
-- The command for fetching comments, refer to `get_comments.par --help` to
-- see all the options.
command = {'/google/bin/releases/editor-devtools/get_comments.par', '--full', '--noresolved', '--json', "-x=''"},
-- Define your own icon by `vim.fn.sign_define('ICON_NAME', {text = ' '})`.
-- See :help sign_define
-- The sign property passed to setup should be the 'ICON_NAME' in the define
-- example above.
sign = 'COMMENT_ICON',
-- Fetch the comments after calling `setup`.
auto_fetch = true,
display = {
-- The width of the comment display window.
width = 50,
-- When showing file paths, use relative paths or not.
relative_path = true,
},
}
-- here are some mappings you might want:
vim.api.nvim_set_keymap('n', '<Leader>nc',
[[<Cmd>lua require('google.comments').goto_next_comment()<CR>]],
{ noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<Leader>pc',
[[<Cmd>lua require('google.comments').goto_prev_comment()<CR>]],
{ noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<Leader>lc',
[[<Cmd>lua require('google.comments').toggle_line_comments()<CR>]],
{ noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<Leader>ac',
[[<Cmd>lua require('google.comments').show_all_comments()<CR>]],
{ noremap = true, silent = true })
vim.fn.sign_define('COMMENT_ICON', {text = ''})
EOF

View File

@ -39,8 +39,8 @@ nnoremap J :tabprevious<CR>
nnoremap K :tabnext<CR>
" tab arrangement, Shift-H and Shift-L to move tabs
"nnoremap <silent> <S-H> :execute 'silent! tabmove ' . (tabpagenr()-2)<CR>
"nnoremap <silent> <S-L> :execute 'silent! tabmove ' . (tabpagenr()+1)<CR>
" nnoremap <silent> <lt> :execute 'silent! tabmove ' . (tabpagenr()-2)<CR>
" nnoremap <silent> > :execute 'silent! tabmove ' . (tabpagenr()+1)<CR>
"
" tab opening
nnoremap tt :tabedit<Space>

View File

@ -10,7 +10,8 @@ Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/nvim-cmp'
Plug 'hrsh7th/vim-vsnip'
Plug 'neovim/nvim-lspconfig'
Plug 'onsails/lspkind-nvim'
Plug 'onsails/lspkind.nvim'
" required only for diagnostics
Plug 'folke/trouble.nvim'
" UI EXTENSIONS
@ -19,6 +20,7 @@ Plug 'junegunn/fzf.vim'
Plug 'vim-airline/vim-airline' " ...
Plug 'nathanaelkane/vim-indent-guides'
Plug 'Konfekt/vim-scratchpad'
Plug 'kyazdani42/nvim-web-devicons'
" INTEGRATION
Plug 'tpope/vim-fugitive' " git
@ -27,13 +29,11 @@ Plug 'tpope/vim-git'
Plug 'airblade/vim-gitgutter' " live git diff gutter
Plug 'tmux-plugins/vim-tmux' " tmux
Plug 'benmills/vimux'
" Plug 'dense-analysis/ale'
Plug 'nvim-lua/plenary.nvim'
Plug 'christoomey/vim-tmux-navigator' " tmux
Plug 'ferrine/md-img-paste.vim' " copy-paste images to markdown
Plug 'junegunn/vim-easy-align' " markdown table aligns
Plug 'skywind3000/asyncrun.vim'
" Plug 'vim-vdebug/vdebug' " xdebug
Plug 'dhruvasagar/vim-table-mode' " git readme tables
Plug 'NLKNguyen/cloudformation-syntax.vim'
Plug 'stephpy/vim-yaml'
@ -42,6 +42,7 @@ Plug 'tell-k/vim-autoflake' " remove unused python imports
Plug 'embear/vim-uncrustify'
Plug 'sakhnik/nvim-gdb', { 'do': 'bash ./install.sh \| UpdateRemotePlugins' }
Plug 'kburdett/vim-nuuid'
Plug 'easymotion/vim-easymotion'
" AUTO-COMPLETION
Plug 'christoomey/vim-titlecase'
@ -98,6 +99,9 @@ Plug 'tommcdo/vim-exchange'
Plug 'altercation/vim-colors-solarized'
Plug 'vim-airline/vim-airline-themes'
Plug 'jdkanani/vim-material-theme'
Plug 'sonph/onehalf', { 'rtp': 'vim' }
Plug 'gosukiwi/vim-atom-dark'
Plug 'jacoborus/tender.vim'
Plug 'kristijanhusak/vim-hybrid-material'
Plug 'NLKNguyen/papercolor-theme'
Plug 'tyrannicaltoucan/vim-quantum'
@ -109,6 +113,7 @@ Plug 'robertmeta/nofrils'
Plug 'kristiandupont/shades-of-teal'
Plug 'joshdick/onedark.vim'
Plug 'google/vim-colorscheme-primary'
Plug 'kyoz/purify', { 'rtp': 'vim' }
" Plug 'google/vim-maktaba'
" Plug 'google/vim-glaive'