Added zig lang support and in-terminal color highlighting for css

This commit is contained in:
Diego Miguel M. Villamil 2025-04-22 15:56:37 +08:00
parent 3fe704b752
commit 632929a1e0
1 changed files with 21 additions and 0 deletions

View File

@ -71,6 +71,9 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor. -- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10 vim.opt.scrolloff = 10
-- It was in the nvim-highlight-colors instructions for highlighting css colors
vim.opt.termguicolors = true
-- [[ Basic Keymaps ]] -- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()` -- See `:help vim.keymap.set()`
@ -373,6 +376,12 @@ require('lazy').setup({
}, },
}, },
{ 'Bilal2453/luvit-meta', lazy = true }, { 'Bilal2453/luvit-meta', lazy = true },
{
'brenoprata10/nvim-highlight-colors',
config = function()
require('nvim-highlight-colors').turnOn()
end,
},
{ {
-- Main LSP Configuration -- Main LSP Configuration
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
@ -381,6 +390,7 @@ require('lazy').setup({
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants { 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
'williamboman/mason-lspconfig.nvim', 'williamboman/mason-lspconfig.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim', 'WhoIsSethDaniel/mason-tool-installer.nvim',
'nvim-java/nvim-java',
-- Useful status updates for LSP. -- Useful status updates for LSP.
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})` -- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
@ -553,6 +563,7 @@ require('lazy').setup({
}, },
}, },
angularls = {}, angularls = {},
zls = {},
} }
-- Ensure the servers and tools above are installed -- Ensure the servers and tools above are installed
@ -581,6 +592,12 @@ require('lazy').setup({
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {}) server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
require('lspconfig')[server_name].setup(server) require('lspconfig')[server_name].setup(server)
end, end,
jdtls = function()
require('java').setup {}
require('lspconfig').jdtls.setup {}
end,
}, },
} }
end, end,
@ -630,6 +647,7 @@ require('lazy').setup({
-- --
-- You can use 'stop_after_first' to run the first available formatter from the list -- You can use 'stop_after_first' to run the first available formatter from the list
javascript = { 'prettierd', 'prettier', stop_after_first = true }, javascript = { 'prettierd', 'prettier', stop_after_first = true },
zig = { 'zig fmt' },
}, },
}, },
}, },
@ -748,6 +766,9 @@ require('lazy').setup({
{ name = 'luasnip' }, { name = 'luasnip' },
{ name = 'path' }, { name = 'path' },
}, },
formattting = {
format = require('nvim-highlight-colors').format,
},
} }
end, end,
}, },