GithubHelp home page GithubHelp logo

Comments (8)

zeertzjq avatar zeertzjq commented on July 4, 2024

This sounds like a feature request rather than a bug report.

from neovim.

justinmk avatar justinmk commented on July 4, 2024

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.

zeertzjq avatar zeertzjq commented on July 4, 2024

That seems to be a different issue.

from neovim.

asmodeus812 avatar asmodeus812 commented on July 4, 2024

Yeah, it indeed used to be possible. i had it used like that, with -1, with 0.9.5

from neovim.

zeertzjq avatar zeertzjq commented on July 4, 2024

I compared the behavior of v0.9.5 and v0.10.0 and they seem to be the same.

from neovim.

asmodeus812 avatar asmodeus812 commented on July 4, 2024

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.
image

:lua vim.highlight.range(0, vim.api.nvim_create_namespace("user"), "IncSearch", { 0, 0 }, { 0, -1 }, { regtype = "V" })

from neovim.

zeertzjq avatar zeertzjq commented on July 4, 2024

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.

asmodeus812 avatar asmodeus812 commented on July 4, 2024

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)

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.