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 plugins related to this issue
Neovim version (nvim -v)
0.9.2
Operating system/version
NixOS
Describe the bug
I enabled yaml plugin but the SchemaStore doesn't work. If I enable it with schemas = require('schemastore').yaml.schemas() it works. So I thought this part
Open a yaml file with schema. E.g., you can create a metadata/test.yml file then open it in neovim.
Expected Behavior
The schema is loaded automatically based on the file path. E.g., when typing License there should be completion from the schema.
Repro
-- 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/LazyVim",
-- 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)
0.9.2
Operating system/version
NixOS
Describe the bug
I enabled yaml plugin but the SchemaStore doesn't work. If I enable it with
schemas = require('schemastore').yaml.schemas()
it works. So I thought this partLazyVim/lua/lazyvim/plugins/extras/lang/yaml.lua
Line 37 in e11a3cb
is why it doesn't work for me.
Steps To Reproduce
metadata/test.yml
file then open it in neovim.Expected Behavior
The schema is loaded automatically based on the file path. E.g., when typing
License
there should be completion from the schema.Repro
The text was updated successfully, but these errors were encountered: