nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.48k stars 287 forks source link

Unknown option 'stc' #657

Closed schizophrenical closed 1 year ago

schizophrenical commented 1 year ago

Describe the bug

Encountering an error while opening the document outline.

I locally build neovim, maybe that is an issue?

Error log:

Error executing vim.schedule lua callback: vim/_meta.lua:0: unknown option 'stc'
stack traceback:
        [C]: in function 'nvim_get_option_value'
        vim/_meta.lua: in function '__index'
        ...cal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/outline.lua:60: in function 'set_local'
        ...cal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/outline.lua:153: in function 'create_outline_window'
        ...cal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/outline.lua:430: in function 'render_outline'
        ...cal/share/nvim/lazy/lspsaga.nvim/lua/lspsaga/outline.lua:208: in function 'handler'
        /usr/local/share/nvim/runtime/lua/vim/lsp.lua:1391: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Steps to reproduce

Expected behavior

Document Outline should show.

Neovim version (nvim -v)

v0.9.0-dev-08ebf8d

Operating system/version

Windows Sub-system for Linux (WSL) - Ubuntu 20.04

Terminal name/version

Windows Terminal

$TERM environment variable

N/A

schizophrenical commented 1 year ago

Just want to add that it also happens if I do: nvim /path/to/lua/file.lua

I also try to execute Lspsaga outline, after the LSP is done loading.

schizophrenical commented 1 year ago

It seems that my build of neovim does not have the statuscolumn or stc option yet. I will try to pull from master and build. Maybe that is the issue.

I will report back if that fixes the issue.

schizophrenical commented 1 year ago

Happy to report that updating neovim fixed the issue. Thanks again for this wonderful plugin.