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

"vim.g.solarized_italic_variables = true" not working #24

Open
julj opened this issue Jun 19, 2024 · 1 comment
Open

"vim.g.solarized_italic_variables = true" not working #24

julj opened this issue Jun 19, 2024 · 1 comment

Comments

@julj
Copy link

julj commented Jun 19, 2024

The option vim.g.solarized_italic_variables does not seem to work in my configuration.
The screenshot shows that nbFiles2Process is properly detected as a variable (cursor on the variable + :Inspect), but it is not italicized. I tried vim.g.solarized_italic_functions = true, and it correctly italicized my functions.

solarized.lua

return {
    'shaunsingh/solarized.nvim',
    config = function()
        vim.g.solarized_italic_variables = true
        require('solarized').set()
    end
}

image

@julj
Copy link
Author

julj commented Jun 19, 2024

The variables seems to not be identified as syntax.Identifier, which is the object on which the italicizing should be applied.

theme.lua

if vim.g.solarized_italic_variables == true then
	syntax.Identifier =				{fg = solarized.gray, bg = solarized.none, style = 'italic'}; -- any variable name
else
        syntax.Identifier =				{fg = solarized.gray}; -- any variable name
end

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