Archived
1
0
Fork 0

nvim: Enable host-specific config files

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-01-01 19:18:03 +01:00
parent e1c0bba17b
commit 15b249c2e5
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF

View file

@ -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
"*****************************************************************************