lukas-reineke / indent-blankline.nvim

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

Incorrect scope in luau #886

Closed lopi-py closed 1 month ago

lopi-py commented 1 month ago

Problem

image https://gyazo.com/eb6a185a532155c152f283fe22cf8bcc

Steps to reproduce

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,
  },
  {
    "nvim-treesitter/nvim-treesitter",
    build = ":TSUpdate",
    config = function()
      require("nvim-treesitter.configs").setup {
        ensure_installed = { "luau" },
      }
    end,
  },
}, { root = "/tmp/lazy" })

if 1 + 1 == 2 then print("hey") end

local function test() print("test") end


- move the cursor

### Expected behavior

I expect something similar to lua

### Neovim version (nvim -v)

NVIM v0.10.0
lukas-reineke commented 1 month ago

Released a fix