Giter VIP home page Giter VIP logo

Comments (12)

ishan9299 avatar ishan9299 commented on July 17, 2024

Yeah I will fix visibility options.Also can you try the option NonText instead of WhiteSpace ?

from nvim-solarized-lua.

ishan9299 avatar ishan9299 commented on July 17, 2024

Also try setting the option before applying the colorscheme.

from nvim-solarized-lua.

maxigaz avatar maxigaz commented on July 17, 2024

try setting the option before applying the colorscheme.

OK, I've just tried this:

set termguicolors

" Whitespace
set list
lua vim.g.solarized_visibility = 'low'
highlight Whitespace guifg=black

" Initialize
colorscheme solarized

Now the highlight command doesn't work either, not even after sourcing the init file. Other than that, same results.

can you try the option NonText instead of WhiteSpace ?

It doesn't seem to make any difference.

from nvim-solarized-lua.

ishan9299 avatar ishan9299 commented on July 17, 2024

Yup I tried it myself. Thanks for reporting a bug.

from nvim-solarized-lua.

ishan9299 avatar ishan9299 commented on July 17, 2024

In the mean time can you put this command

hi NonText guifg=#073642 guibg=NONE gui=bold cterm=bold

to get low visibility.

from nvim-solarized-lua.

ishan9299 avatar ishan9299 commented on July 17, 2024

I have made some changes can you check if those work for you?

from nvim-solarized-lua.

maxigaz avatar maxigaz commented on July 17, 2024

It's definitely better, although I would like it to be slightly brighter this time.

For example, here's how it looks with hi NonText guifg=#25454D guibg=NONE gui=bold cterm=bold applied (which still doesn't work unless I manually run :source %, by the way). I would like having this one.

nvim-solarized-whitespace-low

from nvim-solarized-lua.

ishan9299 avatar ishan9299 commented on July 17, 2024

the default option would suit your needs then. Try 'normal' instead of 'low'. I have my config written in lua so in my config.

vim.g.solarized_statusline = 'flat'
vim.g.solarized_termtrans = 0
vim.g.solarized_diffmode = 'low'
vim.g.solarized_visibility = 'low'
vim.cmd('colorscheme solarized')
vim.cmd('hi NonText guifg=#25454D guibg=NONE gui=bold cterm=bold')

This works fine on my neovim. You can try this in vimscript if it doesn't work then I guess it is a neovim issue not a colorscheme one.

from nvim-solarized-lua.

ishan9299 avatar ishan9299 commented on July 17, 2024

Also can try to put your settings in $HOME/.config/nvim/after/syntax?
EDIT:-
I looked up the problem you are having with 'hi' command is an issue with vim too. The only solution I read was that you have to write your own colorscheme. It is weird because the above lua snippet from my config works.
So there is nothing I can do about the hi command issue atleast for now.

from nvim-solarized-lua.

maxigaz avatar maxigaz commented on July 17, 2024

the default option would suit your needs then. Try 'normal' instead of 'low'.

I already have. Something between normal and low would be the ideal choice for me, like what I mentioned above. (Although if you only want to use the base colours defined in Solarized, that's also understandable.)

I have my config written in lua so in my config.

vim.g.solarized_statusline = 'flat'
vim.g.solarized_termtrans = 0
vim.g.solarized_diffmode = 'low'
vim.g.solarized_visibility = 'low'
vim.cmd('colorscheme solarized')
vim.cmd('hi NonText guifg=#25454D guibg=NONE gui=bold cterm=bold')

I've put it into init.test.lua, made some modifications, and run nvim -u ~/.config/nvim/init.test.lua --noplugin init.test.lua. Here are the results:

nvim-solarized-lua

I looked up the problem you are having with 'hi' command is an issue with vim too. The only solution I read was that you have to write your own colorscheme. It is weird because the above lua snippet from my config works.
So there is nothing I can do about the hi command issue atleast for now.

Oh… so, I guess I'll have to edit the files of nvim-solarized-lua and hardcode the values myself (or make do with the default options). Not exactly what I was looking for, but at least I feel I'm closer now, so, thank you!

from nvim-solarized-lua.

ishan9299 avatar ishan9299 commented on July 17, 2024

@maxigaz you can try something like this modify the colorscheme.
https://github.com/kristijanhusak/neovim-config/blob/cf911f5feeecdc7acf513714b48c4fcf985eeaf9/nvim/partials/colorscheme.vim#L1

from nvim-solarized-lua.

maxigaz avatar maxigaz commented on July 17, 2024

Thank you for the advice! I'm not very familiar with creating and using augroups, but I've just tried the following autocmds, and they seem to work well (replacing Whitespace with NonText has the same results for me).

vim.cmd([[
autocmd BufEnter * hi Whitespace guifg=#25454D guibg=NONE gui=bold cterm=bold
autocmd BufEnter * hi IndentBlanklineChar guifg=#25454D gui=nocombine
]])

The second one using the highlight group IndentBlanklineChar was necessary for customising the looks of indent-blankline.nvim. It's yet another mystery, because according to the plugin's manual, it "takes guifg color from 'Whitespace'" by default, so, if I understand it well, hi IndentBlanklineChar should be redundant. But anyway, I'm happy that it works finally.

Thank you again!

from nvim-solarized-lua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.