cleanup and add yaml schema snippet to helm
This commit is contained in:
@@ -60,6 +60,12 @@ return {
|
||||
settings = {
|
||||
pylsp = {
|
||||
plugins = {
|
||||
autopep8 = {
|
||||
enabled = false,
|
||||
},
|
||||
yapf = {
|
||||
enabled = true,
|
||||
},
|
||||
pycodestyle = {
|
||||
ignore = { 'W391' },
|
||||
maxLineLength = pythonLineLength
|
||||
@@ -82,7 +88,17 @@ return {
|
||||
}
|
||||
}
|
||||
|
||||
lspconfig.yamlls.setup { }
|
||||
lspconfig.yamlls.setup {}
|
||||
lspconfig.helm_ls.setup {
|
||||
settingsa = {
|
||||
['helm-ls'] = {
|
||||
yamlls = {
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
lspconfig.terraformls.setup {
|
||||
filetypes = { 'terraform', 'terraform-vars', 'tf' }
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
return {
|
||||
'lucidph3nx/nvim-sops',
|
||||
event = { 'BufEnter' },
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
},
|
||||
opts = { },
|
||||
keys = {
|
||||
{ '<leader>ef', vim.cmd.SopsEncrypt, desc = '[E]ncrypt [F]ile' },
|
||||
{ '<leader>df', vim.cmd.SopsDecrypt, desc = '[D]ecrypt [F]ile' },
|
||||
|
||||
@@ -111,16 +111,18 @@ ls.add_snippets('terraform', {
|
||||
------------------------------
|
||||
-- YAML
|
||||
------------------------------
|
||||
ls.add_snippets('yaml', {
|
||||
s({ name = 'yaml_schema', trig = 'yaml_schema' },
|
||||
fmt([[
|
||||
local yaml_schema_snippet = s(
|
||||
{ name = 'yaml_schema', trig = 'yaml_schema' },
|
||||
fmt([[
|
||||
{comment} yaml-language-server: $schema={path}
|
||||
]],
|
||||
{
|
||||
path = i(1, 'path'),
|
||||
comment = f(com_string, {}, { user_args = { false } }),
|
||||
}
|
||||
)
|
||||
),
|
||||
})
|
||||
{
|
||||
path = i(1, 'path'),
|
||||
comment = f(com_string, {}, { user_args = { false } }),
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
ls.add_snippets('yaml', { yaml_schema_snippet })
|
||||
ls.add_snippets('helm', { yaml_schema_snippet })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user