changes colors and icons back to working state

This commit is contained in:
xesc 2023-12-10 20:01:00 +01:00
parent 7e5c846bc4
commit b21a66b538
2 changed files with 12 additions and 14 deletions

View file

@ -4,7 +4,7 @@ return {
-- event = "BufReadPre", -- event = "BufReadPre",
config = function() config = function()
require('lspconfig.ui.windows').default_options.border = 'rounded' require('lspconfig.ui.windows').default_options.border = 'rounded'
vim.api.nvim_set_hl(0, "LspInfoBorder", { bg = none, fg = "#d4be98" }) vim.api.nvim_set_hl(0, "LspInfoBorder", { bg = none, fg = "#9da9a0" })
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
vim.keymap.set('n', '<space>cd', vim.diagnostic.open_float, opts) vim.keymap.set('n', '<space>cd', vim.diagnostic.open_float, opts)
vim.keymap.set('n', '<space>cl', "<cmd>LspInfo<cr>", opts) vim.keymap.set('n', '<space>cl', "<cmd>LspInfo<cr>", opts)
@ -38,9 +38,7 @@ return {
vim.keymap.set('v', '<space>cf', function() vim.lsp.buf.format { async = true } end, bufopts) vim.keymap.set('v', '<space>cf', function() vim.lsp.buf.format { async = true } end, bufopts)
end end
local signs = { Error = "", Warn = "", Hint = "", Info = "" } local signs = { Error = "󰈸 ", Warn = "", Hint = "󰌶 ", Info = "" }
-- local signs = { Error = "✘ ", Warn = " ", Hint = " ", Info = " " }
-- local signs = { Error = "✘ ", Warn = "⚠ ", Hint = " ", Info = " " } -- Unicode
for type, icon in pairs(signs) do for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl }) vim.fn.sign_define(hl, { text = icon, texthl = hl })
@ -63,7 +61,7 @@ return {
virtual_text = { virtual_text = {
prefix = '', -- Could be '●', '■', 'x', '▎' prefix = '', -- Could be '●', '■', 'x', '▎'
}, },
update_in_insert = true update_in_insert = true,
}) })
-- LSP settings (for overriding per client) -- LSP settings (for overriding per client)
@ -83,7 +81,7 @@ return {
icons = { icons = {
package_installed = "", package_installed = "",
package_pending = "", package_pending = "",
package_uninstalled = "" package_uninstalled = ""
} }
} }
}) })

View file

@ -8,14 +8,14 @@ return {
"rafamadriz/friendly-snippets", "rafamadriz/friendly-snippets",
config = function() config = function()
require("luasnip.loaders.from_vscode").lazy_load() require("luasnip.loaders.from_vscode").lazy_load()
vim.api.nvim_set_hl(0, "PmenuSel", { fg = 'NONE', bg = '#141617' }) vim.api.nvim_set_hl(0, "PmenuSel", { fg = 'NONE', bg = '#272e33' })
vim.api.nvim_set_hl(0, "Pmenu", { fg = 'NONE', bg = '#1d2021' }) vim.api.nvim_set_hl(0, "Pmenu", { fg = 'NONE', bg = '#1e2326' })
vim.api.nvim_set_hl(0, "CmpItemMenu", { fg = 'NONE', bg = '#141617' }) vim.api.nvim_set_hl(0, "CmpItemMenu", { fg = 'NONE', bg = '#272e33' })
vim.api.nvim_set_hl(0, "CmpItemMenuDefault", { fg = 'NONE', bg = '#141617' }) vim.api.nvim_set_hl(0, "CmpItemMenuDefault", { fg = 'NONE', bg = '#272e33' })
vim.api.nvim_set_hl(0, "CmpItemKindFunction", { fg = '#d3869b', bg = 'NONE', italic = true }) vim.api.nvim_set_hl(0, "CmpItemKindFunction", { fg = '#d699b6', bg = 'NONE', italic = true })
vim.api.nvim_set_hl(0, "CmpItemKindSnippet", { fg = '#d8a657', bg = 'NONE', italic = true }) vim.api.nvim_set_hl(0, "CmpItemKindSnippet", { fg = '#dbbc7f', bg = 'NONE', italic = true })
vim.api.nvim_set_hl(0, "CmpItemKindText", { fg = '#ddc7a1', bg = 'NONE', italic = true }) vim.api.nvim_set_hl(0, "CmpItemKindText", { fg = '#9da9a0', bg = 'NONE', italic = true })
vim.api.nvim_set_hl(0, "CmpItemKindVariable", { fg = '#7daea3', bg = 'NONE', italic = true }) vim.api.nvim_set_hl(0, "CmpItemKindVariable", { fg = '#7fbbb3', bg = 'NONE', italic = true })
end, end,
}, },
}, },