Skip to content

open float window broken #28

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

Closed
BYT0723 opened this issue Apr 1, 2025 · 0 comments
Closed

open float window broken #28

BYT0723 opened this issue Apr 1, 2025 · 0 comments

Comments

@BYT0723
Copy link

BYT0723 commented Apr 1, 2025

error message

E5108: Error executing lua ...l/share/nvim/lazy/pantran.nvim/lua/pantran/ui/window.lua:255: Must specify 'relative' or 'external' when creating a float
stack traceback:
	[C]: in function 'nvim_open_win'
	...l/share/nvim/lazy/pantran.nvim/lua/pantran/ui/window.lua:255: in function '_create'
	...l/share/nvim/lazy/pantran.nvim/lua/pantran/ui/window.lua:275: in function 'new'
	...cal/share/nvim/lazy/pantran.nvim/lua/pantran/ui/init.lua:187: in function 'new'
	...cal/share/nvim/lazy/pantran.nvim/lua/pantran/command.lua:70: in function '_translate'
	...cal/share/nvim/lazy/pantran.nvim/lua/pantran/command.lua:87: in function 'range_translate'
	...cal/share/nvim/lazy/pantran.nvim/lua/pantran/command.lua:123: in function 'parse'
	[string ":lua"]:1: in main chunk

preview

2025-04-01_11-52-42.mp4

environment

  • Neovim Version
    NVIM v0.11.0
    Build type: RelWithDebInfo
    LuaJIT 2.1.1741730670
    

According to my test, the name of the local variable window.config.window_config in ui/window.lua seems to have been tampered with, resulting in the invalidity of relative during tbl_extend. Just rename window_config. I will submit my PR and hope it will be adopted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant