1
0
Fork 0

nvim: firenvim: automatically launch once on some sites

This commit is contained in:
tastytea 2022-08-12 05:00:05 +02:00
parent a0dc79aeef
commit d02c9953e9
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 15 additions and 2 deletions

View File

@ -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]]
}