Plugins
This commit is contained in:
1
vim/.vim/lua/config/clipboard.lua
Normal file
1
vim/.vim/lua/config/clipboard.lua
Normal file
@ -0,0 +1 @@
|
||||
vim.g.clipboard = "lemonade"
|
@ -88,6 +88,7 @@ augroup autoformat_settings
|
||||
autocmd FileType proto AutoFormatBuffer protofmt
|
||||
autocmd FileType sql AutoFormatBuffer format_sql
|
||||
autocmd FileType kotlin AutoFormatBuffer ktfmt
|
||||
autocmd FileType soy AutoFormatBuffer soyfmt
|
||||
" autocmd FileType html,css,json AutoFormatBuffer js-beautify
|
||||
augroup END
|
||||
|
||||
@ -130,6 +131,7 @@ endfunction
|
||||
com! -nargs=? -complete=file Blame :call G4Blame(<f-args>)
|
||||
|
||||
nnoremap <leader>cc :CritiqueUnresolvedComments<space><cr>
|
||||
nmap <leader>yb :let @+ = join(blaze#GetTargets(), ' ')<cr>
|
||||
|
||||
nmap <leader>yb :let t = join(blaze#GetTargets(), ' ') \| echo t \| let @+ = t \| CopyOSC52(t) <CR>
|
||||
]])
|
||||
end
|
||||
|
@ -7,6 +7,7 @@ return {
|
||||
lazy = false,
|
||||
},
|
||||
"ldelossa/litee.nvim",
|
||||
"cakebaker/scss-syntax.vim",
|
||||
"ldelossa/litee-calltree.nvim",
|
||||
"jghauser/mkdir.nvim",
|
||||
"will133/vim-dirdiff",
|
||||
@ -44,6 +45,7 @@ return {
|
||||
{ "<leader>zf", ":lua require('telekasten').find_notes()<CR>", desc = "Find Notes" },
|
||||
},
|
||||
},
|
||||
{ "udalov/kotlin-vim", ft = "kotlin" },
|
||||
{ "ray-x/go.nvim", ft = "go" },
|
||||
{ "ray-x/guihua.lua", ft = "go" },
|
||||
|
||||
|
@ -31,8 +31,12 @@ return {
|
||||
goog("googlepaths"),
|
||||
goog("google-filetypes"),
|
||||
goog("ft-java"),
|
||||
goog("ft-soy"),
|
||||
goog("ft-gss"),
|
||||
goog("ft-javascript"),
|
||||
goog("ft-kotlin"),
|
||||
goog("ft-proto"),
|
||||
goog("google-logo"),
|
||||
goog("critique"),
|
||||
goog("piper"),
|
||||
goog("gtimporter"),
|
||||
@ -137,10 +141,8 @@ return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
},
|
||||
config = function()
|
||||
-- vim.notify = require("notify")
|
||||
-- Here are all the options and their default values:
|
||||
require("critique.comments").setup({
|
||||
-- sign = "COMMENT_ICON",
|
||||
-- Fetch the comments after calling `setup`.
|
||||
auto_fetch = true,
|
||||
render_resolved_threads = true,
|
||||
@ -154,8 +156,6 @@ return {
|
||||
map("n", "<Leader>ac", [[<Cmd>CritiqueToggleAllComments<CR>]])
|
||||
map("n", "<Leader>fc", [[<Cmd>CritiqueFetchComments<CR>]])
|
||||
map("n", "<Leader>tc", [[<Cmd>CritiqueCommentsTelescope<CR>]])
|
||||
|
||||
-- vim.fn.sign_define("COMMENT_ICON", { text = "" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
@ -4,10 +4,10 @@ return {
|
||||
require("neoscopes").setup({
|
||||
scopes = {
|
||||
{
|
||||
name = "apkdiff",
|
||||
name = "earlycheckin",
|
||||
dirs = {
|
||||
"java/com/google/android/gmscore/tools/earlycheckin/apkdiff",
|
||||
"javatests/com/google/android/gmscore/tools/earlycheckin/apkdiff",
|
||||
"java/com/google/android/gmscore/tools/earlycheckin/",
|
||||
"javatests/com/google/android/gmscore/tools/earlycheckin/",
|
||||
},
|
||||
},
|
||||
{ name = "experimental", dirs = { "experimental/users/cnieves" } },
|
||||
|
@ -1,22 +0,0 @@
|
||||
return {
|
||||
"ojroques/nvim-osc52",
|
||||
config = function()
|
||||
local function copy(lines, _)
|
||||
require("osc52").copy(table.concat(lines, "\n"))
|
||||
end
|
||||
|
||||
local function paste()
|
||||
return { vim.fn.split(vim.fn.getreg(""), "\n"), vim.fn.getregtype("") }
|
||||
end
|
||||
|
||||
vim.g.clipboard = {
|
||||
name = "osc52",
|
||||
copy = { ["+"] = copy, ["*"] = copy },
|
||||
paste = { ["+"] = paste, ["*"] = paste },
|
||||
}
|
||||
|
||||
-- Now the '+' register will copy to system clipboard using OSC52
|
||||
vim.keymap.set("n", "<leader>y", '"+y')
|
||||
vim.keymap.set("n", "<leader>yy", '"+yy')
|
||||
end,
|
||||
}
|
||||
|
@ -1,9 +1,8 @@
|
||||
return {
|
||||
'preservim/vimux',
|
||||
'tmux-plugins/vim-tmux',
|
||||
'christoomey/vim-tmux-navigator',
|
||||
'whatyouhide/vim-tmux-syntax',
|
||||
'tmux-plugins/vim-tmux-focus-events',
|
||||
'jabirali/vim-tmux-yank',
|
||||
'skywind3000/asyncrun.vim',
|
||||
"preservim/vimux",
|
||||
"tmux-plugins/vim-tmux",
|
||||
"christoomey/vim-tmux-navigator",
|
||||
"whatyouhide/vim-tmux-syntax",
|
||||
"tmux-plugins/vim-tmux-focus-events",
|
||||
"skywind3000/asyncrun.vim",
|
||||
}
|
||||
|
@ -140,14 +140,6 @@ let g:loaded_tutor_mode_plugin = 1
|
||||
let g:loaded_remote_plugins = 1
|
||||
|
||||
|
||||
" Permanent "very magic" mode
|
||||
" nnoremap / /\v
|
||||
" vnoremap / /\v
|
||||
" cnoremap %s/ %smagic/
|
||||
" cnoremap \>s/ \>smagic/
|
||||
" nnoremap :g/ :g/\v
|
||||
" nnoremap :g// :g//
|
||||
|
||||
function! TabMultiDiff()
|
||||
let s:tab_multi_diff = 0
|
||||
argdo call s:AddBufferToTab()
|
||||
|
Reference in New Issue
Block a user