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() return require('nvim-lightbulb').get_status_text()
end end
local function getLGTMs()
local comments = require("google.comments") local comments = require("google.comments")
local tracker = require("google.comments.tracker") local tracker = require("google.comments.tracker")
local dump = require("utils").dump local dump = require("utils").dump
local function getLGTMs()
print(dump(tracker.get_all_comments())) print(dump(tracker.get_all_comments()))
local lgtm = comments.get_lgtms() local lgtm = comments.get_lgtms()
local appr = comments.get_approvals() local appr = comments.get_approvals()

View File

@ -1,3 +1,4 @@
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/vim-imp
set runtimepath+=/google/src/files/head/depot/google3/experimental/users/tstone/vim/imp-csearch set runtimepath+=/google/src/files/head/depot/google3/experimental/users/tstone/vim/imp-csearch
@ -12,3 +13,4 @@ nnoremap <leader>csi :ImpSuggest <C-r><C-w><cr>
nnoremap <leader>ii :ImpSuggest <C-r><C-w><cr> nnoremap <leader>ii :ImpSuggest <C-r><C-w><cr>
nnoremap <leader>if :ImpFirst <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 'SirVer/ultisnips'
Plug 'honza/vim-snippets' 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/golang.vim
source ~/.vim/prefs/ultisnips.vim source ~/.vim/prefs/ultisnips.vim
source ~/.vim/prefs/ripgrep.vim source ~/.vim/prefs/ripgrep.vim
source ~/.vim/prefs/imp.vim
source ~/.vim/prefs/fzf.vim source ~/.vim/prefs/fzf.vim
source ~/.vim/prefs/devicons.vim
source ~/.vim/prefs/airline.vim
call plug#end() " required call plug#end() " required
lua require("plugins") 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 on " redundant?
filetype plugin indent on filetype plugin indent on