Comments (8)
This sounds like a feature request rather than a bug report.
from neovim.
IIRC, -1
used to be accepted, but now it's not. If you change the -1
column specification to vim.v.maxcol
, it works.
I guess this is technically a regression.
from neovim.
That seems to be a different issue.
from neovim.
Yeah, it indeed used to be possible. i had it used like that, with -1, with 0.9.5
from neovim.
I compared the behavior of v0.9.5 and v0.10.0 and they seem to be the same.
from neovim.
For me i see different behaviour, i tested with both 9.4 and 9.5 and i can highlight the entire line using -1
.
9.5 and 9.4 both work the same, tested down to 9.2 where -1
still works.
:lua vim.highlight.range(0, vim.api.nvim_create_namespace("user"), "IncSearch", { 0, 0 }, { 0, -1 }, { regtype = "V" })
from neovim.
I misunderstood what you meant by "highlighting the whole line". I tested in v0.10.0 and it still works. It doesn't work in nightly.
from neovim.
Strange, my verbose --version
shows this
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "
/home/linuxbrew/.linuxbrew/Cellar/neovim/0.10.0/share/nvim"
Run :checkhealth for more info
But i can not make highlight work linewise in 0.10.0, i am not using nightly.
from neovim.
Related Issues (20)
- WinLeave and WinEnter point at the same buffer on tabnew HOT 5
- Insert mode spelling completion help text is wrong
- GLIBC 2.27 HOT 2
- filetype.lua scripts.vim is sourced before the scripts in the ftdetect directory HOT 2
- calling user commands with `'<,'>` range will change cursor to line1, 0 HOT 1
- normal mode "r" not indicated by ModeChanged, mode()
- The issue #29271 should be closed. HOT 1
- Injections are not properly parsed with `smoothscroll` and `spell` enabled HOT 7
- Failed to source nvim-treesitter.lua HOT 6
- repeat.txt: packadd explanation is strange to me at my first sight HOT 1
- Call `vim.lsp.util.jump_to_location` to jump to an unloaded buffer, where the buffer name is not shortened HOT 3
- Extra spacing around LSP Hover Buffer HOT 1
- `statuscolumn` shows room for line numbers but no actual line numbers HOT 8
- Vim colorscheme doesn't restore the old behavior HOT 2
- vim.filetype.add: user extensions can't override builtin patterns HOT 9
- Broken (un-linked) colors HOT 2
- Issue with treesitter + neovim + markdown. HOT 1
- Updating nvim to latest version breaks theme and fonts. HOT 2
- vim.system zombie process HOT 1
- Undo leads to markdown highlight failure. HOT 1
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 neovim.