mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
update conf related to firenvim
1. Change autocmd for buffers started by firenivm, it seems that BufNewFile does not work as intended, in contrast, BufEnter, BufRead, BufWinEnter seem to work. 2. Disable several plugins if we are using firenvim, these plugins include dashboard-nvim, lualine, bufferline.nvim
This commit is contained in:
@@ -362,16 +362,20 @@ if exists('g:started_by_firenvim') && g:started_by_firenvim
|
||||
\ }
|
||||
\ }
|
||||
|
||||
function! s:setup_firenvim() abort
|
||||
set noruler noshowcmd
|
||||
set laststatus=0 showtabline=0
|
||||
function s:setup_firenvim() abort
|
||||
set signcolumn=no
|
||||
set noruler
|
||||
set noshowcmd
|
||||
set laststatus=0
|
||||
set showtabline=0
|
||||
endfunction
|
||||
|
||||
augroup firenvim
|
||||
autocmd!
|
||||
autocmd FileType text call s:setup_firenvim()
|
||||
autocmd BufNewFile github.com_*.txt set filetype=markdown
|
||||
autocmd BufNewFile stackoverflow.com_*.txt set filetype=markdown
|
||||
autocmd BufEnter * call s:setup_firenvim()
|
||||
autocmd BufEnter sqlzoo*.txt set filetype=sql
|
||||
autocmd BufEnter github.com_*.txt set filetype=markdown
|
||||
autocmd BufEnter stackoverflow.com_*.txt set filetype=markdown
|
||||
augroup END
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user