nvim: Enable host-specific config files
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
e1c0bba17b
commit
15b249c2e5
|
@ -446,8 +446,9 @@ au FileType rust nmap <leader>gd <Plug>(rust-doc)
|
|||
"*****************************************************************************
|
||||
|
||||
"" Include user's local vim config
|
||||
if filereadable(expand("~/.config/nvim/local_init.vim"))
|
||||
source ~/.config/nvim/local_init.vim
|
||||
let s:local_host_config = expand('~/.config/nvim/config.d' .. hostname())
|
||||
if filereadable(s:local_host_config)
|
||||
execute 'source ' .. s:local_host_config
|
||||
endif
|
||||
|
||||
"*****************************************************************************
|
||||
|
|
Reference in a new issue