neovim-confs/lua/plex/plugins/extras/lsp/yaml-companion.lua

34 lines
676 B
Lua
Raw Normal View History

2023-09-06 00:26:45 +02:00
return {
{
'neovim/nvim-lspconfig',
opts = {
setup = {
yamlls = function(_, _)
local yamlls_opts = require('yaml-companion').setup(
2023-09-06 10:19:56 +02:00
require('plex.lib.utils').opts('yaml-companion.nvim')
2023-09-06 00:26:45 +02:00
)
require('lspconfig')['yamlls'].setup(yamlls_opts)
return true
end,
},
},
},
{
'someone-stole-my-name/yaml-companion.nvim',
dependencies = {
'neovim/nvim-lspconfig',
'nvim-telescope/telescope.nvim',
},
keys = {
-- stylua: ignore
{ '<localleader>y', '<cmd>Telescope yaml_schema<CR>', desc = 'YAML Schema' },
},
opts = {},
config = function(_, _)
require('telescope').load_extension('yaml_schema')
end,
},
}