Added zig lang support and in-terminal color highlighting for css
This commit is contained in:
parent
3fe704b752
commit
632929a1e0
21
init.lua
21
init.lua
|
@ -71,6 +71,9 @@ vim.opt.cursorline = true
|
|||
-- Minimal number of screen lines to keep above and below the cursor.
|
||||
vim.opt.scrolloff = 10
|
||||
|
||||
-- It was in the nvim-highlight-colors instructions for highlighting css colors
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
-- [[ Basic Keymaps ]]
|
||||
-- See `:help vim.keymap.set()`
|
||||
|
||||
|
@ -373,6 +376,12 @@ require('lazy').setup({
|
|||
},
|
||||
},
|
||||
{ 'Bilal2453/luvit-meta', lazy = true },
|
||||
{
|
||||
'brenoprata10/nvim-highlight-colors',
|
||||
config = function()
|
||||
require('nvim-highlight-colors').turnOn()
|
||||
end,
|
||||
},
|
||||
{
|
||||
-- Main LSP Configuration
|
||||
'neovim/nvim-lspconfig',
|
||||
|
@ -381,6 +390,7 @@ require('lazy').setup({
|
|||
{ 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
'WhoIsSethDaniel/mason-tool-installer.nvim',
|
||||
'nvim-java/nvim-java',
|
||||
|
||||
-- Useful status updates for LSP.
|
||||
-- NOTE: `opts = {}` is the same as calling `require('fidget').setup({})`
|
||||
|
@ -553,6 +563,7 @@ require('lazy').setup({
|
|||
},
|
||||
},
|
||||
angularls = {},
|
||||
zls = {},
|
||||
}
|
||||
|
||||
-- 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 {})
|
||||
require('lspconfig')[server_name].setup(server)
|
||||
end,
|
||||
|
||||
jdtls = function()
|
||||
require('java').setup {}
|
||||
|
||||
require('lspconfig').jdtls.setup {}
|
||||
end,
|
||||
},
|
||||
}
|
||||
end,
|
||||
|
@ -630,6 +647,7 @@ require('lazy').setup({
|
|||
--
|
||||
-- You can use 'stop_after_first' to run the first available formatter from the list
|
||||
javascript = { 'prettierd', 'prettier', stop_after_first = true },
|
||||
zig = { 'zig fmt' },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -748,6 +766,9 @@ require('lazy').setup({
|
|||
{ name = 'luasnip' },
|
||||
{ name = 'path' },
|
||||
},
|
||||
formattting = {
|
||||
format = require('nvim-highlight-colors').format,
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue