diff options
Diffstat (limited to 'nixvim/filetypes')
| -rw-r--r-- | nixvim/filetypes/default.nix | 6 | ||||
| -rw-r--r-- | nixvim/filetypes/github-action.nix | 8 | ||||
| -rw-r--r-- | nixvim/filetypes/just.nix | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/nixvim/filetypes/default.nix b/nixvim/filetypes/default.nix new file mode 100644 index 0000000..8bcb94e --- /dev/null +++ b/nixvim/filetypes/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./github-action.nix + ./just.nix + ]; +} diff --git a/nixvim/filetypes/github-action.nix b/nixvim/filetypes/github-action.nix new file mode 100644 index 0000000..c057de0 --- /dev/null +++ b/nixvim/filetypes/github-action.nix @@ -0,0 +1,8 @@ +{ + # yes this is very silly + # but it makes sure actionlint won't lint *every* yaml file + filetype.pattern = { + ".*/.github/workflows/.*%.yml" = "yaml.githubaction"; + ".*/.github/workflows/.*%.yaml" = "yaml.githubaction"; + }; +} diff --git a/nixvim/filetypes/just.nix b/nixvim/filetypes/just.nix new file mode 100644 index 0000000..3bc4161 --- /dev/null +++ b/nixvim/filetypes/just.nix @@ -0,0 +1,7 @@ +{ + # there's treesitter grammar for this + # but no upstram filetype :( + filetype.filename = { + justfile = "just"; + }; +} |
