-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Absolutely! There are two settings to control the borders. First, in your call to setup you can change the style. The default is "NC", but you may want to change it to "rounded" to match Telescope's default: require("neo-tree").setup({
popup_border_style = "rounded"
}) Second, the highlight group used is called NeoTreeFloatBorder, which is linked to FloatBorder by default. If you set either one of those highlight groups, it will change the color of your borders. You could just link it to Telescope's highlight group somewhere in your vim config: vim.cmd([[highlight link NeoTreeFloatBorder TelescopeBorder]])
require("neo-tree").setup({
popup_border_style = "rounded"
}) |
Beta Was this translation helpful? Give feedback.
-
The title bar highlight group is called You can add a custom command and mapping to close it with q, I'll post that example later. The bug you are hitting was just fixed this morning, it should go away if you update. |
Beta Was this translation helpful? Give feedback.
-
Here's how to add a custom close command: require("neo-tree").setup({
filesystem = {
window = {
mappings = {
["q"] = "close_window"
},
},
commands = {
close_window = function(state)
require("neo-tree").close(state.name)
end,
},
}) |
Beta Was this translation helpful? Give feedback.
-
Hi again, thank you for your help everything works except the title text color, even after setting this:
I would be grateful for pointers fixing this. |
Beta Was this translation helpful? Give feedback.
-
What I can tell you is that the NeoTreeTitleBar group is only used when the border style is set to "NC". I'm not exactly sure what the title text will be otherwise, but I can tell you I am using the NuiPopup to render this: https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup My guess is that the text is just defaulting to Normal (or NormalNC, if you use that). You might want to just set the NeoTreeFloatBorder background to match your Normal Background to make everything blend in, or just set that background to NONE to clear it. |
Beta Was this translation helpful? Give feedback.
What I can tell you is that the NeoTreeTitleBar group is only used when the border style is set to "NC". I'm not exactly sure what the title text will be otherwise, but I can tell you I am using the NuiPopup to render this: https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup
My guess is that the text is just defaulting to Normal (or NormalNC, if you use that). You might want to just set the NeoTreeFloatBorder background to match your Normal Background to make everything blend in, or just set that background to NONE to clear it.