From d02c9953e97c55248f360b62ed5875abf2b48acf Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 12 Aug 2022 05:00:05 +0200 Subject: [PATCH] nvim: firenvim: automatically launch once on some sites --- .config/nvim/lua/my/net.lua | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/my/net.lua b/.config/nvim/lua/my/net.lua index d50ef82..e852266 100644 --- a/.config/nvim/lua/my/net.lua +++ b/.config/nvim/lua/my/net.lua @@ -10,7 +10,16 @@ packer.use { vim.g.firenvim_config = { localSettings = { [".*"] = { + priority = 0, takeover = 'never', + }, + ['/(issues|pull|merge_requests)/'] = { + priority = 1, + takeover = 'once' + }, + ['https://bugs\\.gentoo\\.org/'] = { + priority = 1, + takeover = 'once' } } } @@ -25,7 +34,10 @@ packer.use { { 'BufWinEnter' }, { group = 'firenvim', - pattern = { '*/firenvim/*.txt' }, + pattern = { + '*/firenvim/*.txt', + '*/firenvim/*.md', + }, callback = function() vim.o.textwidth = 0 -- FIXME: my_set_colorcolumn() should set that automatically @@ -45,7 +57,8 @@ packer.use { 'github.com_*', 'very.tastytea.de_*', 'bookwyrm.social_*', - 'openlibrary.org_*' + 'openlibrary.org_*', + 'bugs.gentoo.org_*', }, command = [[set filetype=markdown | set tw=0]] }