mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-22 20:43:27 +00:00
lsp/preset/gitlab-ci-ls: init
This commit is contained in:
parent
d390177b7f
commit
85c7ba8227
5 changed files with 48 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue