From cf473c39984ff94b574d9ebf25ad5ff6e63868e0 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 12 Oct 2023 11:27:20 -0400 Subject: Try to fix fzf-gitignore --- .gitignore | 39 +++++++++++++++++++++++++++++++++++++++ lua/ben/plugins/gitignore.lua | 8 ++++---- 2 files changed, 43 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 398942b..3b8f40f 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,42 @@ luac.out *.x86_64 *.hex +### Vim ### +# Swap +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ + +### Tags ### +# Ignore tags created by etags, ctags, gtags (GNU global) and cscope +TAGS +.TAGS +!TAGS/ +tags +.tags +!tags/ +gtags.files +GTAGS +GRTAGS +GPATH +GSYMS +cscope.files +cscope.out +cscope.in.out +cscope.po.out + diff --git a/lua/ben/plugins/gitignore.lua b/lua/ben/plugins/gitignore.lua index 43ada5a..0a657d9 100644 --- a/lua/ben/plugins/gitignore.lua +++ b/lua/ben/plugins/gitignore.lua @@ -8,11 +8,11 @@ return { end, }, }, + cond = function() + return vim.fn.executable("python3") == 1 + end, build = function() vim.cmd([[UpdateRemotePlugins]]) end, - filetype = "gitignore", - keys = { - { "gi", "FzfGitignore" }, - }, + ft = "gitignore", } -- cgit v1.2.3