From 9a117777c258b8c02e34bd368fb2bb800789125f Mon Sep 17 00:00:00 2001 From: Sun-Sarun Date: Wed, 22 Apr 2026 18:33:53 +0700 Subject: [PATCH] add jj as esc and java plugin --- init.lua | 6 +++++- lua/custom/plugins/init.lua | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 13727202e80..41d343d2fa2 100644 --- a/init.lua +++ b/init.lua @@ -57,6 +57,7 @@ Kickstart Guide: of the kickstart init.lua. Next, run AND READ `:help`. + This will open up a help window with some basic information about reading, navigating and searching the builtin help documentation. @@ -196,6 +197,8 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagn -- NOTE: This won't work in all terminal emulators/tmux/etc. Try your own mapping -- or just use to exit terminal mode vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) +vim.keymap.set("i", "jj", "") + -- TIP: Disable arrow keys in normal mode -- vim.keymap.set('n', '', 'echo "Use h to move!!"') @@ -209,6 +212,7 @@ vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' } -- See `:help wincmd` for a list of all window commands vim.keymap.set('n', '', '', { desc = 'Move focus to the left window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the right window' }) + vim.keymap.set('n', '', '', { desc = 'Move focus to the lower window' }) vim.keymap.set('n', '', '', { desc = 'Move focus to the upper window' }) @@ -958,7 +962,7 @@ require('lazy').setup({ -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, -- -- For additional information with loading, sourcing and examples see `:help lazy.nvim-🔌-plugin-spec` -- Or use telescope! diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index b3ddcfdd3aa..1aedcc95377 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -5,4 +5,9 @@ ---@module 'lazy' ---@type LazySpec -return {} +return { 'nvim-java/nvim-java', + config = function() + require('java').setup() + vim.lsp.enable('jdtls') + end, + }