-
-
Notifications
You must be signed in to change notification settings - Fork 301
Open
Description
I'm using lspsaga with lazyvim and I'm trying to customize the floating window positions by overriding the win_config for the definition and finder windows. However, despite my settings, the window positions remain at their default locations.
Environment:
- lspsaga version: 6063935
- lazyvim for plugin management
- Neovim version: NVIM v0.10.4
Steps to Reproduce:
- Add the following configuration to your lazyvim plugin configuration file (e.g.,
~/.config/nvim/lua/plugins/lspsaga.lua):
return {
{
"nvimdev/lspsaga.nvim",
event = "LspAttach",
config = function()
require("lspsaga").setup({
ui = {
border = "rounded",
},
definition = {
win_config = {
relative = "editor",
anchor = "NW", -- intended position: top left corner
row = 2,
col = 2,
width = 80,
height = 20,
},
},
finder = {
win_config = {
relative = "editor",
anchor = "NW",
row = 2,
col = 2,
width = 80,
height = 20,
},
},
})
end,
keys = {
{ "<leader>pd", "<cmd>Lspsaga peek_definition<CR>", desc = "Peek Definition" },
{ "<leader>pr", "<cmd>Lspsaga finder<CR>", desc = "Peek References" },
},
},
}- Launch Neovim and trigger the
peek_definitionorfindercommands. - Observe that the floating window positions do not change as configured.
Expected Behavior:
The floating windows (for definition and finder) should appear at the specified positions (anchor = NW, row = 2, col = 2, etc.).
Actual Behavior:
The floating windows still appear in the default positions, ignoring my custom win_config settings.
Additional Information:
- I have confirmed that my configuration file is correctly loaded by lazyvim.
- Based on the [current default settings in init.lua](), it seems these options should be overridable.
lspsaga.nvim/lua/lspsaga/init.lua
Line 138 in 6063935
win_position = 'right', - Is there a new method to customize the window positions, or are these options being overridden by some internal logic in the current version?
Thank you for your help!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels