From cbb700f3f58d224645a23bc9ceed049936a362ce Mon Sep 17 00:00:00 2001 From: Lucas Garcia Rubio Date: Mon, 3 Mar 2025 18:07:39 -0300 Subject: [PATCH 1/2] =?UTF-8?q?adiciona=20primeiras=20configura=C3=A7?= =?UTF-8?q?=C3=B5es=20para=20neotest-maven?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/custom/plugins/neotest-java.lua | 52 ++++++++++++++-------------- lua/custom/plugins/neotest-maven.lua | 31 +++++++++++++++++ 2 files changed, 57 insertions(+), 26 deletions(-) create mode 100644 lua/custom/plugins/neotest-maven.lua diff --git a/lua/custom/plugins/neotest-java.lua b/lua/custom/plugins/neotest-java.lua index 914dbbbd..ba2a059e 100644 --- a/lua/custom/plugins/neotest-java.lua +++ b/lua/custom/plugins/neotest-java.lua @@ -1,28 +1,28 @@ return { - { - 'rcasia/neotest-java', - ft = 'java', - dependencies = { - 'mfussenegger/nvim-jdtls', - 'mfussenegger/nvim-dap', -- for the debugger - 'rcarriga/nvim-dap-ui', -- recommended - 'theHamsta/nvim-dap-virtual-text', -- recommended - }, - }, - { - 'nvim-neotest/neotest', - dependencies = { - 'rcasia/neotest-java', - 'nvim-neotest/nvim-nio', - 'nvim-lua/plenary.nvim', - 'nvim-treesitter/nvim-treesitter', - }, - init = function() - require('neotest').setup { - adapters = { - require 'neotest-java' {}, - }, - } - end, - }, + --{ + -- 'rcasia/neotest-java', + -- ft = 'java', + -- dependencies = { + -- 'mfussenegger/nvim-jdtls', + -- 'mfussenegger/nvim-dap', -- for the debugger + -- 'rcarriga/nvim-dap-ui', -- recommended + -- 'theHamsta/nvim-dap-virtual-text', -- recommended + -- }, + --}, + --{ + -- 'nvim-neotest/neotest', + -- dependencies = { + -- 'rcasia/neotest-java', + -- 'nvim-neotest/nvim-nio', + -- 'nvim-lua/plenary.nvim', + -- 'nvim-treesitter/nvim-treesitter', + -- }, + -- init = function() + -- require('neotest').setup { + -- adapters = { + -- require 'neotest-java' {}, + -- }, + -- } + -- end, + --}, } diff --git a/lua/custom/plugins/neotest-maven.lua b/lua/custom/plugins/neotest-maven.lua new file mode 100644 index 00000000..27c9e0ac --- /dev/null +++ b/lua/custom/plugins/neotest-maven.lua @@ -0,0 +1,31 @@ +return { + { + dir = '~/Repositories/pessoal/plugins/neotest-maven', + name = 'neotest-maven', + ft = 'java', + dependencies = { + 'mfussenegger/nvim-jdtls', + 'mfussenegger/nvim-dap', -- for the debugger + 'rcarriga/nvim-dap-ui', -- recommended + 'theHamsta/nvim-dap-virtual-text', -- recommended + 'nvim-lua/plenary.nvim', + 'nvim-treesitter/nvim-treesitter', + }, + }, + { + 'nvim-neotest/neotest', + dependencies = { + 'neotest-maven', + 'nvim-neotest/nvim-nio', + 'nvim-lua/plenary.nvim', + 'nvim-treesitter/nvim-treesitter', + }, + init = function() + require('neotest').setup { + adapters = { + require 'neotest-maven', + }, + } + end, + }, +} From 1f954d8e31b31eacbbb8410468a2d368609e0a63 Mon Sep 17 00:00:00 2001 From: Lucas Garcia Rubio Date: Sun, 23 Mar 2025 19:23:07 -0300 Subject: [PATCH 2/2] =?UTF-8?q?configura=20navega=C3=A7=C3=A3o=20em=20docs?= =?UTF-8?q?=20dentro=20de=20luasnip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 15 +++------------ lazy-lock.json | 2 +- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/init.lua b/init.lua index a3cc308f..cf29bff4 100644 --- a/init.lua +++ b/init.lua @@ -684,15 +684,6 @@ require('lazy').setup({ }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } - -- Enable navigation in flutuate windows - local cmp = require 'cmp' - cmp.setup { - mapping = { - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), - }, - } - require('mason-lspconfig').setup { ensure_installed = { 'jdtls' }, handlers = { @@ -818,9 +809,9 @@ require('lazy').setup({ -- Select the [p]revious item [''] = cmp.mapping.select_prev_item(), - -- Scroll the documentation window [b]ack / [f]orward - [''] = cmp.mapping.scroll_docs(-4), - [''] = cmp.mapping.scroll_docs(4), + -- Scroll the documentation window + [''] = cmp.mapping.scroll_docs(-4), + [''] = cmp.mapping.scroll_docs(4), -- Accept ([y]es) the completion. -- This will auto-import if your LSP supports it. diff --git a/lazy-lock.json b/lazy-lock.json index 31441747..e777f1f4 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,6 +1,6 @@ { "LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" }, - "auto-session": { "branch": "main", "commit": "9c3f977aafb56bd73ba0d082c4dcbdba5666faf3" }, + "auto-session": { "branch": "main", "commit": "d26acded2f22c2dff9dfb9f479e62ab24386ceef" }, "cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },