更新java快捷键
This commit is contained in:
parent
38cf6c0a78
commit
66f18ba4c5
@ -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" },
|
||||
|
@ -35,6 +35,9 @@ return {
|
||||
java_test = {
|
||||
enable = true,
|
||||
},
|
||||
java_debug_adapter = {
|
||||
enable = true,
|
||||
},
|
||||
})
|
||||
require("lspconfig").jdtls.setup({})
|
||||
end,
|
||||
|
@ -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",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user