mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:17:35 +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
|
-- Auto sync after bootstrapping on a fresh box
|
||||||
if packer_bootstrap ~= "" then
|
if packer_bootstrap ~= "" then
|
||||||
packer.sync()
|
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').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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user