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
I have searched the existing issues of neoconf.nvim
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.9.5 Release
Operating system/version
Linux 6.6
Describe the bug
When starting a Slint LSP, I get the following error:
[lspconfig] unhandled error: ....local/share/nvim/lazy/neoconf.nvim/lua/neoconf/util.lua:54: attempt to call upvalue 'root_dir' (a nil value)
And the server isn't started.
Steps To Reproduce
Install the server through Mason
Open a Slint file
If you don't have automatic filetype detection already, do :se ft=slint
If the LSP didn't try to start automatically, do :LspStart
You should see the error pop out.
Expected Behavior
The LSP starts without errors.
Repro
-- With this repro, the server still doesn't start but I don't get the error either... -- My regular setup uses LazyVim. Should I open an issue there?-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
"folke/neoconf.nvim",
"williamboman/mason-lspconfig.nvim",
{
"williamboman/mason.nvim",
config=function()
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed= { "slint_lsp" },
})
end,
},
"neovim/nvim-lspconfig",
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.9.5 Release
Operating system/version
Linux 6.6
Describe the bug
When starting a Slint LSP, I get the following error:
And the server isn't started.
Steps To Reproduce
:se ft=slint
:LspStart
Expected Behavior
The LSP starts without errors.
Repro
The text was updated successfully, but these errors were encountered: