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")
|
|
|
|
"}}}
|
|
|
|
|
2024-03-03 21:36:51 -05:00
|
|
|
"add config directory: (distro-agnostic system-wide)
|
2024-03-05 13:13:20 -05:00
|
|
|
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
|
|
|
|
2024-03-03 21:36:51 -05:00
|
|
|
"load colours
|
2024-03-06 12:07:55 -05:00
|
|
|
runtime colors/palette.vim
|
2024-03-01 16:28:35 -05:00
|
|
|
|
2024-03-06 12:07:55 -05:00
|
|
|
"load colour scheme:
|
|
|
|
colorscheme darkcloud
|
2024-03-01 16:28:35 -05:00
|
|
|
|
2024-03-03 21:36:51 -05:00
|
|
|
"load user config:
|
2024-03-04 14:39:06 -05:00
|
|
|
runtime user.vim
|
|
|
|
|
|
|
|
"set default values for user settings
|
|
|
|
let g:autostartchecker = get(g:, "autostartchecker", 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
|
|
|
|
2024-03-03 21:36:51 -05:00
|
|
|
"load settings:
|
|
|
|
runtime config/settings.vim
|
2024-03-01 16:28:35 -05:00
|
|
|
|
2024-03-03 21:36:51 -05:00
|
|
|
"initialize plugins:
|
|
|
|
let g:pathogen_disabled = get(g:, "pathogen_disabled", [])
|
2024-03-01 16:28:35 -05:00
|
|
|
|
2024-03-04 14:39:06 -05:00
|
|
|
"don't load vim-gutentags if g:enableautotags is false or ctags isn't in path
|
2024-03-05 13:13:20 -05:00
|
|
|
if !g:enableautotags || !executable("ctags")
|
|
|
|
call add(g:pathogen_disabled, "vim-gutentags")
|
2024-03-03 21:36:51 -05:00
|
|
|
endif
|
|
|
|
|
2024-03-04 14:39:06 -05:00
|
|
|
"don't load nvim-cmp or its dependencies if g:enablecompletion is false
|
|
|
|
if !g:enablecompletion
|
2024-03-05 13:13:20 -05:00
|
|
|
call add(g:pathogen_disabled, "cmp-async-path")
|
|
|
|
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-cmp")
|
|
|
|
call add(g:pathogen_disabled, "nvim-snippy")
|
|
|
|
call add(g:pathogen_disabled, "vim-snippets")
|
2024-03-03 21:36:51 -05:00
|
|
|
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
|