summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore39
-rw-r--r--lua/ben/plugins/gitignore.lua8
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 = {
- { "<leader>gi", "<cmd>FzfGitignore<cr>" },
- },
+ ft = "gitignore",
}