Comments (3)
This is really dependent on your colorscheme. With default Tokyonight colorscheme this is how it looks like
You can see that the LSP document highlight is a greyish color while nvim-dap
visual selection is blue.
from lazyvim.
@dpetka2001 I see. Is there a way to change the highlight for any color scheme?
I would like to have something like below
vim.api.nvim_set_hl(0, 'Visual', { fg = '#000000', bg = '#db4b4b' })
But not quite sure how to load that after colorscheme is loaded to override the existing highlight.
from lazyvim.
You should read the docs of the colorscheme you're interested in to see if they provide a way to do that. Tokyonight provides a way to do that, for example I do
{
"tokyonight.nvim",
style = "moon",
opts = {
on_colors = function(colors)
colors.gitSigns["change"] = "#FF8000"
colors.gitSigns["add"] = "#006C00"
end,
},
},
to change these specific colors to what I want. I'm not sure what ways rose-pine
provides. Another way would be to define your custom highlight in an autocmd probably on BufReadPost/BufNewFile
events. But I don't know if the autocmd might have some other side effects.
from lazyvim.
Related Issues (20)
- bug: macros double paste HOT 2
- bug: cursor flash wildly and unexpected behavior of terminal HOT 15
- bug: some terminal shortcuts not working HOT 6
- bug: vue style commentstring is wrong HOT 3
- bug: Error after disabling neo-tree. HOT 2
- feature: Prompting for name when using some code actions
- bug: Press space is quitting neovim HOT 13
- bug: rename markdown.nvim to render-markdown.nvim HOT 1
- bug: attempt to call field 'statusline' (a nil value) HOT 2
- bug: Astrojs not working in Lazyvim HOT 4
- bug: Both denols and vtsls LSPs running in monorepo HOT 1
- bug: cmdline cursor flickering HOT 2
- bug: Error executing vim.schedule lua callback when installing OCaml extra HOT 2
- bug: reopen same file,buffer will changed,how to dissabled this action HOT 4
- feature: Add `ignore_lsp` option to `lazyvim.util.root` HOT 1
- bug: `astro-language-server` must install by `mason.nvim` if I want Lazyvim don't warn for me HOT 10
- bug: telescope fail to open buffer after disabling edgy HOT 2
- bug: macro with mini-surround does not work in LazyVIM HOT 4
- bug: Telescope code action picker drops visual selection HOT 4
- bug: Lazygit integration windows' "Edit" command doesn't work ? 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 lazyvim.