Comments (16)
Does it change when you run
highlight ALEErrorSign guifg=#E06C75
highlight! is not a command, I think you're confusing it with hi!
from one-nvim.
Does it change when you run
After the plugin is loaded, it will change if run it with vim running.
However, until now, it was described and set in init.lua and it worked, but it does not work with one-nvim.
Works well with plugins for other color schemes.
from one-nvim.
Are you calling it after setting the colorscheme?
from one-nvim.
Are you calling it after setting the colorscheme?
Yes, give it a try
from one-nvim.
I add
vim.api.nvim_command('autocmd Colorscheme * highlight Normal guibg=#FF0000')
to the end of my init.lua
and it worked. Try adding your autocmd to the last line of you init.lua
.
from one-nvim.
Yes i know.
I want to change it without using autocmd.
That's possible with onebuddy and other plugins
from one-nvim.
Sorry I misunderstood,
inside nvim/after/colors/one-nvim.vim
highlight ALEErrorSign guifg=#E06C75
where nvim is the root directory of your nvim folder.
from one-nvim.
Sorry I misunderstood,
I'm sorry in poor Englishπ
nvim/after/colors/one-nvim.vim
I tried with this path and all the other syntax broke
from one-nvim.
Just to verify, if you are on linux, if you run
cat ~/.config/nvim/after/colors/one-nvim.vim
you get
highlight ALEErrorSign guifg=#E06C75
Is that right?
from one-nvim.
After setting
β― cat ~/.config/nvim/after/colors/one-nvim.vim
highlight ALEErrorSign guifg=#E06C75
reference:
https://github.com/yamatsum/mackup/tree/master/.config/nvim
from one-nvim.
I think I have it now
" ~/.config/nvim/after/colors/one-nvim.vim
highlight ALEErrorSign guifg=#E06C75
-- end of init.lua
vim.api.nvim_command("runtime! after/colors/one-nvim.vim")
from one-nvim.
After all it did not work.
Thank you for your kind answer.
The original purpose was just to overwrite the highlights with a simple setup.
Why can't one-nvim do what onebuddy can do?π€
from one-nvim.
That's strange. It worked on my computer.
I think you're probably best off using the autocmd since you said that worked.
I have no idea why it would work with onebuddy but not one-nvim.
from one-nvim.
Worked this out with the creator of nvim-highlite
vim.api.nvim_command("augroup Highlight")
vim.api.nvim_command("autocmd!")
vim.api.nvim_command("autocmd ColorScheme one-nvim hi! Normal guifg=#000000 guibg=#FFFFFF")
vim.api.nvim_command("augroup end")
vim.api.nvim_command("colorscheme one-nvim")
from one-nvim.
Or you could do
local vim, api, cmd = vim, vim.api, vim.cmd
local function augroups(definitions)
for group_name, definition in pairs(definitions) do
api.nvim_command("augroup " .. group_name)
api.nvim_command("autocmd!")
for _, def in ipairs(definition) do
local command = table.concat(vim.tbl_flatten {"autocmd", def}, " ")
api.nvim_command(command)
end
api.nvim_command("augroup END")
end
end
local autocmds = {
Highlight = {
{"ColorScheme", "one-nvim", "hi! Normal guifg=#000000 guibg=#FFFFFF"}
}
}
augroups(autocmds)
cmd 'colorscheme one-nvim'
It will do the same thing.
from one-nvim.
I know I can change it with autocmd but I don't want to use autocmd just to overwrite colors.
This ticket will be closed so that I can proceed with the investigation.
Thank you.
from one-nvim.
Related Issues (16)
- Confusing highlight in terminal mode HOT 2
- Washed-out looking colors in terminal HOT 3
- attempt to index field 'go' (a nil value) HOT 3
- Rust with treesitter looks too red HOT 1
- C with treesitter looks werid HOT 2
- not found one-nvim HOT 2
- Sign column and cursor line number should be transparent when one_nvim_transparent_bg is true
- question: how to set theme to light? HOT 1
- LspCodeLens too visible?
- Add Neovim 0.5.x LSP highlights HOT 7
- Duplicate line in lua/one-nvim.lua HOT 1
- zfs suggestions color HOT 5
- IncSearch highlight is hard to see HOT 9
- last commit has changed the normal background color HOT 2
- Wrong colors HOT 4
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 one-nvim.