You've already forked dotfiles
fix: Actually fixing the yaml-companion setup. Testing needs to continue
with verifying schemaStore will work from fresh install.
This commit is contained in:
@@ -1,19 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
settings = {
|
settings = {
|
||||||
redhat = {
|
redhat = { telemetry = { enabled = false } },
|
||||||
telemetry = {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
yaml = {
|
yaml = {
|
||||||
validate = true,
|
|
||||||
schemaStore = {
|
|
||||||
enable = true
|
|
||||||
},
|
|
||||||
format = {
|
|
||||||
enable = true,
|
|
||||||
singleQuote = true
|
|
||||||
},
|
|
||||||
customTags = {
|
customTags = {
|
||||||
"!fn",
|
"!fn",
|
||||||
"!And",
|
"!And",
|
||||||
@@ -33,7 +21,11 @@ return {
|
|||||||
"!Select",
|
"!Select",
|
||||||
"!Split",
|
"!Split",
|
||||||
"!Join sequence"
|
"!Join sequence"
|
||||||
}
|
},
|
||||||
|
format = { enable = true, singleQuote = true },
|
||||||
|
hover = true,
|
||||||
|
schemaStore = { enable = true },
|
||||||
|
validate = true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,12 +2,7 @@ vim.pack.add({
|
|||||||
'https://github.com/mosheavni/yaml-companion.nvim'
|
'https://github.com/mosheavni/yaml-companion.nvim'
|
||||||
})
|
})
|
||||||
|
|
||||||
local cfg = require('yaml-companion').setup {
|
local cfg = require('yaml-companion').setup()
|
||||||
builtin_matchers = {
|
|
||||||
kubernetes = { enabled = true },
|
|
||||||
cloud_init = { enabled = true }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
vim.lsp.config('yamlls', cfg)
|
vim.lsp.config('yamlls', cfg)
|
||||||
vim.lsp.enable('yamlls')
|
vim.lsp.enable('yamlls')
|
||||||
|
|||||||
Reference in New Issue
Block a user