dotfiles/.config/nvim/lua/my/net.lua

44 lines
1.3 KiB
Lua
Raw Normal View History

2022-08-12 03:33:18 +02:00
require('my/plugins')
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'
2022-08-12 03:33:18 +02:00
}
}
}
2022-08-12 03:33:18 +02:00
2022-08-15 03:19:05 +02:00
vim.o.wrap = true
vim.o.guifont = 'Source_Code_Pro:h10'
vim.o.textwidth = 0
2022-08-12 03:33:18 +02:00
2022-08-17 19:13:25 +02:00
local fv_fileprefix = vim.env['XDG_RUNTIME_DIR'] .. '/firenvim/'
vim.api.nvim_create_augroup('firenvim', { clear = true })
vim.api.nvim_create_autocmd(
{ 'BufEnter' },
{
group = 'firenvim',
pattern = {
2022-08-17 19:13:25 +02:00
fv_fileprefix .. 'schlomp\\.space_*',
fv_fileprefix .. 'codeberg\\.org_*',
fv_fileprefix .. 'gitlab\\.com_*',
fv_fileprefix .. 'github\\.com_*',
fv_fileprefix .. 'very\\.tastytea\\.de_*',
fv_fileprefix .. 'bookwyrm\\.social_*',
fv_fileprefix .. 'openlibrary\\.org_*',
fv_fileprefix .. 'bugs\\.gentoo\\.org_*',
},
command = [[set filetype=markdown | set tw=0]]
})
end