Merge pull request #1 from lucas-garcia-rubio/neovim-maven
Neovim maven
This commit is contained in:
commit
6c224bfb1f
15
init.lua
15
init.lua
|
@ -684,15 +684,6 @@ require('lazy').setup({
|
||||||
})
|
})
|
||||||
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
require('mason-tool-installer').setup { ensure_installed = ensure_installed }
|
||||||
|
|
||||||
-- Enable navigation in flutuate windows
|
|
||||||
local cmp = require 'cmp'
|
|
||||||
cmp.setup {
|
|
||||||
mapping = {
|
|
||||||
['<C-k>'] = cmp.mapping.scroll_docs(-4),
|
|
||||||
['<C-j>'] = cmp.mapping.scroll_docs(4),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
require('mason-lspconfig').setup {
|
require('mason-lspconfig').setup {
|
||||||
ensure_installed = { 'jdtls' },
|
ensure_installed = { 'jdtls' },
|
||||||
handlers = {
|
handlers = {
|
||||||
|
@ -818,9 +809,9 @@ require('lazy').setup({
|
||||||
-- Select the [p]revious item
|
-- Select the [p]revious item
|
||||||
['<C-p>'] = cmp.mapping.select_prev_item(),
|
['<C-p>'] = cmp.mapping.select_prev_item(),
|
||||||
|
|
||||||
-- Scroll the documentation window [b]ack / [f]orward
|
-- Scroll the documentation window
|
||||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
['<C-k>'] = cmp.mapping.scroll_docs(-4),
|
||||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
['<C-j>'] = cmp.mapping.scroll_docs(4),
|
||||||
|
|
||||||
-- Accept ([y]es) the completion.
|
-- Accept ([y]es) the completion.
|
||||||
-- This will auto-import if your LSP supports it.
|
-- This will auto-import if your LSP supports it.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
|
"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-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||||
|
|
|
@ -1,28 +1,28 @@
|
||||||
return {
|
return {
|
||||||
{
|
--{
|
||||||
'rcasia/neotest-java',
|
-- 'rcasia/neotest-java',
|
||||||
ft = 'java',
|
-- ft = 'java',
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
'mfussenegger/nvim-jdtls',
|
-- 'mfussenegger/nvim-jdtls',
|
||||||
'mfussenegger/nvim-dap', -- for the debugger
|
-- 'mfussenegger/nvim-dap', -- for the debugger
|
||||||
'rcarriga/nvim-dap-ui', -- recommended
|
-- 'rcarriga/nvim-dap-ui', -- recommended
|
||||||
'theHamsta/nvim-dap-virtual-text', -- recommended
|
-- 'theHamsta/nvim-dap-virtual-text', -- recommended
|
||||||
},
|
-- },
|
||||||
},
|
--},
|
||||||
{
|
--{
|
||||||
'nvim-neotest/neotest',
|
-- 'nvim-neotest/neotest',
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
'rcasia/neotest-java',
|
-- 'rcasia/neotest-java',
|
||||||
'nvim-neotest/nvim-nio',
|
-- 'nvim-neotest/nvim-nio',
|
||||||
'nvim-lua/plenary.nvim',
|
-- 'nvim-lua/plenary.nvim',
|
||||||
'nvim-treesitter/nvim-treesitter',
|
-- 'nvim-treesitter/nvim-treesitter',
|
||||||
},
|
-- },
|
||||||
init = function()
|
-- init = function()
|
||||||
require('neotest').setup {
|
-- require('neotest').setup {
|
||||||
adapters = {
|
-- adapters = {
|
||||||
require 'neotest-java' {},
|
-- require 'neotest-java' {},
|
||||||
},
|
-- },
|
||||||
}
|
-- }
|
||||||
end,
|
-- end,
|
||||||
},
|
--},
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue