Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect scope in luau #886

Closed
lopi-py opened this issue May 22, 2024 · 1 comment · Fixed by #887
Closed

Incorrect scope in luau #886

lopi-py opened this issue May 22, 2024 · 1 comment · Fixed by #887
Labels
bug Something isn't working

Comments

@lopi-py
Copy link

lopi-py commented May 22, 2024

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" })
  • nvim --clean -u min-init.lua test.luau
  • paste the following snippet:
local foo = 4

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

@lopi-py lopi-py added the bug Something isn't working label May 22, 2024
lukas-reineke added a commit that referenced this issue May 23, 2024
lukas-reineke added a commit that referenced this issue May 23, 2024
@lukas-reineke
Copy link
Owner

Released a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants