mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 18:07:34 +00:00
Add sourcegraph
This commit is contained in:
parent
20af7a9374
commit
c338a0b580
@ -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
|
||||
if packer_bootstrap ~= "" then
|
||||
packer.sync()
|
||||
|
@ -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').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()
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user