telescope and dap
This commit is contained in:
@ -57,6 +57,7 @@
|
||||
"nui.nvim": { "branch": "main", "commit": "c0c8e347ceac53030f5c1ece1c5a5b6a17a25b32" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "51260c02a8ffded8e16162dcf41a23ec90cfba62" },
|
||||
"nvim-cmp-buffer-lines": { "branch": "master", "commit": "924ccc04dc5c919b6baa05d45818025baa82699a" },
|
||||
"nvim-dap": { "branch": "master", "commit": "79dbc70eb79271ad801e4ff293887cde324c28d0" },
|
||||
"nvim-lightbulb": { "branch": "master", "commit": "8f00b89dd1b1dbde16872bee5fbcee2e58c9b8e9" },
|
||||
"nvim-lint": { "branch": "master", "commit": "962a76877a4479a535b935bd7ef35ad41ba308b2" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "d0467b9574b48429debf83f8248d8cee79562586" },
|
||||
@ -70,7 +71,10 @@
|
||||
"registers.nvim": { "branch": "main", "commit": "7a16c6e6fe96f3c9c8bb55b95047d745dd34ca4d" },
|
||||
"rust-tools.nvim": { "branch": "master", "commit": "0cc8adab23117783a0292a0c8a2fbed1005dc645" },
|
||||
"scss-syntax.vim": { "branch": "master", "commit": "bda22a93d1dcfcb8ee13be1988560d9bb5bd0fef" },
|
||||
"sqlite.lua": { "branch": "master", "commit": "b7e28c8463254c46a8e61c52d27d6a2040492fc3" },
|
||||
"tabular": { "branch": "master", "commit": "339091ac4dd1f17e225fe7d57b48aff55f99b23a" },
|
||||
"telescope-dap.nvim": { "branch": "master", "commit": "4e2d5efb92062f0b865fe59b200b5ed7793833bf" },
|
||||
"telescope-smart-history.nvim": { "branch": "master", "commit": "81a4cceaa54d65d5f7c7c26178ee63b634d3e26d" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "4522d7e3ea75ffddabdc39957168a8a7060b5df0" },
|
||||
"telescope_citc": { "branch": "main", "commit": "d6421d5bfe058915ece0daec55e488f8ea05f207" },
|
||||
"telescope_codesearch": { "branch": "main", "commit": "a26077ad3c68cf897ae1c31da903d6516ebb9c92" },
|
||||
|
@ -46,8 +46,7 @@ nnoremap <Leader>br :call BlazeRun()<cr>
|
||||
nnoremap <Leader>bb :call BlazeBuild()<cr>
|
||||
nnoremap <Leader>bt :call BlazeTest()<cr>
|
||||
nnoremap <Leader>btd :call BlazeTestDebug()<cr>
|
||||
nnoremap <Leader>bc :call BuildCleanerTarget()<cr>
|
||||
nnoremap <Leader>bcf :call BuildCleanerFile()<cr>
|
||||
nnoremap <Leader>bc :call BuildCleanerFile()<cr>
|
||||
nnoremap <Leader>ud :call UnusedDeps()<cr>
|
||||
|
||||
let g:asyncrun_open = 1
|
||||
|
38
vim/.vim/lua/plugins/dap.lua
Normal file
38
vim/.vim/lua/plugins/dap.lua
Normal file
@ -0,0 +1,38 @@
|
||||
return {
|
||||
"mfussenegger/nvim-dap",
|
||||
dependencies = {
|
||||
"nvim-telescope/telescope-dap.nvim",
|
||||
},
|
||||
config = function()
|
||||
-- <leader>dl :lua require'dapui'.open()<CR>
|
||||
-- <F5> :lua require'dap'.continue()<CR>
|
||||
-- <leader>dl :lua require'dap'.run_last()<CR>
|
||||
-- <leader>db :lua require'dap'.toggle_breakpoint()<CR>
|
||||
-- <leader>dB :lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))<CR>
|
||||
-- <leader>dlp :lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: '))<CR>
|
||||
-- <leader>dr :lua require'dap'.repl.open()<CR>
|
||||
--
|
||||
require("telescope").load_extension("dap")
|
||||
local dap = require("dap")
|
||||
dap.adapters.java = function(callback)
|
||||
-- FIXME:
|
||||
-- Here a function needs to trigger the `vscode.java.startDebugSession` LSP command
|
||||
-- The response to the command must be the `port` used below
|
||||
callback({
|
||||
type = "server",
|
||||
host = "127.0.0.1",
|
||||
port = port,
|
||||
})
|
||||
end
|
||||
|
||||
dap.configurations.java = {
|
||||
{
|
||||
type = "java",
|
||||
request = "attach",
|
||||
name = "Debug (Attach) - Remote",
|
||||
hostName = "127.0.0.1",
|
||||
port = 5005,
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
@ -97,12 +97,14 @@ return {
|
||||
\ Suggest[aidl]=buffer,ripgrep,csearch,prompt
|
||||
]])
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>i", ":ImpSuggest <C-r><C-w><cr>" },
|
||||
},
|
||||
lazy = false,
|
||||
},
|
||||
{
|
||||
"flwyd/vim-imp",
|
||||
lazy = false,
|
||||
keys = {
|
||||
{ "<leader>i", ":ImpSuggest <C-r><C-w><cr>" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name = "ai.nvim",
|
||||
|
@ -37,6 +37,7 @@ local keys = {
|
||||
|
||||
{ "<leader>ff", ":Telescope current_buffer_fuzzy_find<CR>", desc = "[T]elescope [F]uzzy [F]ind" },
|
||||
{ "<leader>tg", ":Telescope git_files<CR>", desc = "[T]elescope [G]it Files" },
|
||||
{ "<leader>tr", ":Telescope resume<CR>", desc = "[T]elescope [R]esume" },
|
||||
{ "<leader>t*", "<cmd>lua require('telescope.builtin').grep_string{}<CR>", desc = "[T]elescope current [W]ord" },
|
||||
{ "<leader>th", "<cmd>lua require('telescope.builtin').help_tags{}<CR>", desc = "[T]elescope [H]elp" },
|
||||
}
|
||||
@ -56,10 +57,13 @@ end
|
||||
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {},
|
||||
dependencies = {
|
||||
-- "nvim-telescope/telescope-smart-history.nvim",
|
||||
-- "kkharji/sqlite.lua",
|
||||
},
|
||||
config = function()
|
||||
require("telescope").setup({
|
||||
experimental = true,
|
||||
defaults = {
|
||||
-- The vertical layout strategy is good to handle long paths like those in
|
||||
-- google3 repos because you have nearly the full screen to display a file path.
|
||||
-- The caveat is that the preview area is smaller.
|
||||
@ -90,7 +94,29 @@ return {
|
||||
opts.__length = new_opts.__length
|
||||
return path
|
||||
end,
|
||||
mappings = {
|
||||
i = {
|
||||
["<S-Down>"] = function()
|
||||
require("telescope.actions").cycle_history_next()
|
||||
end,
|
||||
["<S-Up>"] = function()
|
||||
require("telescope.actions").cycle_history_prev()
|
||||
end,
|
||||
},
|
||||
},
|
||||
-- history = {
|
||||
-- path = "~/.local/share/nvim/databases/telescope_history.sqlite3",
|
||||
-- limit = 200,
|
||||
-- },
|
||||
},
|
||||
extensions = {
|
||||
codesearch = {
|
||||
experimental = true, -- enable results from google3/experimental
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- require("telescope").load_extension("smart_history")
|
||||
end,
|
||||
keys = keys,
|
||||
}
|
||||
|
Reference in New Issue
Block a user