You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
relative = "cursor" didn't work, however, the float window is centered in the editor
System information
OS: linux
Neovim version: 0.6.1
AerialInfo:
Filetype: lua
Configured backends:
lsp (supported) (attached)
treesitter (supported)
markdown (not supported) [Filetype is not markdown]
Show symbols: Class, Enum, Function, Interface, Module, Method, Struct
Aerial config:
functionconfig:symbols()
require("aerial").setup({
default_direction="float",
float= {
-- Controls border appearance. Passed to nvim_open_winborder="rounded",
-- Enum: cursor, editor, win-- cursor - Opens float on top of the cursor-- editor - Opens float centered in the editor-- win - Opens float centered in the windowrelative="cursor",
-- These control the height of the floating window.-- They can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)-- min_height and max_height can be a list of mixed types.-- min_value = {8, 0.1} means "the greater of 8 rows or 10% of total"max_height=0.9,
height=nil,
min_height= { 8, 0.1 },
override=function(conf)
-- This is the config that will be passed to nvim_open_win.-- Change values here to customize the layoutreturnconfend,
},
filter_kind= {
"Class",
"Enum",
"Function",
"Interface",
"Module",
"Method",
"Struct",
},
-- Run this command after jumping to a symbol (false will disable)post_jump_cmd="normal! zz",
close_on_select=true,
lsp= {
diagnostics_trigger_update=true,
update_when_errors=true,
},
})
end
Screenshots
The text was updated successfully, but these errors were encountered:
Apologies! Should be fixed now. The underlying issue was that when you set the config with nvim_open_win({relative = 'cursor'}) it comes back from nvim_get_config() as relative = 'win' :/
Describe the bug
relative = "cursor" didn't work, however, the float window is centered in the editor
System information
Filetype: lua
Configured backends:
lsp (supported) (attached)
treesitter (supported)
markdown (not supported) [Filetype is not markdown]
Show symbols: Class, Enum, Function, Interface, Module, Method, Struct
Screenshots
The text was updated successfully, but these errors were encountered: