commit 3c4d8ef1997645d7cd60936bcd130b020ad9be8e
parent cc1a197879323dccde91dac7cd6cd15e951d316d
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date: Wed, 21 Sep 2022 15:09:31 +0200
options: prevent latex temporaries to clobber file completion
Diffstat:
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/init.lua b/init.lua
@@ -80,8 +80,24 @@ o.expandtab = true
o.shortmess:append "c"
o.sessionoptions:remove "buffers"
+-- Those damn temporary files cloberring the search for a filename
+o.suffixes:prepend {
+ ".aux",
+ ".bbl",
+ ".pdf",
+ ".nav",
+ ".run.xml",
+ ".bcf",
+ ".blg",
+ ".fdb_latexmk",
+ ".fls",
+ ".log",
+ ".out",
+ ".snm"
+}
+
vim.g.mapleader = " "
-vim.g.maplocalleader = "\\"
+vim.g.maplocalleader = "$"
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()