添加java插件;优化快捷键

This commit is contained in:
LingZhaoHui 2024-06-14 00:38:06 +08:00
parent 6ecdddcf04
commit afc0b62a78
Signed by: zeekling
GPG Key ID: D96E4E75267CA2CC
2 changed files with 37 additions and 1 deletions

View File

@ -20,6 +20,12 @@ return {
s={"<cmd>NvimTreeToggle<cr>", "show dir tree on left"}, s={"<cmd>NvimTreeToggle<cr>", "show dir tree on left"},
c={"<cmd>NvimTreeClose<cr>", "hidden dir tree on left"} c={"<cmd>NvimTreeClose<cr>", "hidden dir tree on left"}
}, },
l = {
name="Lazy",
s={"<cmd>Lazy show<cr>", "Lazy show"},
i={"<cmd>Lazy install<cr>", "Lazy install"},
u={"<cmd>Lazy update<cr>", "Lazy update"},
},
m = { m = {
name="Markdown", name="Markdown",
k={ k={
@ -28,9 +34,13 @@ return {
c={"<cmd>MarkdownPreviewStop<cr>", "MarkdownPreviewStop"} c={"<cmd>MarkdownPreviewStop<cr>", "MarkdownPreviewStop"}
} }
}, },
v = {
name = "version",
v={"<cmd>version<cr>", "neovim version"},
},
s = { s = {
name="Search" name="Search"
} },
} }
}, {silent = true, noremap = true}) }, {silent = true, noremap = true})
wk.setup() wk.setup()

View File

@ -0,0 +1,26 @@
return {
'nvim-java/nvim-java',
dependencies = {
'nvim-java/lua-async-await',
'nvim-java/nvim-java-refactor',
'nvim-java/nvim-java-core',
'nvim-java/nvim-java-test',
'nvim-java/nvim-java-dap',
'MunifTanjim/nui.nvim',
'neovim/nvim-lspconfig',
'mfussenegger/nvim-dap',
{
'williamboman/mason.nvim',
opts = {
registries = {
'github:nvim-java/mason-registry',
'github:mason-org/mason-registry',
},
},
}
},
config = function()
require('java').setup({
})
end,
}