diff --git a/init.lua b/init.lua index 998f9ecf..80c5a1c5 100644 --- a/init.lua +++ b/init.lua @@ -663,18 +663,18 @@ require('lazy').setup({ -- - settings (table): Override the default settings passed when initializing the server. -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { - -- clangd = {}, - -- gopls = {}, - -- pyright = {}, - -- rust_analyzer = {}, + clangd = {}, + gopls = {}, + pyright = {}, + rust_analyzer = {}, + jdtls = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- -- Some languages (like typescript) have entire language plugins that can be useful: -- https://github.com/pmizio/typescript-tools.nvim -- -- But for many setups, the LSP (`ts_ls`) will work just fine - -- ts_ls = {}, - -- + ts_ls = {}, lua_ls = { -- cmd = { ... }, @@ -936,7 +936,7 @@ require('lazy').setup({ main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { - ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }, + ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'java' }, -- Autoinstall languages that are not installed auto_install = true, highlight = { diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 8c086776..e938609e 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -10,6 +10,7 @@ vim.opt.wrap = false vim.keymap.set('n', '', '10k', { desc = 'Scroll up and center' }) vim.keymap.set('n', '', '10j', { desc = 'Scroll down and center' }) vim.keymap.set('n', '', 'ggVGy', { desc = 'copy file', noremap = true }) +vim.keymap.set('n', 'e', ':Explore', { desc = 'copy file', noremap = true }) return { { @@ -68,4 +69,8 @@ return { neogit.setup {} end, }, + + { + 'mfussenegger/nvim-jdtls', + }, }