Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .devcontainer/config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ require('lazy').setup({
vim.lsp.enable('jdtls')
end,
},
{
'ibhagwan/fzf-lua',
-- optional for icon support
dependencies = { 'nvim-tree/nvim-web-devicons' },
-- or if using mini.icons/mini.nvim
-- dependencies = { "nvim-mini/mini.icons" },
---@module "fzf-lua"
---@type fzf-lua.Config|{}
---@diagnostics disable: missing-fields
opts = {},
---@diagnostics enable: missing-fields
},
})

-- Basic settings
Expand All @@ -54,6 +66,8 @@ vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = false
vim.opt.completeopt = { 'menu', 'menuone', 'noselect' }
vim.opt.number = true
vim.opt.relativenumber = true

local k = vim.keymap.set

Expand Down Expand Up @@ -137,6 +151,10 @@ k('n', 'gd', function()
vim.lsp.buf.definition()
end, { desc = 'Terminate' })

k('n', '<leader>tt', function()
require('fzf-lua').lsp_document_symbols()
end)

k('n', '<leader>m', "<cmd>vnew<Cr><cmd>put = execute('messages')<Cr>")

k('n', '<leader>nn', '<CMD>JavaRunnerRunMain<CR>', { desc = 'Run main' })
Expand Down
2 changes: 2 additions & 0 deletions .devcontainer/config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"fzf-lua": { "branch": "main", "commit": "de0fd4a21ee29cf6532d0c3bcae08a0b25d99b6a" },
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-dap": { "branch": "master", "commit": "5860c7c501eb428d3137ee22c522828d20cca0b3" },
"nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" },
"spring-boot.nvim": { "branch": "main", "commit": "218c0c26c14d99feca778e4d13f5ec3e8b1b60f0" }
}
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"ghcr.io/duduribeiro/devcontainer-features/neovim:1": {
"version": "nightly"
},
"ghcr.io/devcontainers-extra/features/springboot-sdkman:2": {}
"ghcr.io/devcontainers-extra/features/springboot-sdkman:2": {},
"ghcr.io/devcontainers-extra/features/fzf:1": {}
},
"postCreateCommand": "bash .devcontainer/setup.sh",
"customizations": {
Expand Down
2 changes: 1 addition & 1 deletion lua/java-core/ls/servers/jdtls/conf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ return {
advancedOrganizeImportsSupport = true,
advancedUpgradeGradleSupport = true,
classFileContentsSupport = true,
clientDocumentSymbolProvider = true,
clientDocumentSymbolProvider = false,
clientHoverProvider = false,
executeClientCommandSupport = true,
extractInterfaceSupport = true,
Expand Down