Add sourcegraph

This commit is contained in:
ViViDboarder 2023-10-20 16:59:32 -07:00
parent 20af7a9374
commit c338a0b580
2 changed files with 18 additions and 0 deletions

View File

@ -522,6 +522,16 @@ use({
}, },
}) })
-- Work things
-- Sourcegraph
use({
"sourcegraph/sg.nvim",
run = "nvim -l build/init.lua",
requires = {
"nvim-lua/plenary.nvim",
},
})
-- Auto sync after bootstrapping on a fresh box -- Auto sync after bootstrapping on a fresh box
if packer_bootstrap ~= "" then if packer_bootstrap ~= "" then
packer.sync() packer.sync()

View File

@ -53,6 +53,14 @@ local function config_telescope()
finder_keymap("t", "<cmd>lua require('telescope.builtin').current_buffer_tags()<CR>", { desc = "Find buffer tags" }) finder_keymap("t", "<cmd>lua require('telescope.builtin').current_buffer_tags()<CR>", { desc = "Find buffer tags" })
finder_keymap("T", "<cmd>lua require('telescope.builtin').tags()<CR>", { desc = "Find tags" }) finder_keymap("T", "<cmd>lua require('telescope.builtin').tags()<CR>", { desc = "Find tags" })
if utils.can_require("sg.telescope") then
finder_keymap(
"G",
"<cmd>lua require('sg.telescope').fuzzy_search_results()<CR>",
{ desc = "Search Sourcegraph" }
)
end
load_extensions() load_extensions()
end end