@@ -71,6 +71,9 @@ vim.opt.cursorline = true
7171-- Minimal number of screen lines to keep above and below the cursor.
7272vim .opt .scrolloff = 10
7373
74+ -- It was in the nvim-highlight-colors instructions for highlighting css colors
75+ vim .opt .termguicolors = true
76+
7477-- [[ Basic Keymaps ]]
7578-- See `:help vim.keymap.set()`
7679
@@ -373,6 +376,12 @@ require('lazy').setup({
373376 },
374377 },
375378 { ' Bilal2453/luvit-meta' , lazy = true },
379+ {
380+ ' brenoprata10/nvim-highlight-colors' ,
381+ config = function ()
382+ require (' nvim-highlight-colors' ).turnOn ()
383+ end ,
384+ },
376385 {
377386 -- Main LSP Configuration
378387 ' neovim/nvim-lspconfig' ,
@@ -381,6 +390,7 @@ require('lazy').setup({
381390 { ' williamboman/mason.nvim' , config = true }, -- NOTE: Must be loaded before dependants
382391 ' williamboman/mason-lspconfig.nvim' ,
383392 ' WhoIsSethDaniel/mason-tool-installer.nvim' ,
393+ ' nvim-java/nvim-java' ,
384394
385395 -- Useful status updates for LSP.
386396 -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
@@ -553,6 +563,7 @@ require('lazy').setup({
553563 },
554564 },
555565 angularls = {},
566+ zls = {},
556567 }
557568
558569 -- Ensure the servers and tools above are installed
@@ -581,6 +592,12 @@ require('lazy').setup({
581592 server .capabilities = vim .tbl_deep_extend (' force' , {}, capabilities , server .capabilities or {})
582593 require (' lspconfig' )[server_name ].setup (server )
583594 end ,
595+
596+ jdtls = function ()
597+ require (' java' ).setup {}
598+
599+ require (' lspconfig' ).jdtls .setup {}
600+ end ,
584601 },
585602 }
586603 end ,
@@ -630,6 +647,7 @@ require('lazy').setup({
630647 --
631648 -- You can use 'stop_after_first' to run the first available formatter from the list
632649 javascript = { ' prettierd' , ' prettier' , stop_after_first = true },
650+ zig = { ' zig fmt' },
633651 },
634652 },
635653 },
@@ -748,6 +766,9 @@ require('lazy').setup({
748766 { name = ' luasnip' },
749767 { name = ' path' },
750768 },
769+ formattting = {
770+ format = require (' nvim-highlight-colors' ).format ,
771+ },
751772 }
752773 end ,
753774 },
0 commit comments