Compare commits
6 Commits
81cc999670
...
b05f7b15be
Author | SHA1 | Date | |
---|---|---|---|
b05f7b15be | |||
d632924ca7 | |||
1dfaac5950 | |||
a6086451c8 | |||
0202fcc32c | |||
82411e7b77 |
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"lazy.nvim": { "branch": "main", "commit": "4496b4cad69a862199bb3ad452d3c4988bb925a1" }
|
"lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" }
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ test --test_output=all --test_summary=detailed --build_tests_only
|
|||||||
|
|
||||||
import %workspace%/java/com/google/android/gmscore/blaze/blazerc
|
import %workspace%/java/com/google/android/gmscore/blaze/blazerc
|
||||||
build --config=gmscore_tap
|
build --config=gmscore_tap
|
||||||
test --config=gmscore_test
|
test --config=gmscore_test_debug
|
||||||
#
|
|
||||||
# https://g3doc.corp.google.com/devtools/blaze/g3doc/faq.md?cl=head#BlazeOom
|
# https://g3doc.corp.google.com/devtools/blaze/g3doc/faq.md?cl=head#BlazeOom
|
||||||
startup --host_jvm_args=-Xmx18G --host_jvm_args=-Xms18G
|
startup --host_jvm_args=-Xmx18G --host_jvm_args=-Xms18G
|
||||||
|
@ -61,7 +61,7 @@ function M.setup(capabilities)
|
|||||||
local first_fire = vim.b["is_cider_lsp_attached"] == "no"
|
local first_fire = vim.b["is_cider_lsp_attached"] == "no"
|
||||||
vim.b["is_cider_lsp_attached"] = "yes"
|
vim.b["is_cider_lsp_attached"] = "yes"
|
||||||
if first_fire then
|
if first_fire then
|
||||||
vim.notify("CiderLSP attached", "info")
|
vim.notify("CiderLSP attached")
|
||||||
require("lualine").refresh()
|
require("lualine").refresh()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
6
vim/.vim/lua/config/zip.lua
Normal file
6
vim/.vim/lua/config/zip.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
vim.api.nvim_create_autocmd({ "BufReadCmd" }, {
|
||||||
|
pattern = "*.srcjar",
|
||||||
|
callback = function()
|
||||||
|
vim.api.nvim_command("call zip#Browse(expand('<amatch>'))")
|
||||||
|
end,
|
||||||
|
})
|
@ -14,3 +14,4 @@ package.path = package.path .. ";" .. vim.env.HOME .. "/.vim/lua/?.lua"
|
|||||||
|
|
||||||
require("lazy").setup("plugins")
|
require("lazy").setup("plugins")
|
||||||
require("config.clipboard")
|
require("config.clipboard")
|
||||||
|
require("config.zip")
|
||||||
|
@ -2,14 +2,15 @@ local use_google = require("utils").use_google
|
|||||||
local buf_too_large = require("utils").buf_too_large
|
local buf_too_large = require("utils").buf_too_large
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- {
|
"sindrets/diffview.nvim",
|
||||||
-- "m4xshen/hardtime.nvim",
|
{
|
||||||
-- dependencies = { "MunifTanjim/nui.nvim", "nvim-lua/plenary.nvim" },
|
"folke/todo-comments.nvim",
|
||||||
-- opts = {},
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
-- },
|
},
|
||||||
{
|
{
|
||||||
"folke/flash.nvim",
|
"folke/flash.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
---@type Flash.Config
|
||||||
opts = {},
|
opts = {},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
@ -20,6 +21,52 @@ return {
|
|||||||
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"MagicDuck/grug-far.nvim",
|
||||||
|
config = function()
|
||||||
|
require("grug-far").setup({
|
||||||
|
-- search and replace engines configuration
|
||||||
|
engines = {
|
||||||
|
-- see https://github.com/BurntSushi/ripgrep
|
||||||
|
ripgrep = {
|
||||||
|
-- ripgrep executable to use, can be a different path if you need to configure
|
||||||
|
path = "rg",
|
||||||
|
extraArgs = "--.",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"shellRaining/hlchunk.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
opts = {
|
||||||
|
line_num = { enable = true },
|
||||||
|
chunk = {
|
||||||
|
enable = true,
|
||||||
|
priority = 15,
|
||||||
|
style = {
|
||||||
|
{ fg = "#393d4c" },
|
||||||
|
},
|
||||||
|
chars = {
|
||||||
|
horizontal_line = "─",
|
||||||
|
-- vertical_line = "│",
|
||||||
|
vertical_line = "┊",
|
||||||
|
left_top = "╭",
|
||||||
|
left_bottom = "╰",
|
||||||
|
right_arrow = ">",
|
||||||
|
},
|
||||||
|
use_treesitter = true,
|
||||||
|
textobject = "",
|
||||||
|
max_file_size = 1024 * 1024,
|
||||||
|
error_sign = true,
|
||||||
|
-- animation related
|
||||||
|
duration = 0,
|
||||||
|
delay = 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Bekaboo/dropbar.nvim",
|
"Bekaboo/dropbar.nvim",
|
||||||
-- optional, but required for fuzzy finder support
|
-- optional, but required for fuzzy finder support
|
||||||
@ -68,6 +115,7 @@ return {
|
|||||||
"folke/persistence.nvim",
|
"folke/persistence.nvim",
|
||||||
event = "BufReadPre", -- this will only start session saving when an actual file was opened
|
event = "BufReadPre", -- this will only start session saving when an actual file was opened
|
||||||
opts = {},
|
opts = {},
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>ss", [[<cmd>lua require("persistence").save()<cr>]] },
|
{ "<leader>ss", [[<cmd>lua require("persistence").save()<cr>]] },
|
||||||
{ "<leader>sl", [[<cmd>lua require("persistence").load()<cr>]] },
|
{ "<leader>sl", [[<cmd>lua require("persistence").load()<cr>]] },
|
||||||
@ -95,6 +143,7 @@ return {
|
|||||||
cmd = {
|
cmd = {
|
||||||
"Subs",
|
"Subs",
|
||||||
},
|
},
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>tc", "<cmd>TextCaseOpenTelescope<CR>", mode = { "n", "v" }, desc = "Telescope" },
|
{ "<leader>tc", "<cmd>TextCaseOpenTelescope<CR>", mode = { "n", "v" }, desc = "Telescope" },
|
||||||
},
|
},
|
||||||
@ -129,12 +178,14 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
vim.g.undotree_SetFocusWhenToggle = 1
|
vim.g.undotree_SetFocusWhenToggle = 1
|
||||||
end,
|
end,
|
||||||
|
-- stylua: ignore
|
||||||
keys = { { "<leader>ut", ":UndotreeToggle<CR>" } },
|
keys = { { "<leader>ut", ":UndotreeToggle<CR>" } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"stevearc/aerial.nvim",
|
"stevearc/aerial.nvim",
|
||||||
opts = {},
|
opts = {},
|
||||||
cmd = { "AerialToggle", "AerialOn" },
|
cmd = { "AerialToggle", "AerialOn" },
|
||||||
|
-- stylua: ignore
|
||||||
keys = { { "<leader>so", ":AerialToggle<CR>", desc = "[S]symbols [O]utline" } },
|
keys = { { "<leader>so", ":AerialToggle<CR>", desc = "[S]symbols [O]utline" } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -147,15 +198,12 @@ return {
|
|||||||
-- Remove the following line to use development versions,
|
-- Remove the following line to use development versions,
|
||||||
-- not just the formal releases
|
-- not just the formal releases
|
||||||
version = "*",
|
version = "*",
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>dp", ":lua require('debugprint').debugprint()<cr>", desc = "Debug print" },
|
{ "<leader>dp", ":lua require('debugprint').debugprint()<cr>", desc = "Debug print" },
|
||||||
{ "<leader>dP", ":lua require('debugprint').debugprint({above = true})<cr>", desc = "Debug print" },
|
{ "<leader>dP", ":lua require('debugprint').debugprint({above = true})<cr>", desc = "Debug print" },
|
||||||
{ "<leader>dq", ":lua require('debugprint').debugprint({variable = true})<cr>", desc = "Debug print" },
|
{ "<leader>dq", ":lua require('debugprint').debugprint({variable = true})<cr>", desc = "Debug print" },
|
||||||
{
|
{ "<leader>dQ", ":lua require('debugprint').debugprint({variable = true, above = true})<cr>", desc = "Debug print", },
|
||||||
"<leader>dQ",
|
|
||||||
":lua require('debugprint').debugprint({variable = true, above = true})<cr>",
|
|
||||||
desc = "Debug print",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ return {
|
|||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
"nvim-telescope/telescope-dap.nvim",
|
"nvim-telescope/telescope-dap.nvim",
|
||||||
},
|
},
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>do", ":lua require'dapui'.open()<CR>" },
|
{ "<leader>do", ":lua require'dapui'.open()<CR>" },
|
||||||
-- { "<F5>", ":lua require'dap'.continue()<CR>" },
|
-- { "<F5>", ":lua require'dap'.continue()<CR>" },
|
||||||
|
@ -13,9 +13,8 @@ return {
|
|||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>xt", "<cmd>:Telescope diagnostics<CR>" },
|
{ "<leader>xt", "<cmd>:Telescope diagnostics<CR>" },
|
||||||
{ "gr", ":Trouble lsp_references<CR>" },
|
{ "gr", ":Telescope lsp_references<CR>" },
|
||||||
{ "<leader>xw", ":Trouble workspace_diagnostics<CR>" },
|
{ "<leader>xd", ":Trouble<CR>" },
|
||||||
{ "<leader>xd", ":Trouble document_diagnostics<CR>" },
|
|
||||||
{ "[g", "<cmd>lua vim.diagnostic.goto_prev()<CR>" },
|
{ "[g", "<cmd>lua vim.diagnostic.goto_prev()<CR>" },
|
||||||
{ "]g", "<cmd>lua vim.diagnostic.goto_next()<CR>" },
|
{ "]g", "<cmd>lua vim.diagnostic.goto_next()<CR>" },
|
||||||
},
|
},
|
||||||
|
@ -94,6 +94,7 @@ return {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
glug("relatedfiles", {
|
glug("relatedfiles", {
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>rb", ":exec relatedfiles#selector#JumpToBuild()<CR>" },
|
{ "<leader>rb", ":exec relatedfiles#selector#JumpToBuild()<CR>" },
|
||||||
{ "<leader>rt", ":exec relatedfiles#selector#JumpToTestFile()<CR>" },
|
{ "<leader>rt", ":exec relatedfiles#selector#JumpToTestFile()<CR>" },
|
||||||
@ -316,7 +317,7 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
-- Here are all the options and their default values:
|
-- Here are all the options and their default values:
|
||||||
require("critique.comments").setup({
|
require("critique.comments").setup({
|
||||||
debug = 1, -- default = 0
|
-- debug = 1, -- default = 0
|
||||||
-- Fetch the comments after calling `setup`.
|
-- Fetch the comments after calling `setup`.
|
||||||
auto_fetch = true, -- default = true
|
auto_fetch = true, -- default = true
|
||||||
auto_render = true, -- default = true
|
auto_render = true, -- default = true
|
||||||
|
@ -64,6 +64,7 @@ return {
|
|||||||
toggle_telescope(harpoon:list())
|
toggle_telescope(harpoon:list())
|
||||||
end, { desc = "Open harpoon window" })
|
end, { desc = "Open harpoon window" })
|
||||||
end,
|
end,
|
||||||
|
-- stylua: ignore
|
||||||
-- keys = {
|
-- keys = {
|
||||||
-- -- Mark current file
|
-- -- Mark current file
|
||||||
-- { "<leader>m", ":lua require('harpoon').mark_file()<CR>" },
|
-- { "<leader>m", ":lua require('harpoon').mark_file()<CR>" },
|
||||||
|
@ -97,6 +97,7 @@ return {
|
|||||||
"nvim-lua/lsp-status.nvim",
|
"nvim-lua/lsp-status.nvim",
|
||||||
"VonHeikemen/lsp-zero.nvim",
|
"VonHeikemen/lsp-zero.nvim",
|
||||||
},
|
},
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>" },
|
{ "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>" },
|
||||||
-- { "?", "<cmd>lua vim.lsp.buf.code_action()<CR>" },
|
-- { "?", "<cmd>lua vim.lsp.buf.code_action()<CR>" },
|
||||||
|
@ -38,6 +38,7 @@ return {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
(function()
|
(function()
|
||||||
if use_google() then
|
if use_google() then
|
||||||
|
@ -1,49 +1,47 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
event = "VimEnter",
|
|
||||||
cond = true,
|
|
||||||
lazy = true,
|
|
||||||
config = function()
|
|
||||||
-- local colors = require("catppuccin.palettes").get_palette()
|
|
||||||
require("notify").setup({
|
|
||||||
-- background_colour = colors.base,
|
|
||||||
fps = 20, -- default 30
|
|
||||||
-- stages = "slide", -- default fade_in_slide_out
|
|
||||||
timeout = 5000, -- default 5000
|
|
||||||
render = "wrapped-compact",
|
|
||||||
})
|
|
||||||
vim.notify = require("notify")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"j-hui/fidget.nvim",
|
|
||||||
event = "VimEnter",
|
|
||||||
cond = false,
|
|
||||||
opts = {
|
|
||||||
progress = {
|
|
||||||
display = {
|
|
||||||
done_ttl = 5,
|
|
||||||
done_icon = " ",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
notification = {
|
|
||||||
override_vim_notify = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- {
|
-- {
|
||||||
-- "echasnovski/mini.notify",
|
-- "rcarriga/nvim-notify",
|
||||||
-- version = false,
|
-- event = "VimEnter",
|
||||||
-- dependencies = {
|
-- cond = true,
|
||||||
-- "rcarriga/nvim-notify",
|
-- lazy = true,
|
||||||
-- "j-hui/fidget.nvim",
|
|
||||||
-- },
|
|
||||||
-- config = function()
|
-- config = function()
|
||||||
-- vim.notify = function(msg, level, opts)
|
-- -- local colors = require("catppuccin.palettes").get_palette()
|
||||||
-- require("fidget").notify(msg, level, opts)
|
-- require("notify").setup({
|
||||||
-- require("mini.notify").make_notify()(msg, level, opts)
|
-- -- background_colour = colors.base,
|
||||||
-- end
|
-- fps = 20, -- default 30
|
||||||
|
-- stages = "slide", -- default fade_in_slide_out
|
||||||
|
-- timeout = 5000, -- default 5000
|
||||||
|
-- render = "wrapped-compact",
|
||||||
|
-- })
|
||||||
|
-- vim.notify = require("notify")
|
||||||
-- end,
|
-- end,
|
||||||
-- },
|
-- },
|
||||||
|
-- {
|
||||||
|
-- "j-hui/fidget.nvim",
|
||||||
|
-- event = "VimEnter",
|
||||||
|
-- -- cond = false,
|
||||||
|
-- opts = {
|
||||||
|
-- progress = {
|
||||||
|
-- display = {
|
||||||
|
-- done_ttl = 5,
|
||||||
|
-- done_icon = " ",
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- notification = {
|
||||||
|
-- override_vim_notify = true,
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
{
|
||||||
|
"echasnovski/mini.notify",
|
||||||
|
version = false,
|
||||||
|
dependencies = {
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
-- "j-hui/fidget.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
vim.api.nvim_create_user_command("Notifications", require("mini.notify").show_history, {})
|
||||||
|
vim.notify = require("mini.notify").make_notify()
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
"folke/paint.nvim",
|
"folke/paint.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
vim.api.nvim_set_hl(0, "LightPurple", { fg = "#7f67c5" })
|
vim.api.nvim_set_hl(0, "NievesLightPurple", { fg = "#7f67c5" })
|
||||||
|
vim.api.nvim_set_hl(0, "NievesViolet", { fg = "#4000f0", bold = true })
|
||||||
|
|
||||||
require("paint").setup({
|
require("paint").setup({
|
||||||
highlights = {
|
highlights = {
|
||||||
@ -31,10 +32,10 @@ return {
|
|||||||
-- },
|
-- },
|
||||||
--
|
--
|
||||||
-- WASM
|
-- WASM
|
||||||
{ pattern = "(W)ASM", hl = "LightRed", filter = {} },
|
-- { pattern = "(W)ASM", hl = "LightRed", filter = {} },
|
||||||
{ pattern = "W(A)SM", hl = "LightBlue", filter = {} },
|
-- { pattern = "W(A)SM", hl = "LightBlue", filter = {} },
|
||||||
{ pattern = "WA(S)M", hl = "LightGreen", filter = {} },
|
-- { pattern = "WA(S)M", hl = "LightGreen", filter = {} },
|
||||||
{ pattern = "WAS(M)", hl = "LightYellow", filter = {} },
|
-- { pattern = "WAS(M)", hl = "LightYellow", filter = {} },
|
||||||
|
|
||||||
-- Google
|
-- Google
|
||||||
-- { pattern = "Google", hl = "LightBlue", filter = {} },
|
-- { pattern = "Google", hl = "LightBlue", filter = {} },
|
||||||
@ -46,8 +47,10 @@ return {
|
|||||||
-- { pattern = "Googl(e)", hl = "LightRed", filter = {} },
|
-- { pattern = "Googl(e)", hl = "LightRed", filter = {} },
|
||||||
|
|
||||||
-- cnieves
|
-- cnieves
|
||||||
{ pattern = "cnieves", hl = "LightPurple", filter = {} },
|
-- { pattern = "cnieves", hl = "LightPurple", filter = {} },
|
||||||
{ pattern = "Christian Nieves", hl = "LightPurple", filter = {} },
|
-- { pattern = "Christian Nieves", hl = "LightPurple", filter = {} },
|
||||||
|
{ pattern = "Christian Nieves", hl = "NievesViolet", filter = {} },
|
||||||
|
{ pattern = "Christian Nieves", hl = "NievesLightPurple", filter = {} },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
@ -8,34 +8,16 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
require("config.refactoring")
|
require("config.refactoring")
|
||||||
end,
|
end,
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
-- remap to open the Telescope refactoring menu in visual mode
|
-- remap to open the Telescope refactoring menu in visual mode
|
||||||
{
|
{ "<leader>R", "<cmd>lua require('telescope').extensions.refactoring.refactors()<CR>", },
|
||||||
"<leader>R",
|
|
||||||
"<cmd>lua require('telescope').extensions.refactoring.refactors()<CR>",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Remaps for the refactoring operations currently offered by the plugin
|
-- Remaps for the refactoring operations currently offered by the plugin
|
||||||
{
|
{ "<leader>rx", [[ <Cmd>lua require('refactoring').refactor('Extract Function')<CR>]], mode = "v", },
|
||||||
"<leader>rx",
|
{ "<leader>rxf", [[ <Cmd>lua require('refactoring').refactor('Extract Function To File')<CR>]], mode = "v", },
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Function')<CR>]],
|
{ "<leader>rxv", [[ <Cmd>lua require('refactoring').refactor('Extract Variable')<CR>]], mode = "v", },
|
||||||
mode = "v",
|
{ "<leader>ri", [[ <Cmd>lua require('refactoring').refactor('Inline Variable')<CR>]], mode = "v", },
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rxf",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Function To File')<CR>]],
|
|
||||||
mode = "v",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rxv",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Variable')<CR>]],
|
|
||||||
mode = "v",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>ri",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Inline Variable')<CR>]],
|
|
||||||
mode = "v",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,7 @@ end
|
|||||||
return {
|
return {
|
||||||
"mhinz/vim-signify",
|
"mhinz/vim-signify",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "]d", "<plug>(signify-next-hunk)" },
|
{ "]d", "<plug>(signify-next-hunk)" },
|
||||||
{ "[d", "<plug>(signify-prev-hunk)" },
|
{ "[d", "<plug>(signify-prev-hunk)" },
|
||||||
|
@ -47,6 +47,7 @@ function fig_all_modified()
|
|||||||
return exe("hg status -ma -n --rev p4base --no-status --template= | sort")
|
return exe("hg status -ma -n --rev p4base --no-status --template= | sort")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- stylua: ignore
|
||||||
local keys = {
|
local keys = {
|
||||||
{ "<leader>e", ":lua search_cwd()<CR>", desc = "Find Files in Buffer Directory" },
|
{ "<leader>e", ":lua search_cwd()<CR>", desc = "Find Files in Buffer Directory" },
|
||||||
{ "<leader>ts.", ":lua live_grep({vim.fn.getcwd()})<CR>", desc = "Search in CWD" },
|
{ "<leader>ts.", ":lua live_grep({vim.fn.getcwd()})<CR>", desc = "Search in CWD" },
|
||||||
@ -67,18 +68,16 @@ local keys = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if use_google() then
|
if use_google() then
|
||||||
|
-- stylua: ignore
|
||||||
TableConcat(keys, {
|
TableConcat(keys, {
|
||||||
{ "<leader>tm", ":lua find_files(fig_modified())<CR>" },
|
{ "<leader>tm", ":lua find_files(fig_modified())<CR>" },
|
||||||
{ "<leader>tM", ":lua find_files(fig_all_modified())<CR>" },
|
{ "<leader>tM", ":lua find_files(fig_all_modified())<CR>" },
|
||||||
{ "<leader>tF", ":lua live_grep(fig_all_modified())<CR>", desc = "Search in *all* modified Fig files." },
|
|
||||||
{ "<leader>tf", ":lua live_grep(fig_modified())<CR>", desc = "Search in modified Fig files." },
|
{ "<leader>tf", ":lua live_grep(fig_modified())<CR>", desc = "Search in modified Fig files." },
|
||||||
{ "<C-P>", [[<cmd>lua require('telescope').extensions.codesearch.find_files{}<CR>]], "n" },
|
{ "<leader>tF", ":lua live_grep(fig_all_modified())<CR>", desc = "Search in *all* modified Fig files." },
|
||||||
{ "<leader>cs", [[<cmd>lua require('telescope').extensions.codesearch.find_query{}<CR>]] },
|
{ "<C-P>", require("telescope").extensions.codesearch.find_files },
|
||||||
{ "<leader>cs", [[<cmd>lua require('telescope').extensions.codesearch.find_query{}<CR>]], mode = "v" },
|
{ "<leader>cs", require("telescope").extensions.codesearch.find_query },
|
||||||
{
|
{ "<leader>cs", require("telescope").extensions.codesearch.find_query, mode = "v" },
|
||||||
"<leader>CS",
|
{ "<leader>CS", [[<cmd>lua require('telescope').extensions.codesearch.find_query{default_text_expand='<cword>'}<CR>]], },
|
||||||
[[<cmd>lua require('telescope').extensions.codesearch.find_query{default_text_expand='<cword>'}<CR>]],
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -166,7 +165,6 @@ return {
|
|||||||
},
|
},
|
||||||
i = {
|
i = {
|
||||||
["<C-c>"] = require("telescope.actions").close,
|
["<C-c>"] = require("telescope.actions").close,
|
||||||
["<Esc>"] = require("telescope.actions").close,
|
|
||||||
["<S-Down>"] = function()
|
["<S-Down>"] = function()
|
||||||
require("telescope.actions").cycle_history_next()
|
require("telescope.actions").cycle_history_next()
|
||||||
end,
|
end,
|
||||||
|
@ -7,14 +7,11 @@ return {
|
|||||||
end,
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
require("which-key").setup({})
|
require("which-key").setup({})
|
||||||
-- local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
--
|
wk.register({
|
||||||
-- wk.register({ [";"] = { ":" } }, { mode = "v" })
|
["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
|
||||||
-- wk.register({ [";"] = { ":" } }, { mode = "n" })
|
["%."] = { "<C-R>%", "Current File" },
|
||||||
--
|
}, { mode = "c" })
|
||||||
-- wk.register({
|
|
||||||
-- ["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
|
|
||||||
-- }, { mode = "c" })
|
|
||||||
--
|
--
|
||||||
-- wk.register({
|
-- wk.register({
|
||||||
-- ["jk"] = { "<esc>" },
|
-- ["jk"] = { "<esc>" },
|
||||||
|
@ -12,8 +12,6 @@ map <Esc>[D <Left>
|
|||||||
" remove mapping to be used in nerdtree
|
" remove mapping to be used in nerdtree
|
||||||
inoremap <Nul> <C-n>
|
inoremap <Nul> <C-n>
|
||||||
|
|
||||||
cnoremap %% <C-R>=fnameescape(expand("%:p:h")."/")<CR>
|
|
||||||
|
|
||||||
" move vertically by visual line
|
" move vertically by visual line
|
||||||
" nnoremap j gj
|
" nnoremap j gj
|
||||||
" nnoremap k gk
|
" nnoremap k gk
|
||||||
|
@ -124,5 +124,7 @@ let g:loaded_netrwPlugin = 0
|
|||||||
let g:loaded_tutor_mode_plugin = 0
|
let g:loaded_tutor_mode_plugin = 0
|
||||||
let g:loaded_remote_plugins = 1
|
let g:loaded_remote_plugins = 1
|
||||||
|
|
||||||
|
au BufRead,BufNewFile,BufReadPost *.cc.inc set filetype=cpp
|
||||||
|
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
syntax on
|
syntax on
|
||||||
|
Reference in New Issue
Block a user