lsp/preset/gitlab-ci-ls: init

This commit is contained in:
Snoweuph 2026-06-19 22:38:21 +02:00
commit 85c7ba8227
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
5 changed files with 48 additions and 19 deletions

View file

@ -86,21 +86,13 @@ in {
config = mkIf cfg.enable (mkMerge [
{
vim.autocmds = [
# Without this the LSP doesn't understand them correctly
# and there are conflicts with the YAML LSP
{
desc = "Set Docker Compose filetype";
event = ["BufRead" "BufNewFile"];
pattern = [
"compose.yml"
"compose.yaml"
"docker-compose.yml"
"docker-compose.yaml"
];
command = "set filetype=dockercompose";
}
];
# Without this the LSP doesn't understand them correctly
# and there are conflicts with the YAML LSP,
# thus this module is "stealing" those files.
vim.filetype.pattern = {
"compose%.ya?ml" = "dockercompose";
"docker%-compose%.ya?ml" = "dockercompose";
};
}
(mkIf cfg.treesitter.enable {