Compare commits

...

17 Commits

Author SHA1 Message Date
31d9d0f0a8 Use my own java-syntax plugin 2022-08-09 18:30:23 +00:00
206219debb codesearch mappings 2022-08-09 18:23:13 +00:00
e00277beb0 Update Google prefs loading 2022-08-08 11:11:16 -05:00
d3abbde5c7 ugh 2022-08-03 17:43:28 +00:00
9d10f26cdb small 2022-08-03 17:17:30 +00:00
1797ecfa2e Update hgrc 2022-08-03 17:09:41 +00:00
f12bd3d29d Install zplug if not installed 2022-08-03 17:06:48 +00:00
c9eebbe4a5 Switch to zplug 2022-08-03 17:05:53 +00:00
e411e6c6cb add ohmyzsh 2022-08-03 16:47:34 +00:00
1bd3815184 work script 2022-08-01 14:46:26 -05:00
323c90732c stuff 2022-08-01 19:44:30 +00:00
162b87e600 rm ohmy 2022-07-28 17:43:12 +00:00
ea31968675 ohmyzsh 2022-07-28 17:35:07 +00:00
106881fa6d more stuff 2022-07-26 17:02:03 -05:00
abbc6734d0 stuff 2022-07-26 16:02:08 -05:00
942f81a7d6 p10k config 2022-07-26 21:00:59 +00:00
2d9865660f gitignore 2022-07-26 16:50:38 +00:00
1029 changed files with 1337 additions and 69264 deletions

View File

