tastytea
7a49812118
It may look nicer but it leads to problems. Also tweaked some thinks and cleaned up, made firenvim config only run if it is used.
53 lines
1.3 KiB
Lua
53 lines
1.3 KiB
Lua
require('my/plugins')
|
|
|
|
-- embed nvim in browsers
|
|
packer.use {
|
|
'https://github.com/glacambre/firenvim',
|
|
tag = '*',
|
|
run = function()
|
|
vim.fn['firenvim#install'](0)
|
|
end
|
|
}
|
|
|
|
if vim.g.started_by_firenvim then
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
|
|
vim.opt.wrap = true
|
|
vim.opt.guifont = 'Source_Code_Pro:h10'
|
|
vim.opt.textwidth = 0
|
|
vim.opt.colorcolumn = '0'
|
|
|
|
vim.api.nvim_create_augroup('firenvim', { clear = true })
|
|
vim.api.nvim_create_autocmd(
|
|
{ 'BufEnter' },
|
|
{
|
|
group = 'firenvim',
|
|
pattern = {
|
|
'schlomp.space_*',
|
|
'codeberg.org_*',
|
|
'gitlab.com_*',
|
|
'github.com_*',
|
|
'very.tastytea.de_*',
|
|
'bookwyrm.social_*',
|
|
'openlibrary.org_*',
|
|
'bugs.gentoo.org_*',
|
|
},
|
|
command = [[set filetype=markdown | set tw=0 cc=0]]
|
|
})
|
|
end
|