mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Merge pull request #120 from jdhao/firenvim
update conf related to firenvim
This commit is contained in:
commit
a8db734e75
@ -362,16 +362,20 @@ if exists('g:started_by_firenvim') && g:started_by_firenvim
|
|||||||
\ }
|
\ }
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
function! s:setup_firenvim() abort
|
function s:setup_firenvim() abort
|
||||||
set noruler noshowcmd
|
set signcolumn=no
|
||||||
set laststatus=0 showtabline=0
|
set noruler
|
||||||
|
set noshowcmd
|
||||||
|
set laststatus=0
|
||||||
|
set showtabline=0
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
augroup firenvim
|
augroup firenvim
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType text call s:setup_firenvim()
|
autocmd BufEnter * call s:setup_firenvim()
|
||||||
autocmd BufNewFile github.com_*.txt set filetype=markdown
|
autocmd BufEnter sqlzoo*.txt set filetype=sql
|
||||||
autocmd BufNewFile stackoverflow.com_*.txt set filetype=markdown
|
autocmd BufEnter github.com_*.txt set filetype=markdown
|
||||||
|
autocmd BufEnter stackoverflow.com_*.txt set filetype=markdown
|
||||||
augroup END
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,11 @@ vim.cmd("packadd packer.nvim")
|
|||||||
local packer = require("packer")
|
local packer = require("packer")
|
||||||
local packer_util = require("packer.util")
|
local packer_util = require("packer.util")
|
||||||
|
|
||||||
|
-- check if firenvim is active
|
||||||
|
local firenvim_not_active = function()
|
||||||
|
return not vim.g.started_by_firenvim
|
||||||
|
end
|
||||||
|
|
||||||
packer.startup {
|
packer.startup {
|
||||||
function(use)
|
function(use)
|
||||||
-- it is recommended to put impatient.nvim before any other plugins
|
-- it is recommended to put impatient.nvim before any other plugins
|
||||||
@ -130,13 +135,19 @@ packer.startup {
|
|||||||
use {
|
use {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
|
cond = firenvim_not_active,
|
||||||
config = [[require('config.statusline')]],
|
config = [[require('config.statusline')]],
|
||||||
}
|
}
|
||||||
|
|
||||||
use { "akinsho/bufferline.nvim", event = "VimEnter", config = [[require('config.bufferline')]] }
|
use { "akinsho/bufferline.nvim", event = "VimEnter",
|
||||||
|
cond = firenvim_not_active,
|
||||||
|
config = [[require('config.bufferline')]] }
|
||||||
|
|
||||||
-- fancy start screen
|
-- fancy start screen
|
||||||
use { "glepnir/dashboard-nvim", event = "VimEnter", config = [[require('config.dashboard-nvim')]] }
|
use { "glepnir/dashboard-nvim", event = "VimEnter",
|
||||||
|
cond = firenvim_not_active,
|
||||||
|
config = [[require('config.dashboard-nvim')]]
|
||||||
|
}
|
||||||
|
|
||||||
use {
|
use {
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user