@ -39,41 +39,11 @@ require('telescope').setup {
}
-- These custom mappings let you open telescope-codesearch quickly:
-- Fuzzy find files in codesearch.
vim.api.nvim_set_keymap('n', '<leader>ss',
[[<cmd>lua require('telescope').extensions.codesearch.find_files{}<CR>]],
{ noremap = true, silent=true }
)
vim.api.nvim_set_keymap('n', '<C-P>',
[[<cmd>lua require('telescope').extensions.codesearch.find_files{}<CR>]],
{ noremap = true, silent=true }
)
-- Search using codesearch queries.
vim.api.nvim_set_keymap('n', '<leader>sd',
[[<cmd>lua require('telescope').extensions.codesearch.find_query{}<CR>]],
{ noremap = true, silent=true }
)
-- Search for the word under cursor.
vim.api.nvim_set_keymap('n', '<leader>sD',
[[<cmd>lua require('telescope').extensions.codesearch.find_query{default_text_expand='<cword>'}<CR>]],
{ noremap = true, silent=true }
)
-- Search for a file having word under cursor in its name.
vim.api.nvim_set_keymap('n', '<leader>sS',
[[<cmd>lua require('telescope').extensions.codesearch.find_files{default_text_expand='<cword>'}<CR>]],
{ noremap = true, silent=true }
)
-- Search for text selected in Visual mode.
vim.api.nvim_set_keymap('v', '<leader>sd',
[[<cmd>lua require('telescope').extensions.codesearch.find_query{}<CR>]],
{ noremap = true, silent=true }
)
-- Search using codesearch queries.
vim.api.nvim_set_keymap(
"n",
@ -81,6 +51,14 @@ vim.api.nvim_set_keymap(
[[<cmd>lua require('telescope').extensions.codesearch.find_query{}<CR>]],
{ noremap = true, silent = true }
)
--
-- Search for files using codesearch queries.
vim.api.nvim_set_keymap(
"n",
"<leader>cf",
[[<cmd>lua require('telescope').extensions.codesearch.find_files{}<CR>]],
{ noremap = true, silent = true }
)
-- Search for the word under cursor.
vim.api.nvim_set_keymap(
@ -93,7 +71,7 @@ vim.api.nvim_set_keymap(
-- Search for a file having word under cursor in its name.
vim.api.nvim_set_keymap(
"n",
"<leader>csS",
"<leader>CF",
[[<cmd>lua require('telescope').extensions.codesearch.find_files{default_text_expand='<cword>'}<CR>]],
{ noremap = true, silent = true }
)
@ -105,3 +83,11 @@ vim.api.nvim_set_keymap(
[[<cmd>lua require('telescope').extensions.codesearch.find_query{}<CR>]],
{ noremap = true, silent = true }
)
-- Search for file having text selected in Visual mode.
vim.api.nvim_set_keymap(
"v",
"<leader>cf",
[[<cmd>lua require('telescope').extensions.codesearch.find_files{}<CR>]],
{ noremap = true, silent = true }
)

View File

@ -1,26 +1,49 @@
# example user config (see 'hg help config' for more info)
%include ~/hgshort/hgshort.hgrc
[ui]
# name and email, e.g.
# username = Jane Doe <jdoe@example.com>
username = Christian Nieves <cnieves@google.com>
# We recommend enabling tweakdefaults to get slight improvements to
# the UI over time. Make sure to set HGPLAIN in the environment when
# writing scripts!
tweakdefaults = True
# uncomment to disable color in command output
# (see 'hg help color' for details)
# color = never
# uncomment to disable command output pagination
# (see 'hg help pager' for details)
editor = vim
paginate = never
merge = vimdiff
username = Christian Nieves <cnieves@google.com>
# graphnodetemplate = {label("graphnode.{graphnode}", graphnode)}
[extdiff]
cmd.meld = /usr/bin/meld
cmd.pmeld = /usr/bin/meld
[extensions]
# uncomment the lines below to enable some popular extensions
# (see 'hg help extensions' for more info)
#
# histedit =
# rebase =
# uncommit =
unsupported.tree =
unsupported.alices =
extdiff =
color =
beautifygraph =
[alices]
findings.extra_args = --proxy
summarize.extra_args = --proxy
[merge-tools]
# meld.args = --auto-merge --label='incoming' $local --label='merged' $base --label='existing' $other -o $output
# https://www.mercurial-scm.org/wiki/MergingWithVim#More_Useful_3-Way_Diff
vimdiff.executable = vimdiff
vimdiff.args = -f -d $output -M $local $base $other -c "wincmd J" -c "set modifiable" -c "set write"
vimdiff.premerge = keep
[committemplate]
changeset = {desc}\n\n
HG: {extramsg}
HG: user: {author}\n{ifeq(p2rev, "-1", "",
"HG: branch merge\n")
}HG: branch '{branch}'\n{if(currentbookmark,
"HG: bookmark '{currentbookmark}'\n") }{subrepos %
"HG: subrepo {subrepo}\n" }
{splitlines(diff()) % 'HG: {line}\n'}
[alias]
whatsout = status -n --change .
whatsoutall = status --rev p4base --no-status
# unbranch = cp --forget --at-rev . $1
unbranch = !$HG uncommit --keep $1 && $HG forget $1 && $HG add $1 && $HG amend $1
[trainingwheels]
warn-head-paths=False

View File

@ -13,7 +13,7 @@ gcertstatus || gcert
# Just keep reconnecting upon failure
while [ 1 ]; do
ssh -t $host $SSH_OPTS "$tmux_cmd"
ssh $host -t $SSH_OPTS "$tmux_cmd"
# Don't reconnect if disconnection not due to error (i.e., user detached)
if [ $? -eq 0 ]; then break; fi

View File

@ -15,7 +15,7 @@ set-window-option -g pane-base-index 1
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color*:Tc" # tell Tmux that outside terminal supports true color
set -g default-shell zsh
# set -g default-shell zsh
# force a reload of the config file
unbind r

View File

@ -242,6 +242,8 @@ function! plug#begin(...)
let home = s:path(s:plug_fnamemodify(s:plug_expand(a:1), ':p'))
elseif exists('g:plug_home')
let home = s:path(g:plug_home)
elseif has('nvim')
let home = stdpath('data') . '/plugged'
elseif !empty(&rtp)
let home = s:path(split(&rtp, ',')[0]) . '/plugged'
else
@ -350,7 +352,7 @@ function! plug#end()
endif
let lod = { 'ft': {}, 'map': {}, 'cmd': {} }
if exists('g:did_load_filetypes')
if get(g:, 'did_load_filetypes', 0)
filetype off
endif
for name in g:plugs_order
@ -405,7 +407,7 @@ function! plug#end()
for [map, names] in items(lod.map)
for [mode, map_prefix, key_prefix] in
\ [['i', '<C-O>', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']]
\ [['i', '<C-\><C-O>', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']]
execute printf(
\ '%snoremap <silent> %s %s:<C-U>call <SID>lod_map(%s, %s, %s, "%s")<CR>',
\ mode, map, map_prefix, string(map), string(names), mode != 'i', key_prefix)
@ -2619,26 +2621,34 @@ function! s:preview_commit()
let sha = matchstr(getline('.'), '^ \X*\zs[0-9a-f]\{7,9}')
if empty(sha)
return
let name = matchstr(getline('.'), '^- \zs[^:]*\ze:$')
if empty(name)
return
endif
let title = 'HEAD@{1}..'
let command = 'git diff --no-color HEAD@{1}'
else
let title = sha
let command = 'git show --no-color --pretty=medium '.sha
let name = s:find_name(line('.'))
endif
let name = s:find_name(line('.'))
if empty(name) || !has_key(g:plugs, name) || !isdirectory(g:plugs[name].dir)
return
endif
if exists('g:plug_pwindow') && !s:is_preview_window_open()
execute g:plug_pwindow
execute 'e' sha
execute 'e' title
else
execute 'pedit' sha
execute 'pedit' title
wincmd P
endif
setlocal previewwindow filetype=git buftype=nofile nobuflisted modifiable
setlocal previewwindow filetype=git buftype=nofile bufhidden=wipe nobuflisted modifiable
let batchfile = ''
try
let [sh, shellcmdflag, shrd] = s:chsh(1)
let cmd = 'cd '.plug#shellescape(g:plugs[name].dir).' && git show --no-color --pretty=medium '.sha
let cmd = 'cd '.plug#shellescape(g:plugs[name].dir).' && '.command
if s:is_win
let [batchfile, cmd] = s:batchfile(cmd)
endif
@ -2764,9 +2774,9 @@ function! s:snapshot(force, ...) abort
1
let anchor = line('$') - 3
let names = sort(keys(filter(copy(g:plugs),
\'has_key(v:val, "uri") && !has_key(v:val, "commit") && isdirectory(v:val.dir)')))
\'has_key(v:val, "uri") && isdirectory(v:val.dir)')))
for name in reverse(names)
let sha = s:git_revision(g:plugs[name].dir)
let sha = has_key(g:plugs[name], 'commit') ? g:plugs[name].commit : s:git_revision(g:plugs[name].dir)
if !empty(sha)
call append(anchor, printf("silent! let g:plugs['%s'].commit = '%s'", name, sha))
redraw

Submodule vim/.vim/plugged/MatchTagAlways added at 352eb479a4

Submodule vim/.vim/plugged/asyncrun.vim added at aa8a99e87e

Submodule vim/.vim/plugged/c-syntax.vim added at e0f36366b8

Submodule vim/.vim/plugged/cloudformation-syntax.vim added at 20a5098e34

Submodule vim/.vim/plugged/cmp-buffer added at 62fc67a2b0

Submodule vim/.vim/plugged/cmp-nvim-lsp added at affe808a5c

Submodule vim/.vim/plugged/cmp-nvim-lua added at d276254e71

Submodule vim/.vim/plugged/cmp-path added at 447c87cdd6

Submodule vim/.vim/plugged/cmp-vsnip added at 0abfa1860f

Submodule vim/.vim/plugged/ejs-syntax added at 0e704c523d

Submodule vim/.vim/plugged/emmet-vim added at def5d57a1a

Submodule vim/.vim/plugged/focuspoint-vim added at 72b6634d23

Submodule vim/.vim/plugged/fzf.vim added at c6b59d8ad7

Submodule vim/.vim/plugged/gounit-vim added at 69ba1afa31

Submodule vim/.vim/plugged/gv.vim added at 1507838ee6

Submodule vim/.vim/plugged/java-syntax.vim added at 1a5354f955

Submodule vim/.vim/plugged/kotlin-vim added at 1261f851e5

Submodule vim/.vim/plugged/linediff.vim added at c7710dbc59

Submodule vim/.vim/plugged/lspkind.nvim added at 57e5b5dfbe

Submodule vim/.vim/plugged/md-img-paste.vim added at 01d747cdde

Submodule vim/.vim/plugged/nerdcommenter added at 6d30ebcd42

Submodule vim/.vim/plugged/nerdtree added at fc85a6f07c

Submodule vim/.vim/plugged/nofrils added at bad6e49084

Submodule vim/.vim/plugged/nord-vim added at bc0f057162

Submodule vim/.vim/plugged/nvim-cmp added at 706371f130

Submodule vim/.vim/plugged/nvim-gdb added at 4408d2c106

Submodule vim/.vim/plugged/nvim-lspconfig added at a78831f975

Submodule vim/.vim/plugged/nvim-treesitter added at 7e41005423

Submodule vim/.vim/plugged/nvim-web-devicons added at 2d02a56189

Submodule vim/.vim/plugged/omnisharp-vim added at 7e88f137ad

Submodule vim/.vim/plugged/onedark.vim added at 1fe54f212f

Submodule vim/.vim/plugged/onehalf added at 75eb2e97ac

Submodule vim/.vim/plugged/papercolor-theme added at 9051480ad9

Submodule vim/.vim/plugged/php.vim added at 930aec5c70

Submodule vim/.vim/plugged/plenary.nvim added at 31807eef4e

Submodule vim/.vim/plugged/purify added at 70011ccc32

Submodule vim/.vim/plugged/shades-of-teal added at 5bf84996df

Submodule vim/.vim/plugged/telescope-codesearch.nvim added at 9455a5f2a9

Submodule vim/.vim/plugged/telescope.nvim added at 4725867ec6

Submodule vim/.vim/plugged/tender.vim added at 7746453a04

Submodule vim/.vim/plugged/trouble.nvim added at da61737d86

Submodule vim/.vim/plugged/ultisnips added at 1edcb40ce7

Submodule vim/.vim/plugged/vim-airline added at 66a6e03a34

Submodule vim/.vim/plugged/vim-airline-themes added at 55bad92d24

Submodule vim/.vim/plugged/vim-android added at b8b684f60a

Submodule vim/.vim/plugged/vim-ansible-yaml added at a6f92d17ff

Submodule vim/.vim/plugged/vim-atom-dark added at 44feadcbeb

Submodule vim/.vim/plugged/vim-autoflake added at 5d0a5b437a

Submodule vim/.vim/plugged/vim-better-whitespace added at 1b22dc57a2

Submodule vim/.vim/plugged/vim-case-convert added at 0a75eb4cf7

Submodule vim/.vim/plugged/vim-colors-solarized added at 528a59f26d

Submodule vim/.vim/plugged/vim-colorscheme-primary added at cd6d5422a3

Submodule vim/.vim/plugged/vim-cpp-enhanced-highlight added at 4b7314a497

Submodule vim/.vim/plugged/vim-easy-align added at 12dd631697

Submodule vim/.vim/plugged/vim-easymotion added at b3cfab2a63

Submodule vim/.vim/plugged/vim-exchange added at 784d63083a

Submodule vim/.vim/plugged/vim-fugitive added at 66a921bbe3

Submodule vim/.vim/plugged/vim-git added at 5143bea9ed

Submodule vim/.vim/plugged/vim-gitgutter added at ded11946c0

Submodule vim/.vim/plugged/vim-go added at b524371788

Submodule vim/.vim/plugged/vim-graphql added at 4bf5d33bda

Submodule vim/.vim/plugged/vim-helm added at 86a63d007f

Submodule vim/.vim/plugged/vim-hybrid-material added at ad031275c6

Submodule vim/.vim/plugged/vim-indent-guides added at 765084d38b

Submodule vim/.vim/plugged/vim-javascript added at 67a3435bf6

Submodule vim/.vim/plugged/vim-json added at 3727f08941

Submodule vim/.vim/plugged/vim-markdown added at 3a96439612

Submodule vim/.vim/plugged/vim-material-theme added at c28195998d

Submodule vim/.vim/plugged/vim-monochrome added at c4f18812bb

Submodule vim/.vim/plugged/vim-monokai-tasty added at 13a0d38fea

Submodule vim/.vim/plugged/vim-nerdtree-syntax-highlight added at 5178ee4d7f

Submodule vim/.vim/plugged/vim-nuuid added at 6abc11a794

Submodule vim/.vim/plugged/vim-obsession added at 7d39576149

Submodule vim/.vim/plugged/vim-quantum added at 78c435ba22

Submodule vim/.vim/plugged/vim-ripgrep added at 80c9dc96b3

Submodule vim/.vim/plugged/vim-scratchpad added at d1f7875608

Submodule vim/.vim/plugged/vim-snippets added at c5d977c492

Submodule vim/.vim/plugged/vim-stylus added at 0514757a47

Submodule vim/.vim/plugged/vim-surround added at bf3480dc9a

Submodule vim/.vim/plugged/vim-syntax-extra added at 5906eeab33

Submodule vim/.vim/plugged/vim-table-mode added at f47287df37

Submodule vim/.vim/plugged/vim-titlecase added at 69a697c54a

Submodule vim/.vim/plugged/vim-tmux added at cfe76281ef

Submodule vim/.vim/plugged/vim-tmux-focus-events added at b1330e04ff

Submodule vim/.vim/plugged/vim-tmux-navigator added at 9ca5bfe5bd

Submodule vim/.vim/plugged/vim-tmux-syntax added at 1b6a6a5beb

Submodule vim/.vim/plugged/vim-uncrustify added at 9cce24fd70

Submodule vim/.vim/plugged/vim-velocity added at a494e9ebbb

Submodule vim/.vim/plugged/vim-vsnip added at 8f199ef690

Submodule vim/.vim/plugged/vim-windowswap added at 15db3f697a

Submodule vim/.vim/plugged/vim-yaml added at dce19542d5

Submodule vim/.vim/plugged/vimux added at 89604a4464

1
vim/.vim/plugged/vtl Submodule

Submodule vim/.vim/plugged/vtl added at 1f75c4069a

Submodule vim/.vim/plugged/xterm-color-table.vim added at 9754e857e5

1
vim/.vim/prefs/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
use_google.vim

Some files were not shown because too many files have changed in this diff Show More