return {
{
'neovim/nvim-lspconfig',
- event = { 'BufReadPre', 'BufNewFile' },
+ -- event = { 'BufReadPre', 'BufNewFile' },
+ lazy = false,
dependencies = {
'nvim-cmp',
'nvim-treesitter',
'Maan2003/lsp_lines.nvim',
- { 'williamboman/mason.nvim', build = ':MasonUpdate' },
- 'williamboman/mason-lspconfig',
+ { 'williamboman/mason.nvim', build = ':MasonUpdate' },
+ { 'williamboman/mason-lspconfig', version = '1.3.0' },
},
config = function()
- local lspconfig = require('lspconfig')
require('mason').setup()
require('mason-lspconfig').setup({
automatic_installation = true,
- ensure_installed = {}
+ ensure_installed = { 'rust_analyzer' }
})
- require('mason-lspconfig').setup_handlers({
- function(server_name)
- lspconfig[server_name].setup({})
- end
- })
+ -- local handlers = {
+ -- function(server_name)
+ -- require("lspconfig")[server_name].setup({})
+ -- end,
+ -- }
+
+ -- require('mason-lspconfig').setup_handlers(handlers)
+
+ -- docker_compose_language_service, jsonls, marksman, yamlls, awk_ls, solargraph, bashls, dockerls, clangd, lua_ls, vimls, rust_analyzer, html, cssls
+
+ require('lspconfig').docker_compose_language_service.setup({})
+ require('lspconfig').jsonls.setup({})
+ require('lspconfig').marksman.setup({})
+ require('lspconfig').yamlls.setup({})
+ require('lspconfig').awk_ls.setup({})
+ require('lspconfig').solargraph.setup({})
+ require('lspconfig').bashls.setup({})
+ require('lspconfig').dockerls.setup({})
+ require('lspconfig').clangd.setup({})
+ require('lspconfig').lua_ls.setup({})
+ require('lspconfig').vimls.setup({})
+ require('lspconfig').rust_analyzer.setup({})
+ require('lspconfig').html.setup({})
+ require('lspconfig').cssls.setup({})
local border = {
{ "┏", "FloatBorder" },
{
'jay-babu/mason-null-ls.nvim',
- event = { 'BufReadPre', 'BufNewFile' },
+ lazy = { 'BufReadPre', 'BufNewFile' },
dependencies = {
'mason.nvim',
{
local c_yellow = "3"
local c_blue = "4"
local c_purple = "5"
-local c_pink = "6"
+local c_cyan = "6"
local c_white = "7"
local c_grey = "8"
local c_dark_red = "9"
local c_dark_yellow = "11"
local c_dark_blue = "12"
local c_dark_purple = "13"
-local c_dark_pink = "14"
+local c_dark_cyan = "14"
vim.g.terminal_color_0 = black
vim.g.terminal_color_1 = red
highlight("LineNr", yellow, black, c_yellow, c_black, nil, nil)
highlight("CursorLineNr", red, black, c_red, c_black, bold, nil)
highlight("MatchParen", nil, grey, nil, c_grey, bold, nil)
-highlight("SpecialKey", cyan, nil, c_pink, nil, nil, nil)
-highlight("NonText", cyan, black, c_pink, c_black, nil, nil)
+highlight("SpecialKey", cyan, nil, c_cyan, nil, nil, nil)
+highlight("NonText", cyan, black, c_cyan, c_black, nil, nil)
highlight("Search", nil, green, nil, c_green, nil, nil)
highlight("Visual", nil, dark_grey, nil, c_grey, nil, nil)
highlight("Folded", blue, dark_grey, c_blue, c_grey, nil, nil)
-- Spelling
highlight("SpellBad", red, black, c_red, c_black, underline, red)
-highlight("SpellCap", cyan, black, c_pink, c_black, underline, cyan)
+highlight("SpellCap", cyan, black, c_cyan, c_black, underline, cyan)
highlight("SpellRare", green, black, c_green, c_black, underline, green)
highlight("SpellLocal", magenta, black, c_purple, c_black, underline, magenta)
highlight("CmpItemAbbrMatch", dark_blue, "NONE", c_dark_blue, "NONE", nil, nil)
highlight("CmpItemAbbrMatchFuzzy", blue, "NONE", c_blue, "NONE", nil, nil)
highlight("CmpItemKindVariable", green, "NONE", c_green, "NONE", nil, nil)
-highlight("CmpItemKindInterface", dark_cyan, "NONE", c_dark_pink, "NONE", nil, nil)
-highlight("CmpItemKindText", cyan, "NONE", c_pink, "NONE", nil, nil)
+highlight("CmpItemKindInterface", dark_cyan, "NONE", c_dark_cyan, "NONE", nil, nil)
+highlight("CmpItemKindText", cyan, "NONE", c_cyan, "NONE", nil, nil)
highlight("CmpItemKindFunction", magenta, "NONE", c_purple, "NONE", nil, nil)
highlight("CmpItemKindMethod", magenta, "NONE", c_purple, "NONE", nil, nil)
highlight("CmpItemKindKeyword", dark_yellow, "NONE", c_dark_yellow, "NONE", nil, nil)
-- Diff
highlight("DiffAdd", black, green, c_black, c_green, nil, nil)
-highlight("DiffText", black, cyan, c_black, c_pink, nil, nil)
+highlight("DiffText", black, cyan, c_black, c_cyan, nil, nil)
highlight("DiffDelete", black, red, c_black, c_red, nil, nil)
highlight("DiffChange", black, magenta, c_black, c_purple, nil, nil)
highlight("LazyButtonActive", white, black, c_white, c_black, bold, nil)
highlight("LazyH1", white, black, c_white, c_black, bold, nil)
+-- completion
+highlight("CmpItemAbbrDefault", white, black, c_white, c_black, nil, nil)
+highlight("CmpItemMenuDefault", white, black, c_white, c_black, nil, nil)
+highlight("CmpItemAbbrDeprecatedDefault", white, black, c_white, c_black, nil, nil)
+highlight("CmpItemAbbrMatchDefault", dark_blue, black, c_white, c_dark_blue, nil, nil)
+highlight("CmpItemAbbrMatchFuzzyDefault", blue, black, c_white, c_blue, nil, nil)
+highlight("CmpItemKindDefault", cyan, black, c_white, c_cyan, nil, nil)
+
-- Lualine
highlight("lualine_a_visual", black, yellow, c_black, c_yellow, nil, nil)
highlight("lualine_b_visual", yellow, black, c_yellow, c_black, nil, nil)
highlight("lualine_a_insert", black, green, c_black, c_green, nil, nil)
highlight("lualine_b_insert", green, black, c_green, c_black, nil, nil)
highlight("lualine_c_insert", grey, black, c_grey, c_black, nil, nil)
-highlight("lualine_a_terminal", black, cyan, c_black, c_pink, nil, nil)
-highlight("lualine_b_terminal", cyan, black, c_pink, c_black, nil, nil)
+highlight("lualine_a_terminal", black, cyan, c_black, c_cyan, nil, nil)
+highlight("lualine_b_terminal", cyan, black, c_cyan, c_black, nil, nil)
highlight("lualine_c_terminal", grey, black, c_grey, c_black, nil, nil)
highlight("lualine_a_inactive", grey, black, c_grey, c_black, nil, nil)
highlight("lualine_b_inactive", grey, black, c_grey, c_black, nil, nil)