Closed anurag3301 closed 1 year ago
-- Material Theme config
vim.g.material_style = 'deep ocean'
require('material').setup({
contrast = {
terminal = false,
sidebars = true,
floating_windows = true,
cursor_line = false,
non_current_windows = false,
filetypes = {
'terminal',
'packer',
'qf',
'toggleterm'
},
},
styles = {
comments = { italic = true },
strings = {},
keywords = {},
functions = { italic = true },
variables = {},
operators = {},
types = { bold = true },
},
plugins = {
-- "dap",
"dashboard",
"gitsigns",
"hop",
-- "indent-blankline",
-- "lspsaga",
-- "mini",
-- "neogit",
"nvim-cmp",
-- "nvim-navic",
"nvim-tree",
-- "sneak",
"telescope",
-- "trouble",
-- "which-key",
},
disable = {
colored_cursor = false,
borders = false,
background = false,
term_colors = false,
eob_lines = false
},
high_visibility = {
lighter = false,
darker = false
},
lualine_style = "default",
async_loading = true,
custom_colors = nil,
custom_highlights = {},
})
vim.cmd 'colorscheme material'
vim.cmd("highlight WinSeparator guifg=#c0bfbc")
What is the output when you run the command :set filetype
in toggleterm?
Its filetype=toggleterm
The bufferline.nvim plugin shows the same thing
Toggleterm uses it's own highlight system. You need to set the background to NormalContrast
in your toggleterm settings if you want it to have a darker background.
require("toggleterm").setup({
highlights = {
Normal = {
guibg = "NormalContrast"
}
}
})
Hey I tried adding this in my toggleterm config but it didn't work
highlights = {
Normal = {
guibg = "#090b10"
}
}
Should I create an issue in toggleterm and mention this issue over there?
Okay my bad, just revised my config and this line was causing the problem
shading_factor = 1,
I removed it and its working Thanks for you help :)
guibg doesn't take a color as an argument, it takes a different highlight group to link to. Instead of #090b10
, just put NormalContrast
.
Oh okay, I changed it to NormalContrast
, Thank you :)
Hey I use this toggleterm.nvim plugin for my terminal emulator in neovim. I want the toggleterm window to be darker in contrast, so I added the following configuration
I have added the
toggleterm
as filetype but its not working. If there is any mistake in my config, please let me know how should I fix this.