diff options
| author | jdhao <jdhao@hotmail.com> | 2022-09-28 23:22:23 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2022-09-28 23:22:23 +0800 |
| commit | 4026baef19ba0d2320704fdbf876224da7223d24 (patch) | |
| tree | 1ea5f61bb6e93c6de1bc55c5d3ae8665331bfe8e /core | |
| parent | f63152f79b8605a1fe040777caee30de49c9773c (diff) | |
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
Diffstat (limited to 'core')
| -rw-r--r-- | core/plugins.vim | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/core/plugins.vim b/core/plugins.vim index 3d9dce3..89d792b 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -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 |
