Comments (6)
No problem, I'm glad you like it! I believe that is intentional due to them being different in tree sitter. In Lua they are constructors while in JavaScript they are delimiters:
onenord.nvim/lua/onenord/theme.lua
Lines 369 to 370 in 73aef7f
onenord.nvim/lua/onenord/theme.lua
Lines 412 to 417 in 73aef7f
I think that you can override TSConstructor
using vim's highlight but I could provide a more convenient way to do it in Lua as a part of the config options if you think that would be helpful!
from onenord.nvim.
I went ahead and added a way to overwrite any of the highlight groups so you can give it a try if you'd like:
local colors = require("onenord.colors")
require("onenord").setup({
custom_highlights = {
TSConstructor = { fg = colors.dark_blue },
},
})
from onenord.nvim.
Thanks for the quick response @rmehri01 - unfortunately, this is still not overwriting TSConstructor
for me.
use {
'rmehri01/onenord.nvim',
setup = function()
local colors = require 'onenord.colors'
require('onenord').setup {
custom_highlights = {
TSConstructor = { fg = colors.dark_blue },
},
}
end,
}
Have I just overlooked something?
EDIT: Sorry, I think this is a problem on my end with Packer.
from onenord.nvim.
Hey @zeitchef, I think you need to use config =
rather than setup =
. When I try it, setup =
doesn't work since it runs before the plugin is loaded. I'm not sure if setup =
is supposed to work or not but from what I've seen from other plugins, they seem to use config =
but correct me if I'm wrong! This works for me:
use {
"rmehri01/onenord.nvim",
config = function()
local colors = require("onenord.colors")
require("onenord").setup({
custom_highlights = {
TSConstructor = { fg = colors.dark_blue },
},
})
end,
}
from onenord.nvim.
Thanks @rmehri01 - you're right, of course. Unfortunately, this somehow doesn't work for my setup. The only way I got it to work was to manually override the highlight:
vim.highlight.create('TSConstructor', { guifg = onenord.dark_blue }, false)
from onenord.nvim.
Hmm, I see. If you're okay with that then great but otherwise let me know if I can do anything else and I could give it a shot!
from onenord.nvim.
Related Issues (20)
- Highlights overriding not working HOT 3
- HTML custom elements HOT 5
- Support for nvim-navic HOT 2
- Colors too dark for it be "Nord" themed in Nvim HOT 6
- FR: setup option to use default nord palette HOT 3
- Incorrect colors in Gnome Terminal (and derivates) HOT 15
- Getting wrong colors with Alacritty HOT 5
- Fix highlight group links for Neovim 0.8 HOT 10
- Highlight colors are different after updating highlight groups to nvim-0.8 HOT 3
- colors/onenord.vim missing HOT 6
- Update Docs! HOT 1
- Missing hl groups for Lsp Saga HOT 3
- Inconsistent colors from one version to another HOT 4
- Add semantic highlights support HOT 3
- Missing distinction for rust format! named parameters. HOT 3
- Colorscheme light/dark HOT 10
- Add inlay hints support HOT 3
- Xcode support HOT 2
- VertSplit is deprecated in favor of WinSeparator HOT 2
- Nvim-treesitter capture name changes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onenord.nvim.