adder explore short cut

This commit is contained in:
adamwm4 2025-04-16 16:53:49 -05:00
parent d40254d2b1
commit f341887265
2 changed files with 12 additions and 7 deletions

View File

@ -663,18 +663,18 @@ require('lazy').setup({
-- - settings (table): Override the default settings passed when initializing the server. -- - 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/ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = { local servers = {
-- clangd = {}, clangd = {},
-- gopls = {}, gopls = {},
-- pyright = {}, pyright = {},
-- rust_analyzer = {}, rust_analyzer = {},
jdtls = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- ... 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: -- Some languages (like typescript) have entire language plugins that can be useful:
-- https://github.com/pmizio/typescript-tools.nvim -- https://github.com/pmizio/typescript-tools.nvim
-- --
-- But for many setups, the LSP (`ts_ls`) will work just fine -- But for many setups, the LSP (`ts_ls`) will work just fine
-- ts_ls = {}, ts_ls = {},
--
lua_ls = { lua_ls = {
-- cmd = { ... }, -- cmd = { ... },
@ -936,7 +936,7 @@ require('lazy').setup({
main = 'nvim-treesitter.configs', -- Sets main module to use for opts main = 'nvim-treesitter.configs', -- Sets main module to use for opts
-- [[ Configure Treesitter ]] See `:help nvim-treesitter` -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
opts = { 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 -- Autoinstall languages that are not installed
auto_install = true, auto_install = true,
highlight = { highlight = {

View File

@ -10,6 +10,7 @@ vim.opt.wrap = false
vim.keymap.set('n', '<C-k>', '10k', { desc = 'Scroll up and center' }) vim.keymap.set('n', '<C-k>', '10k', { desc = 'Scroll up and center' })
vim.keymap.set('n', '<C-j>', '10j', { desc = 'Scroll down and center' }) vim.keymap.set('n', '<C-j>', '10j', { desc = 'Scroll down and center' })
vim.keymap.set('n', '<C-c>', 'ggVGy', { desc = 'copy file', noremap = true }) vim.keymap.set('n', '<C-c>', 'ggVGy', { desc = 'copy file', noremap = true })
vim.keymap.set('n', '<leader>e', ':Explore<CR>', { desc = 'copy file', noremap = true })
return { return {
{ {
@ -68,4 +69,8 @@ return {
neogit.setup {} neogit.setup {}
end, end,
}, },
{
'mfussenegger/nvim-jdtls',
},
} }