@@ -44,6 +44,18 @@ require('lazy').setup({
4444 vim .lsp .enable (' jdtls' )
4545 end ,
4646 },
47+ {
48+ ' ibhagwan/fzf-lua' ,
49+ -- optional for icon support
50+ dependencies = { ' nvim-tree/nvim-web-devicons' },
51+ -- or if using mini.icons/mini.nvim
52+ -- dependencies = { "nvim-mini/mini.icons" },
53+ --- @module " fzf-lua"
54+ --- @type fzf-lua.Config |{}
55+ --- @diagnostic s disable : missing-fields
56+ opts = {},
57+ --- @diagnostic s enable : missing-fields
58+ },
4759})
4860
4961-- Basic settings
@@ -54,6 +66,8 @@ vim.opt.tabstop = 2
5466vim .opt .shiftwidth = 2
5567vim .opt .expandtab = false
5668vim .opt .completeopt = { ' menu' , ' menuone' , ' noselect' }
69+ vim .opt .number = true
70+ vim .opt .relativenumber = true
5771
5872local k = vim .keymap .set
5973
@@ -137,6 +151,10 @@ k('n', 'gd', function()
137151 vim .lsp .buf .definition ()
138152end , { desc = ' Terminate' })
139153
154+ k (' n' , ' <leader>tt' , function ()
155+ require (' fzf-lua' ).lsp_document_symbols ()
156+ end )
157+
140158k (' n' , ' <leader>m' , " <cmd>vnew<Cr><cmd>put = execute('messages')<Cr>" )
141159
142160k (' n' , ' <leader>nn' , ' <CMD>JavaRunnerRunMain<CR>' , { desc = ' Run main' })
0 commit comments