Skip to content

Commit

Permalink
Use lua to configure lua plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhao committed Jul 13, 2021
1 parent 764bd0c commit 4689c4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 0 additions & 7 deletions core/plugins.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lua/config/indent-blankline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vim.g.indent_blankline_char = ''
vim.g.indent_blankline_filetype_exclude = {'help', 'startify', 'git', 'markdown'}
4 changes: 2 additions & 2 deletions lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)

0 comments on commit 4689c4b

Please sign in to comment.