mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Use lua to configure lua plugins
This commit is contained in:
parent
764bd0c2bb
commit
4689c4b22f
@ -470,13 +470,6 @@ let g:airline#extensions#scrollbar#enabled = 0
|
||||
" Do not change working directory when opening files.
|
||||
let g:startify_change_to_dir = 0
|
||||
let g:startify_fortune_use_unicode = 1
|
||||
|
||||
""""""""""""""""""""""""""""indent-blankline settings""""""""""""""""""""""""""""
|
||||
let g:indent_blankline_char = '│'
|
||||
" let g:indent_blankline_char = '┆'
|
||||
" let g:indent_blankline_char = '┊'
|
||||
|
||||
let g:indent_blankline_filetype_exclude = ['help', 'startify', 'git', 'markdown']
|
||||
"}}
|
||||
|
||||
"{{ Misc plugin setting
|
||||
|
||||
2
lua/config/indent-blankline.lua
Normal file
2
lua/config/indent-blankline.lua
Normal file
@ -0,0 +1,2 @@
|
||||
vim.g.indent_blankline_char = '│'
|
||||
vim.g.indent_blankline_filetype_exclude = {'help', 'startify', 'git', 'markdown'}
|
||||
@ -102,7 +102,7 @@ require('packer').startup(
|
||||
|
||||
-- fancy start screen
|
||||
use {'mhinz/vim-startify', event = 'VimEnter'}
|
||||
use {'lukas-reineke/indent-blankline.nvim'}
|
||||
use {'lukas-reineke/indent-blankline.nvim', config = [[require('config.indent-blankline')]]}
|
||||
|
||||
-- Highlight URLs inside vim
|
||||
use 'itchyny/vim-highlighturl'
|
||||
@ -291,6 +291,6 @@ require('packer').startup(
|
||||
vim.api.nvim_exec([[
|
||||
augroup packer_auto_compile
|
||||
autocmd!
|
||||
autocmd BufWritePost */nvim/lua/plugins.lua source <afile> | PackerCompile | unsilent echomsg 'Packer.nvim settings recompiled!'
|
||||
autocmd BufWritePost */lua/plugins.lua source <afile> | PackerCompile
|
||||
augroup END
|
||||
]], false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user