added lsp-functionality with custom colors

This commit is contained in:
pr0c3550r 2023-01-22 17:42:07 +01:00
parent 7b8cd338db
commit f06f28643c
4 changed files with 102 additions and 4 deletions

View file

@ -1,5 +1,4 @@
-- setting colors
-- everforest
vim.api.nvim_set_var("everforest_background", "hard")
vim.api.nvim_set_var("everforest_transparent_background", "1")
@ -40,6 +39,15 @@ vim.api.nvim_set_hl(0, "VertSplit", {bg = "none", fg = "#1d2021"})
vim.api.nvim_set_hl(0, "Cursorline", {bg = "#141617"})
vim.api.nvim_set_hl(0, "CursorLineNr", {bold = true, bg = "#141617", fg = "#d8a657"})
-- color of Floats and FloatBorders
vim.api.nvim_set_hl(0, "NormalFloat", {bg = none, fg = none })
vim.api.nvim_set_hl(0, "FloatBorder", {bg = none, fg = "#d4be98"})
vim.api.nvim_set_hl(0, "DiagnosticFloatingWarn", {bg = none, fg = "#d8a657"})
vim.api.nvim_set_hl(0, "DiagnosticFloatingError", {bg = none, fg = "#ea6962"})
vim.api.nvim_set_hl(0, "DiagnosticFloatingHint", {bg = none, fg = "#a9b665"})
vim.api.nvim_set_hl(0, "DiagnosticFloatingInfo", {bg = none, fg = "#d4be98"})
-- transparent background in active, non active and at the end of buffer for colorschemes which does not support such options
-- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
-- vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })

View file

@ -28,9 +28,12 @@ return require('packer').startup(function(use)
use 'lukas-reineke/indent-blankline.nvim'
-- LSP
use {
{'williamboman/mason.nvim'},
{'williamboman/mason-lspconfig.nvim'},
{'neovim/nvim-lspconfig'},
}
-- Autocomplete
use 'neovim/nvim-lspconfig'
use {
'hrsh7th/nvim-cmp',
requires = {