summaryrefslogtreecommitdiff
path: root/ftdetect
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-29 22:37:49 -0400
committerGitHub <[email protected]>2024-10-30 02:37:49 +0000
commit310fdf8de53d98ddd3a56936c131186e25814f0f (patch)
treef4265ab11de2262bacb2498cdc4661420a2df278 /ftdetect
parent7ed0a2b87684eb32009944bd9eb8d7eaa9af0462 (diff)
use lz.n (#69)
* remove bufferline & some cmp sources * factor things out of after/ folder This is bad practice or something * make sure ftdetect plugins aren't loaded multiple times * use lz.n * mini.pairs -> mini.surround * flake: cleanup checks * ftplugin: enforce spaces in nix files
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/githubaction.lua5
-rw-r--r--ftdetect/just.lua5
2 files changed, 10 insertions, 0 deletions
diff --git a/ftdetect/githubaction.lua b/ftdetect/githubaction.lua
index a6e11cf..ca0e589 100644
--- a/ftdetect/githubaction.lua
+++ b/ftdetect/githubaction.lua
@@ -1,4 +1,9 @@
-- this allows `actionlint` to only yaml files that are actions
+if vim.g.did_load_githubaction_plugin then
+ return
+end
+
+vim.g.did_load_githubaction_plugin = true
vim.filetype.add({
pattern = {
[".*/.github/workflows/.*%.yml"] = "yaml.githubaction",
diff --git a/ftdetect/just.lua b/ftdetect/just.lua
index 4c7098a..e956caa 100644
--- a/ftdetect/just.lua
+++ b/ftdetect/just.lua
@@ -1,3 +1,8 @@
+if vim.g.did_load_just_plugin then
+ return
+end
+
+vim.g.did_load_just_plugin = true
vim.filetype.add({
filename = {
["justfile"] = "just",