nvim: firenvim: automatically launch once on some sites
This commit is contained in:
parent
a0dc79aeef
commit
d02c9953e9
|
@ -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]]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user