Cider config

This commit is contained in:
Christian Nieves
2022-09-13 15:23:43 +00:00
parent fda5de2944
commit 649d7e171b
4 changed files with 35 additions and 14 deletions

View File

@ -5,6 +5,8 @@ source /google/data/ro/projects/vigor/vigor.vim
Plug 'vim-scripts/vcscommand.vim'
Plug 'sso://user/chmnchiang/google-comments'
Plug 'sso://googler@user/piloto/cmp-nvim-ciderlsp'
Plug 'williamboman/nvim-lsp-installer'
if has('nvim') || has('patch-8.0.902')
Plug 'mhinz/vim-signify'
@ -185,3 +187,5 @@ nnoremap <leader>po :PiperOpenPath<CR>
nnoremap <leader>ws :CorpWebCs <cword> <CR>
" search in codesearch for the current file
nnoremap <leader>wf :CorpWebCsFile<CR>
nmap <leader>rbs ss <leader>rb

View File

@ -39,6 +39,18 @@ let g:airline#extensions#tabline#exclude_preview = 1
let g:airline#extensions#tabline#show_close_button = 0
let g:airline#extensions#tabline#fnamemod = ':t'
lua << EOF
function getCitc()
local fname = vim.api.nvim_buf_get_name(0)
if string.find(fname, '/google/src/cloud/', 1, true) then
local parts = split(fname, '/')
return parts[5]
end
end
EOF
" let g:airline_section_c = execute("lua getCitc()")
let g:airline_mode_map = {
\ '__' : '------',
\ 'n' : 'NORMAL',

View File

@ -108,7 +108,6 @@ lua << EOF
require("treesitter")
require("telescope_config")
EOF
source ~/.vim/prefs/cmp.vim
if filereadable(expand("~/use_google"))