2023-03-13 13:45:59 +00:00
|
|
|
" textarea.inputbox is for phpBB
|
|
|
|
let g:firenvim_config = {
|
|
|
|
\ 'globalSettings': {
|
|
|
|
\ 'alt': 'all',
|
|
|
|
\ },
|
|
|
|
\ 'localSettings': {
|
|
|
|
\ '.*': {
|
|
|
|
\ 'cmdline': 'firenvim',
|
|
|
|
\ 'priority': 0,
|
|
|
|
\ 'selector': 'textarea:not([readonly]):not([class="handsontableInput"]):not([wrap="off"]):not([rows="1"]):not([title="Replace"]):not([title="Search"]):not([name="message"]),
|
2024-06-28 19:40:11 +00:00
|
|
|
\ div[role="textbox"]:not([aria-label="Search"]):not([class="cm-content"]):not([class="ProseMirror"]), div[class="CodeMirror"]',
|
2023-03-13 13:45:59 +00:00
|
|
|
\ 'takeover': 'always',
|
|
|
|
\ },
|
|
|
|
\ '.*com.*': {
|
|
|
|
\ 'priority': 1,
|
|
|
|
\ 'selector': 'textarea.inputbox',
|
|
|
|
\ 'takeover': 'once',
|
|
|
|
\ },
|
|
|
|
\
|
|
|
|
\ '.*wiki.*\.org.*': { 'priority': 9, 'takeover': 'never', },
|
2023-04-27 12:28:04 +00:00
|
|
|
\ '://wiki\..*': { 'priority': 9, 'takeover': 'never', },
|
2023-03-13 13:45:59 +00:00
|
|
|
\ '.*openstreetmap\.org.*': { 'priority': 9, 'takeover': 'once', },
|
|
|
|
\ '.*openstreetmap\.de.*': { 'priority': 9, 'takeover': 'once', },
|
|
|
|
\
|
2023-07-27 15:17:12 +00:00
|
|
|
\ '.*mail.*': { 'priority': 9, 'takeover': 'once', },
|
2023-03-13 13:45:59 +00:00
|
|
|
\ '.*church\.tools.*': { 'priority': 9, 'takeover': 'empty', },
|
|
|
|
\ '.*element\.io.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\
|
|
|
|
\ '.*discord\.com.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '://chat\..*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '.*twitter\.com.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\
|
|
|
|
\ '://pve.*': { 'priority': 9, 'takeover': 'never', },
|
2023-07-20 12:58:14 +00:00
|
|
|
\ '://46.*': { 'priority': 9, 'takeover': 'never', },
|
2023-03-13 13:45:59 +00:00
|
|
|
\ '.*:8006/.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\
|
|
|
|
\ '.*calendar\.google\.com.*': { 'priority': 9, 'takeover': 'empty', },
|
|
|
|
\ '.*docs\.google\.com.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '.*contacts\.google\.com.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '.*cloud\.atomtoast\.xyz.*': { 'priority': 9, 'takeover': 'never', },
|
2023-11-04 18:12:48 +00:00
|
|
|
\ '://notion\.so.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '://bbb\..*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '://bigbluebutton.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '://dhall-lang.org.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '://aur.archlinux.org/account.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '.*\.hobbyfarm\..*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '://rancher\..*': { 'priority': 9, 'takeover': 'never', },
|
2023-03-13 13:45:59 +00:00
|
|
|
\
|
|
|
|
\ '.*stackexchange\.com.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '.*stackoverflow\.com.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '.*com/questions/[0-9]+/.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ '.*com/posts/[0-9]+/.*': { 'priority': 9, 'takeover': 'never', },
|
|
|
|
\ }
|
|
|
|
\ }
|
|
|
|
if exists('g:started_by_firenvim')
|
|
|
|
nnoremap <Esc><Esc> :call firenvim#focus_page()<CR>
|
|
|
|
|
|
|
|
autocmd FocusLost,InsertLeave,BufLeave * ++nested call WriteSilent()
|
|
|
|
function WriteSilent()
|
|
|
|
let was_enabled=b:strip_whitespace_on_save
|
|
|
|
DisableStripWhitespaceOnSave
|
|
|
|
write
|
|
|
|
if was_enabled
|
|
|
|
EnableStripWhitespaceOnSave
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
endif
|