🗑️ remove(nvim): yaml-extended extra
This commit is contained in:
parent
2737a9abca
commit
72d510bd77
2 changed files with 0 additions and 35 deletions
|
@ -1,9 +1,6 @@
|
||||||
return {
|
return {
|
||||||
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
||||||
{ import = "plugins.extras.lang.json-extended" },
|
{ import = "plugins.extras.lang.json-extended" },
|
||||||
{
|
|
||||||
"williamboman/mason.nvim",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
return {
|
|
||||||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
|
||||||
{
|
|
||||||
"someone-stole-my-name/yaml-companion.nvim",
|
|
||||||
ft = { "yaml" },
|
|
||||||
opts = {},
|
|
||||||
config = function(_, opts)
|
|
||||||
local cfg = require("yaml-companion").setup(opts)
|
|
||||||
require("lspconfig")["yamlls"].setup(cfg)
|
|
||||||
LazyVim.on_load("telescope.nvim", function()
|
|
||||||
require("telescope").load_extension("yaml_schema")
|
|
||||||
end)
|
|
||||||
end,
|
|
||||||
keys = {
|
|
||||||
{ "<leader>cy", "<cmd>Telescope yaml_schema<cr>", desc = "YAML Schema" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nvim-lualine/lualine.nvim",
|
|
||||||
optional = true,
|
|
||||||
opts = function(_, opts)
|
|
||||||
local function yaml_schema()
|
|
||||||
local schema = require("yaml-companion").get_buf_schema(0)
|
|
||||||
if schema.result[1].name == "none" then
|
|
||||||
return ""
|
|
||||||
end
|
|
||||||
return schema.result[1].name
|
|
||||||
end
|
|
||||||
table.insert(opts.sections.lualine_x, 1, yaml_schema)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue