nvim: colors
This commit is contained in:
parent
20a720b1a5
commit
2a4b38e2bf
1 changed files with 74 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
local M = {
|
local M = {
|
||||||
'gruvbox-community/gruvbox',
|
'gruvbox-community/gruvbox',
|
||||||
|
commit = 'f150aa7',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 999,
|
priority = 999,
|
||||||
}
|
}
|
||||||
|
@ -175,6 +176,16 @@ function M.config()
|
||||||
gr:hl('DiagnosticVirtualTextHint', 'hint', nil, { 'italic' })
|
gr:hl('DiagnosticVirtualTextHint', 'hint', nil, { 'italic' })
|
||||||
gr:hl('DiagnosticVirtualTextOk', 'ok', nil, { 'italic' })
|
gr:hl('DiagnosticVirtualTextOk', 'ok', nil, { 'italic' })
|
||||||
|
|
||||||
|
gr:hl('Function', 'light1', nil, {})
|
||||||
|
gr:hl('Operator', 'light1', nil, {})
|
||||||
|
|
||||||
|
gr:hl('Bold', nil, nil, { 'bold' }, {})
|
||||||
|
gr:hl('Strikethrough', nil, nil, { 'strikethrough' }, {})
|
||||||
|
gr:hl('Underlined', nil, nil, { 'underline' }, {})
|
||||||
|
|
||||||
|
gr:hl('@text.uri', 'bright_blue', nil, {'underline'}, {})
|
||||||
|
gr:hl('@text.emphasis', nil, nil, {'italic'}, {})
|
||||||
|
|
||||||
-- gr:hl('GitSignsAddLine', nil, 'faded_green', {})
|
-- gr:hl('GitSignsAddLine', nil, 'faded_green', {})
|
||||||
-- vim.fn.sign_define('GitSignsAdd', { text = '│', texthl = 'GitSignsAdd', linehl = 'GitSignsAddLine', culhl='CursorLine' })
|
-- vim.fn.sign_define('GitSignsAdd', { text = '│', texthl = 'GitSignsAdd', linehl = 'GitSignsAddLine', culhl='CursorLine' })
|
||||||
end,
|
end,
|
||||||
|
@ -201,3 +212,66 @@ function M.config()
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
||||||
|
-- return {
|
||||||
|
-- 'ellisonleao/gruvbox.nvim',
|
||||||
|
-- lazy = false,
|
||||||
|
-- priority = 999,
|
||||||
|
-- config = function()
|
||||||
|
-- local g = require('gruvbox')
|
||||||
|
-- local p = require('gruvbox.palette').colors
|
||||||
|
-- local overrides = {
|
||||||
|
-- Directory = { link = 'GruvboxGreen' },
|
||||||
|
-- ['@variable'] = { link = 'GruvboxBlue' },
|
||||||
|
-- Function = { link = 'GruvboxFg1' },
|
||||||
|
-- Operator = { link = 'GruvboxFg1' },
|
||||||
|
-- IndentBlanklineContextChar = { fg = p.neutral_orange },
|
||||||
|
--
|
||||||
|
-- NeoTreeGitAdded = { link = 'GruvboxGreen' },
|
||||||
|
-- NeoTreeGitDeleted = { link = 'GruvboxRed' },
|
||||||
|
-- NeoTreeGitModified = { link = 'GruvboxOrange' },
|
||||||
|
-- NeoTreeGitUntracked = { link = 'GruvboxOrange' },
|
||||||
|
--
|
||||||
|
-- CmpItemAbbrMatch = { link = 'GruvboxAquaBold' },
|
||||||
|
-- CmpItemAbbrMatchFuzzy = { link = 'GruvboxAquaBold' },
|
||||||
|
--
|
||||||
|
-- CmpItemKindClass = { link = 'Identifier' },
|
||||||
|
-- CmpItemKindConstant = { link = 'Constant' },
|
||||||
|
-- CmpItemKindConstructor = { link = 'Special' },
|
||||||
|
-- CmpItemKindEnum = { link = 'Identifier' },
|
||||||
|
-- CmpItemKindEnumMember = { link = 'String' },
|
||||||
|
-- CmpItemKindField = { link = 'Identifier' },
|
||||||
|
-- CmpItemKindFile = { link = 'File' },
|
||||||
|
-- CmpItemKindFolder = { link = 'Directory' },
|
||||||
|
-- CmpItemKindFunction = { link = 'Function' },
|
||||||
|
-- CmpItemKindInterface = { link = 'Identifier' },
|
||||||
|
-- CmpItemKindKeyword = { link = 'Keyword' },
|
||||||
|
-- CmpItemKindMethod = { link = 'Function' },
|
||||||
|
-- CmpItemKindModule = { link = 'Include' },
|
||||||
|
-- CmpItemKindProperty = { link = 'Identifier' },
|
||||||
|
-- CmpItemKindSnippet = { link = 'Special' },
|
||||||
|
-- CmpItemKindStruct = { link = 'Identifier' },
|
||||||
|
-- CmpItemKindText = { link = 'String' },
|
||||||
|
-- CmpItemKindTypeParameter = { link = 'Identifier' },
|
||||||
|
-- CmpItemKindValue = { link = 'String' },
|
||||||
|
-- CmpItemKindVariable = { link = 'Identifier' },
|
||||||
|
-- }
|
||||||
|
--
|
||||||
|
-- local augr = vim.api.nvim_create_augroup('config_colorscheme', {});
|
||||||
|
-- vim.api.nvim_create_autocmd('ColorschemePre', {
|
||||||
|
-- group = augr,
|
||||||
|
-- pattern = '*',
|
||||||
|
-- callback = function()
|
||||||
|
-- vim.fn.sign_define('DiagnosticSignError', { text = ' ', texthl = 'DiagnosticSignError' })
|
||||||
|
-- vim.fn.sign_define('DiagnosticSignWarn', { text = ' ', texthl = 'DiagnosticSignWarn' })
|
||||||
|
-- vim.fn.sign_define('DiagnosticSignInfo', { text = ' ', texthl = 'DiagnosticSignInfo' })
|
||||||
|
-- vim.fn.sign_define('DiagnosticSignHint', { text = '', texthl = 'DiagnosticSignHint' })
|
||||||
|
-- end,
|
||||||
|
-- })
|
||||||
|
--
|
||||||
|
-- g.setup({ overrides = overrides })
|
||||||
|
--
|
||||||
|
-- vim.cmd.colorscheme('gruvbox')
|
||||||
|
-- end,
|
||||||
|
-- }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue