diff --git a/ftplugin/java.lua b/ftplugin/java.lua index e47a9ab6..2465e967 100644 --- a/ftplugin/java.lua +++ b/ftplugin/java.lua @@ -39,7 +39,8 @@ local config = { '-Dlog.protocol=true', '-Dlog.level=ALL', '-javaagent:' .. home .. '/.local/share/nvim/mason/share/jdtls/lombok.jar', - '-Xmx4g', + '-Xms4g', + '-Xmx8g', '--add-modules=ALL-SYSTEM', '--add-opens', 'java.base/java.util=ALL-UNNAMED', diff --git a/init.lua b/init.lua index 99952bbc..1aa5f654 100644 --- a/init.lua +++ b/init.lua @@ -785,6 +785,7 @@ require('lazy').setup({ -- into multiple repos for maintenance purposes. 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-path', + 'Jezda1337/nvim-html-css', }, config = function() -- See `:help cmp` @@ -861,7 +862,21 @@ require('lazy').setup({ { name = 'nvim_lsp' }, { name = 'luasnip' }, { name = 'path' }, - { name = 'codeium' }, + { + name = 'html-css', + option = { + enable_on = { 'html' }, -- html is enabled by default + notify = false, + documentation = { + auto_show = true, -- show documentation on select + }, + -- add any external scss like one below + style_sheets = { + 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css', + 'https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css', + }, + }, + }, }, } end, diff --git a/lazy-lock.json b/lazy-lock.json index 1248c5e9..039f2119 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -27,6 +27,7 @@ "nvim-dap-go": { "branch": "main", "commit": "8763ced35b19c8dc526e04a70ab07c34e11ad064" }, "nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "df66808cd78b5a97576bbaeee95ed5ca385a9750" }, + "nvim-html-css": { "branch": "main", "commit": "fa7e2da75edfd3d110fc8d4f8e5215b5de56ff42" }, "nvim-jdtls": { "branch": "master", "commit": "2f7bff9b8d2ee1918b36ca55f19547d9d335a268" }, "nvim-lint": { "branch": "master", "commit": "6e9dd545a1af204c4022a8fcd99727ea41ffdcc8" }, "nvim-lspconfig": { "branch": "master", "commit": "919f83ef8169d11eabd921a4cbda4fc1ba12f123" }, diff --git a/lua/custom/plugins/codeium.lua b/lua/custom/plugins/codeium.lua deleted file mode 100644 index 317aab35..00000000 --- a/lua/custom/plugins/codeium.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - 'Exafunction/codeium.nvim', - dependencies = { - 'nvim-lua/plenary.nvim', - 'hrsh7th/nvim-cmp', - }, - config = function() - require('codeium').setup { - enable_cmp_source = false, -- disabled because I only want to use virtual text - virtual_text = { - enabled = true, - }, - } - end, -} diff --git a/lua/custom/plugins/neotest-maven.lua b/lua/custom/plugins/neotest-maven.lua index 27c9e0ac..1b65bec8 100644 --- a/lua/custom/plugins/neotest-maven.lua +++ b/lua/custom/plugins/neotest-maven.lua @@ -1,5 +1,6 @@ return { { + --'lucas-garcia-rubio/neotest-maven', dir = '~/Repositories/pessoal/plugins/neotest-maven', name = 'neotest-maven', ft = 'java', @@ -11,6 +12,14 @@ return { 'nvim-lua/plenary.nvim', 'nvim-treesitter/nvim-treesitter', }, + config = function() + local function neotest_output_and_switch() + require('neotest').output.open { enter = true } + end + + -- Set key mapping for the function + vim.keymap.set('n', 'lw', neotest_output_and_switch, { desc = 'Neotest output and enter its window' }) + end, }, { 'nvim-neotest/neotest',