Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvim-tree support #30

Open
Hierosme opened this issue Dec 8, 2022 · 0 comments
Open

nvim-tree support #30

Hierosme opened this issue Dec 8, 2022 · 0 comments

Comments

@Hierosme
Copy link

Hierosme commented Dec 8, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant