darkcloud-nvimconfig/init.vim

73 lines
2.6 KiB
VimL
Raw Normal View History

2024-03-01 16:28:35 -05:00
"============================================================="
" "
2024-03-01 22:33:54 -05:00
" Darkcloud Neovim Config: init.vim "
2024-03-01 16:28:35 -05:00
" "
" By: Kevin MacMartin (prurigro@gmail.com) "
" Website: https://github.com/prurigro/darkcloud-nvimconfig "
" "
" License: MIT "
" "
"============================================================="
"darkcloud neovim config folder path: {{{
"the location of darkcloud-nvimconfig (default is /etc/darkcloud-nvimconfig)
let g:darkcloudpath = get(g:, "darkcloudpath", "/etc/darkcloud-nvimconfig")
"}}}
"add config directory: (distro-agnostic system-wide)
let &runtimepath = printf('%s,%s/vim,%s/vim/after,%s/local', &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath)
2024-03-01 16:28:35 -05:00
"load colours
if &term != "linux"
runtime colors/palette.vim
2024-03-01 16:28:35 -05:00
"load colour scheme:
colorscheme darkcloud
endif
2024-03-01 16:28:35 -05:00
"load user config:
runtime user.vim
"set default values for user settings
let g:autostartchecker = get(g:, "autostartchecker", 0)
let g:autostarttagbar = get(g:, "autostarttagbar", 0)
let g:enabletreesitter = get(g:, "enabletreesitter", 0)
let g:enablecompletion = get(g:, "enablecompletion", 0)
let g:enableautotags = get(g:, "enableautotags", 0)
let g:enablepowerline = get(g:, "enablepowerline", 0)
2024-03-01 16:28:35 -05:00
"load settings:
runtime config/settings.vim
2024-03-01 16:28:35 -05:00
"initialize plugins:
let g:pathogen_disabled = get(g:, "pathogen_disabled", [])
2024-03-01 16:28:35 -05:00
"don't load vim-gutentags if g:enableautotags is false or ctags isn't in path
if !g:enableautotags || !executable('ctags')
call add(g:pathogen_disabled, 'vim-gutentags')
endif
"don't load nvim-cmp or its dependencies if g:enablecompletion is false
if !g:enablecompletion
call add(g:pathogen_disabled, 'nvim-cmp')
call add(g:pathogen_disabled, 'cmp-buffer')
call add(g:pathogen_disabled, 'cmp-nvim-tags')
call add(g:pathogen_disabled, 'cmp-omni')
call add(g:pathogen_disabled, 'cmp-snippy')
call add(g:pathogen_disabled, 'cmp-treesitter')
call add(g:pathogen_disabled, 'nvim-snippy')
call add(g:pathogen_disabled, 'vim-snippets')
endif
"use pathogen to load plugins that haven't been disabled
runtime bundle/vim-pathogen/autoload/pathogen.vim
"load keymappings:
runtime config/keyboard.vim
"load plugin configuration:
runtime config/plugins.vim
"load after config:
runtime config/after.vim