This commit is contained in:
Christian Nieves
2022-11-14 18:34:29 +00:00
parent 9028ccc503
commit 27b63b8a41
4 changed files with 22 additions and 25 deletions

View File

@ -30,11 +30,11 @@ local function getLightbulb()
return require('nvim-lightbulb').get_status_text()
end
local comments = require("google.comments")
local tracker = require("google.comments.tracker")
local dump = require("utils").dump
local function getLGTMs()
local comments = require("google.comments")
local tracker = require("google.comments.tracker")
local dump = require("utils").dump
print(dump(tracker.get_all_comments()))
local lgtm = comments.get_lgtms()
local appr = comments.get_approvals()

View File

@ -1,14 +1,16 @@
set runtimepath+=/google/src/files/head/depot/google3/experimental/users/tstone/vim/vim-imp
set runtimepath+=/google/src/files/head/depot/google3/experimental/users/tstone/vim/imp-csearch
if filereadable(expand("~/use_google"))
set runtimepath+=/google/src/files/head/depot/google3/experimental/users/tstone/vim/vim-imp
set runtimepath+=/google/src/files/head/depot/google3/experimental/users/tstone/vim/imp-csearch
Glug! glaive
" Glaive imp Suggest[default]=buffer,primp,csearch,prompt Report[default]=popupnotify
" Glaive imp Suggest[default]=buffer,csearch,prompt,primp Report[default]=popupnotify
" Glaive imp Pick[default]=inputlist Suggest[default]=buffer,primp,csearch,prompt Report[default]=echo
Glaive imp Pick[default]=fzf Suggest[default]=buffer,primp,csearch,prompt Report[default]=echo
"
" nnoremap <leader>csi :CsImporter<cr>
nnoremap <leader>csi :ImpSuggest <C-r><C-w><cr>
nnoremap <leader>ii :ImpSuggest <C-r><C-w><cr>
nnoremap <leader>if :ImpFirst <C-r><C-w><cr>
Glug! glaive
" Glaive imp Suggest[default]=buffer,primp,csearch,prompt Report[default]=popupnotify
" Glaive imp Suggest[default]=buffer,csearch,prompt,primp Report[default]=popupnotify
" Glaive imp Pick[default]=inputlist Suggest[default]=buffer,primp,csearch,prompt Report[default]=echo
Glaive imp Pick[default]=fzf Suggest[default]=buffer,primp,csearch,prompt Report[default]=echo
"
" nnoremap <leader>csi :CsImporter<cr>
nnoremap <leader>csi :ImpSuggest <C-r><C-w><cr>
nnoremap <leader>ii :ImpSuggest <C-r><C-w><cr>
nnoremap <leader>if :ImpFirst <C-r><C-w><cr>
endif

View File

@ -1,4 +1,6 @@
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
" Glug ultisnips-google
if filereadable(expand("~/use_google"))
Glug ultisnips-google
endif

View File

@ -95,19 +95,12 @@ call plug#begin('~/.vim/plugged')
source ~/.vim/prefs/golang.vim
source ~/.vim/prefs/ultisnips.vim
source ~/.vim/prefs/ripgrep.vim
source ~/.vim/prefs/imp.vim
source ~/.vim/prefs/fzf.vim
source ~/.vim/prefs/devicons.vim
source ~/.vim/prefs/airline.vim
call plug#end() " required
lua require("plugins")
if filereadable(expand("~/use_google"))
source ~/.vim/prefs/imp.vim
source ~/.vim/prefs/google_comments.vim
lua require("google_comments")
endif
filetype plugin on " redundant?
filetype plugin indent on