nvim/lua/mc-functions.lua

36 lines
560 B
Lua
Raw Normal View History

2025-05-06 18:58:16 +02:00
function mc_mode_ansible()
vim.filetype.add({
extension = {
yml = "yaml.ansible",
yaml = "yaml.ansible",
},
})
vim.cmd [[
LspStart ansiblels
]]
end
function mc_mode_helm()
vim.filetype.add({
extension = {
yml = "helm",
yaml = "helm",
},
})
vim.cmd [[
LspStart helm_ls
LspStop yamlls
]]
end
vim.api.nvim_create_user_command(
'MCModeAnsible',
mc_mode_ansible,
{}
)
vim.api.nvim_create_user_command(
'MCModeHelm',
mc_mode_helm,
{}
)