lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
3.98k stars 99 forks source link

Wrong underline/highlight #852

Closed akaralar closed 3 months ago

akaralar commented 3 months ago

Problem

The indent guides are correct but the underline and highlighting are incorrect

Image ![image](https://github.com/lukas-reineke/indent-blankline.nvim/assets/309655/57392a09-f00d-45f3-9a63-7893ecfbf752)

Steps to reproduce

git clone https://github.com/akaralar/nvim-blankline-bug
cd nvim-blankline-bug

nvim --clean -u min-init.lua 
:e WeSplit/ContentView.swift
min-init.lua ```lua local lazypath = "/tmp/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system { "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath } end vim.opt.rtp:prepend(lazypath) vim.opt.termguicolors = true require("lazy").setup ({ { "lukas-reineke/indent-blankline.nvim", config = function() require("ibl").setup {} end, }, -- uncomment this if the problem is related to scope { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", config = function() require("nvim-treesitter.configs").setup { ensure_installed = { "swift" }, -- change this to the language you use } end, }, }, { root = "/tmp/lazy" }) ```

Expected behavior

The underline and highlighted scope should be the scope starting with Picker, not ForEach

Neovim version (nvim -v)

0.9.5 stable

lukas-reineke commented 3 months ago

This is an issue with the swift treesitter grammar. It sets the scope up until the next closing bracket. 20240401_11h18m51s_grim