添加java插件;优化快捷键
This commit is contained in:
parent
6ecdddcf04
commit
afc0b62a78
@ -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()
|
||||||
|
26
lua/plugins/java-plugin.lua
Normal file
26
lua/plugins/java-plugin.lua
Normal 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,
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user