为什么你怎么减肥还是胖呢?这些错误习惯太可怕!
23 questions
1
vote
0
answers
47
views
How to stop LSP from turning an entire uncompleted method call red?
When I write a method but don't finish it, the language server gets mad and turns the whole thing red, making it difficult to read. I don't have any screenshots because my computer can't currently ...
1
vote
1
answer
185
views
Unable to set custom colors for LSP errors
I have a custom color scheme and I've provided colors for LSPDiagnostics and Errors, but none of them are working.
As seen, errors should be red, but the errors I see are yellowish in color
Tried a ...
1
vote
1
answer
667
views
How do I change the color of the deleted text on the left side of a vimdiff?
My colors currently look like this, with the text highlighted green on both sides:
I would like it to be red on the left, and green on the right.
I tried to change the DiffDelete highlight, but that ...
1
vote
1
answer
1k
views
Syntax highlighting breaks with rust analyzer
I have been using neovim for several months with basically no issue and
enjoying it very much. I have recently started receiving a problem with
the syntax highlighting in Rust.
When the file first ...
1
vote
1
answer
2k
views
In Neovim is there a way at nvim level to set priorities to control highlight resolution?
Background:
It's possible for multiple highlights to affect the same areas in the buffer and work correctly. For example syntax-related colors usually affect fg (foreground, text glyph) color, ...
9
votes
3
answers
15k
views
How to get the highlight group of the word under the cursor in Neovim with Treesitter installed?
Ok folks, I've tried all these duplicates:
How to know which highlighting group is used for the background of a word?
How to identify the highlight groups in use on a particular character?
How to ...
3
votes
1
answer
161
views
How to call incremental forward/reverse search inside function in Neovim?
I'm trying to implement a search function that finds a pattern and jumps to it without overriding the current searched for & highlighted pattern.
Specifically, I want to be able to type out the ...
2
votes
1
answer
2k
views
Add a border to `:LspInfo` window in Neovim
I use a transparent colorscheme for my Neovim. Due to the transparency, the :LspInfo window is difficult to distinguish from the background. Can I add a border around the window?
2
votes
1
answer
1k
views
Is it possible to make neovim use single color for underline?
As title. With my current setup it looks like this:
But I only want it to use a single color. My current highlight setup:
:hi IndentBlanklineContextStart
IndentBlanklineContextStart xxx cterm=...
1
vote
0
answers
365
views
Live preview the result of running a :substitute command in a :global command in neovim
Assuming the following text
foo
bar pattern needle
pattern needle
I can enter the following command :g+pattern+s/needle/replacement to replace all the needles in lines that contain pattern.
With ...
1
vote
0
answers
182
views
Wrong column highlight on lines containing references or links
I've recently taken up nvim and came accross a weird issue.
I've turned on cursor position highlighting for both lines and columns (set cursorline and set cursorcolumn), and usually it works as ...
2
votes
2
answers
710
views
How to do no higlight search in a mapping?
I want to write some mappings so I can move faster between the code. The problem is that I have hlsearch on(and i don't want it off) so I did it like this:
au BufNewFile,BufRead *.py
nnoremap <...
0
votes
1
answer
532
views
How to colorize words in a buffer, using type data and position data?
I am writing a plugin for Neovim using Lua.
If I have a text and some predefined arbitrary types, for example:
chita
wolf
grizzly
types: dog(green), cat(blue), bear(yellow)
And I know positions/...
1
vote
1
answer
373
views
Conceal HTML span and highlight content
I am currently writing some Anki cards in NeoVim. Anki supports HTML and I can therefore write cards in the following format.
Forumlate the <span class="highlight">Central Limit ...
0
votes
0
answers
512
views
How to change color of tabbar of neovim
How can I change the color of tabbar background (which is green in below screenshot)