doums / darcula

A Vim color scheme reproduction of the official JetBrains IDE Darcula theme
368 stars 59 forks source link

nvim-tree support #30

Open Hierosme opened 1 year ago

Hierosme commented 1 year ago

Hello, iḿ user of darcula theme and my config contain code for nvim-tree.

I suppose that the code require for nvim-tree support:

-- color management
vim.api.nvim_command("call darcula#Hi('NvimTreeSymlink', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeFolderName', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeRootFolder', darcula#palette.fg, darcula#palette.bg, 'bold')")
vim.api.nvim_command("call darcula#Hi('NvimTreeFolderIcon', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeEmptyFolderName', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeOpenedFolderName', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeExecFile', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeOpenedFile', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeSpecialFile', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeImageFile', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeMarkdownFile', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeIndentMarker', darcula#palette.fg, darcula#palette.bg, '')")
--
vim.api.nvim_command("call darcula#Hi('LspDiagnosticsError', darcula#palette.errorStripe, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('LspDiagnosticsWarning', darcula#palette.warnStripe, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('LspDiagnosticsInformation', darcula#palette.infoStripe, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('LspDiagnosticsHint', darcula#palette.hintStripe, darcula#palette.bg, '')")

-- vim.api.nvim_command("call darcula#Hi('NvimTreeLicenseIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeYamlIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeTomlIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeGitignoreIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeJsonIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
--
-- vim.api.nvim_command("call darcula#Hi('NvimTreeLuaIcon', darcula#palette.UIBlue, darcula#palette.bg, 'bold')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreePythonIcon', darcula#palette.UIBlue, darcula#palette.bg, '')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeShellIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeJavascriptIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeCIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeReactIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeHtmlIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeRustIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeVimIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('NvimTreeTypescriptIcon', darcula#palette.macroName, darcula#palette.bg, 'italic')")
--
vim.api.nvim_command("call darcula#Hi('NvimTreeGitDirty', darcula#palette.number, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeGitStaged', darcula#palette.number, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeGitMerge', darcula#palette.number, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeGitRenamed', darcula#palette.number, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeGitNew', darcula#palette.UIRed, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeGitDeleted', darcula#palette.ANSIDarkGray, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeGitIgnored', darcula#palette.ANSIDarkGray, darcula#palette.bg, '')")
--
-- NvimTreeWindowPicker
-- There are also links to normal bindings to style the tree itself.

vim.api.nvim_command("call darcula#Hi('NvimTreeCursorLine', darcula#palette.fg, darcula#palette.selection, 'bold')")
vim.api.nvim_command("call darcula#Hi('Normal', darcula#palette.fg, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('EndOfBuffer', darcula#palette.bg, darcula#palette.bg, '')")
-- vim.api.nvim_command("call darcula#Hi('CursorLine', darcula#palette.ANSIGray, darcula#palette.UIBlue, '')")
-- vim.api.nvim_command("call darcula#Hi('VertSplit', darcula#palette.macroName, darcula#palette.bg, 'italic')")
-- vim.api.nvim_command("call darcula#Hi('CursorColumn', darcula#palette.macroName, darcula#palette.bg, 'italic')")

-- There are also links for file highlight with git properties
-- These all link to there Git equivalent

vim.api.nvim_command("call darcula#Hi('NvimTreeFileDirty', darcula#palette.number, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeFileStaged', darcula#palette.number, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeFileMerge', darcula#palette.number, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeFileRenamed', darcula#palette.number, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeFileNew', darcula#palette.UIRed, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeFileDeleted', darcula#palette.ANSIDarkGray, darcula#palette.bg, '')")
vim.api.nvim_command("call darcula#Hi('NvimTreeFileIgnored', darcula#palette.ANSIDarkGray, darcula#palette.bg, '')")

If need i can make a PR (sorry i send it and i havent check for a PR)