更新java快捷键

This commit is contained in:
LingZhaoHui 2024-06-21 00:24:35 +08:00
parent 38cf6c0a78
commit 66f18ba4c5
Signed by: zeekling
GPG Key ID: D96E4E75267CA2CC
3 changed files with 46 additions and 2 deletions

View File

@ -23,8 +23,7 @@ return {
f = {
name = "Search,Format",
s = {
name = "search",
name = "Search",
f = { "<cmd>Telescope find_files<cr>", "Search file by name" },
g = { "<cmd>Telescope live_grep<cr>", "Grep in files" },
b = { "<cmd>Telescope buffers<cr>", "Grep in buffer" },
@ -45,6 +44,26 @@ return {
c = { "<cmd>MarkdownPreviewStop<cr>", "MarkdownPreviewStop" },
},
},
s = {
name = "Symbol",
t = { "<cmd>AerialToggle right<cr>", "Open or close the Symbol tree" },
},
j = {
name = "Java",
t = {
name = "Test",
d = {
name = "Debug",
c = { "<cmd>JavaTestDebugCurrentClass<cr>", "Run current Class" },
m = { "<cmd>JavaTestDebugCurrentMethod<cr>", "Run current Method" },
},
c = { "<cmd>JavaTestRunCurrentClass<cr>", "Run current Class" },
m = { "<cmd>JavaTestRunCurrentMethod<cr>", "Run current Method" },
v = { "<cmd>JavaTestViewLastReport<cr>", "View Last Report" },
},
m = {"<cmd>JavaRunnerRunMain<cr>", "Run main Method"},
p = {"<cmd>JavaProfile<cr>", "Run Java Profile"},
},
v = {
name = "version",
v = { "<cmd>version<cr>", "neovim version" },

View File

@ -35,6 +35,9 @@ return {
java_test = {
enable = true,
},
java_debug_adapter = {
enable = true,
},
})
require("lspconfig").jdtls.setup({})
end,

View File

@ -174,4 +174,26 @@ return {
})
end,
},
{
"folke/trouble.nvim",
opts = {},
cmd = "Trouble",
},
{
"stevearc/aerial.nvim",
opts = {},
config = function()
require("aerial").setup({
layout = {
max_width = { 40, 0.2 },
min_width = 20,
},
})
end,
-- Optional dependencies
dependencies = {
"nvim-treesitter/nvim-treesitter",
"nvim-tree/nvim-web-devicons",
},
},
}