Add lspsaga incoming/outgoing mappings

This commit is contained in:
Christopher Williams 2024-04-22 15:37:47 -04:00
parent 899b49d6e1
commit 91903cd952
4 changed files with 24 additions and 3 deletions

View File

@ -10,8 +10,6 @@ require('gopls')
require('code-completion')
require('commands')
local vim = vim
-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1

View File

@ -17,6 +17,7 @@
"copilot.lua": { "branch": "master", "commit": "858bbfa6fa81c88fb1f64107d7981f1658619e0a" },
"dashboard-nvim": { "branch": "master", "commit": "63df28409d940f9cac0a925df09d3dc369db9841" },
"diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
"flatten.nvim": { "branch": "main", "commit": "e420e531d2ab24aebcf7b3c9fca28e6c5c34964d" },
"git-messenger.vim": { "branch": "master", "commit": "8a61bdfa351d4df9a9118ee1d3f45edbed617072" },
"gitsigns.nvim": { "branch": "main", "commit": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9" },
"glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
@ -47,6 +48,7 @@
"nvim-cmp": { "branch": "main", "commit": "538e37ba87284942c1d76ed38dd497e54e65b891" },
"nvim-lspconfig": { "branch": "master", "commit": "9099871a7c7e1c16122e00d70208a2cd02078d80" },
"nvim-notify": { "branch": "master", "commit": "ebcdd8219e2a2cbc0a4bef68002f6867f1fde269" },
"nvim-recorder": { "branch": "main", "commit": "61531ea45819e7a2c267c191360cee9ff269fc6b" },
"nvim-spectre": { "branch": "master", "commit": "9653847cf2f225648967f6e9363643e327387579" },
"nvim-spider": { "branch": "main", "commit": "828444de406bc7df3b30c8e000ce6f54f0754499" },
"nvim-surround": { "branch": "main", "commit": "a4e30d33add8a9743b4f518b3a788b3c8e5def71" },

View File

@ -77,6 +77,9 @@ vim.api.nvim_set_keymap("n", "<leader>,", "<cmd>Telescope buffers<CR>", { norema
-- Lspsaga
vim.api.nvim_set_keymap("n", "<leader>aa", "<cmd>Lspsaga outline<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>li", "<cmd>Lspsaga incoming_calls<CR>", { noremap = true, silent = true })
vim.api.nvim_set_keymap("n", "<leader>lo", "<cmd>Lspsaga outgoing_calls<CR>", { noremap = true, silent = true })
-- trouble
vim.api.nvim_set_keymap("n", "<leader>tt", "<cmd>TroubleToggle<CR>", { noremap = true, silent = true })

View File

@ -583,5 +583,23 @@ return {
mappings = {}
}
end
}
},
{
"willothy/flatten.nvim",
config = function()
require("flatten").setup({})
end,
lazy = false,
priority = 1001,
},
{
"chrisgrieser/nvim-recorder",
dependencies = "rcarriga/nvim-notify", -- optional
opts = {},
config = function()
require("recorder").setup({
slots = { "a", "b", "c", "d" }
})
end,
},
}