mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
enc: add java config project
This commit is contained in:
parent
35348c069a
commit
5146726772
3 changed files with 41 additions and 11 deletions
|
@ -117,10 +117,10 @@ vim.api.nvim_create_autocmd("ExitPre", {
|
|||
})
|
||||
|
||||
-- Create an autocmd to set keymap for Java files
|
||||
vim.api.nvim_create_augroup("java_gradle_run", { clear = true })
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "java",
|
||||
callback = function()
|
||||
vim.api.nvim_set_keymap("n", "<leader>rg", "<cmd>terminal<cr>gradle run<cr>", { noremap = true, silent = true })
|
||||
end,
|
||||
})
|
||||
-- vim.api.nvim_create_augroup("java_gradle_run", { clear = true })
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = "java",
|
||||
-- callback = function()
|
||||
-- vim.api.nvim_set_keymap("n", "<leader>rg", "<cmd>terminal<cr>gradle run<cr>", { noremap = true, silent = true })
|
||||
-- end,
|
||||
-- })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue