From 310fdf8de53d98ddd3a56936c131186e25814f0f Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 29 Oct 2024 22:37:49 -0400 Subject: 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 --- ftdetect/githubaction.lua | 5 +++++ ftdetect/just.lua | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'ftdetect') 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", -- cgit v1.2.3