Lspfinder showing error
Describe the bug
after updating, when using LSP finder, encountered the following error

Steps to reproduce
:Lspsaga lsp_finder
Expected behavior
should show the lsp finder window
Neovim version (nvim -v)
0.8.3
lspsaga commit
70f863a
Terminal name/version
kitty
Same bug here, using alacritty
provide reproduce step
This bug happens to me when trying to invoke lsp finder on something that would normally produce no result. For example go to a blank line in your code or an object property in javascript, invoke lsp finder and that error will appear.
Just wanted to update... my above statement is only true for lua files. I have now tried this in javascript and svelte files and I get the error reported every time.
IDK how to reproduce it ..

can you update and test ? I fixed some bug in cursormoved .
tried with latest commit, still having the same error
some min code that can reproduce it ?
i tried in c lua typescript go rust ..both work.

not sure if this will help
im using default setup
require("lspsaga").setup()
:Lspsaga lsp_finder anywhere in any javascript code
worked using last friday's lspsaga commit
a min js code /
const test = () => {
console.log('hello world');
};
:Lspsaga lsp_finder over test
same as me in go.
hmm..

can you update and test again .. it works for me ..wired.
thanks for the quick update! just updated to newest commit and tried again, getting the same error
'width' key must be a positive Integer
I tried a min config can't reproduce it.
Same bug in rust; lspsaga version: b5b7c13966fd4b977fb261b6d3fa26bafe3ec6e2
Configuration of lspsaga
local status, saga = pcall(require, "lspsaga")
if not status then
return
end
saga.setup({
-- keybinds for navigation in lspsaga window
scroll_preview = { scroll_up = "<C-k>", scroll_down = "<C-j>" },
-- when there has code action it will show a lightbulb
lightbulb = {
enable_in_insert = true,
sign = false,
},
ui = {
colors = {
--float window normal bakcground color
normal_bg = "#1c1c19",
--title background color
title_bg = "#afd700",
},
},
beacon = {
enable = false,
},
})
colors has been removed in 0.2.8. and i tried in rust.

I
some min code that can reproduce it ?
local api = vim.api
api.nvim_command('set nu') api.nvim_command('set relativenumber')
-- Plugins local lazypath = vim.fn.stdpath('data') .. '/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', -- latest stable release lazypath } ) end vim.opt.rtp:prepend(lazypath)
-- Example using a list of specs with the default options
vim.g.mapleader = ',' -- Make sure to set mapleader before lazy so your mappings are correct
require('lazy').setup( { -- LuaFormatter off { 'neovim/nvim-lspconfig', config = function() require'lspconfig'.pyright.setup {} require'lspconfig'.gopls.setup {} end }, { 'williamboman/mason.nvim', config = function() require('mason').setup() end }, {'williamboman/mason-lspconfig.nvim'}, -- LuaFormatter on { 'jose-elias-alvarez/null-ls.nvim', config = function() local null_ls = require('null-ls') local diagnostics = null_ls.builtins.diagnostics null_ls.setup {sources = {diagnostics.golangci_lint}} end, dependencies = {{'nvim-lua/plenary.nvim'}} }, { 'glepnir/lspsaga.nvim', event = 'BufRead', config = function() require('lspsaga').setup({}) end, dependencies = {{'nvim-tree/nvim-web-devicons'}, {'nvim-treesitter/nvim-treesitter'}} } } )