mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-24 04:21:26 -05:00
Compare commits
No commits in common. "2c60090d33e53dae6004daa1c77b71644ae08549" and "b03833cb48f3776c6065ee94245cf8fa84006c39" have entirely different histories.
2c60090d33
...
b03833cb48
10 changed files with 25 additions and 32 deletions
8
init.vim
8
init.vim
|
@ -9,11 +9,13 @@
|
||||||
" "
|
" "
|
||||||
"============================================================="
|
"============================================================="
|
||||||
|
|
||||||
"load config path
|
"darkcloud neovim config folder path: {{{
|
||||||
exec 'source ' . expand('<sfile>:p:h') . '/local/path.vim'
|
"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)
|
"add config directory: (distro-agnostic system-wide)
|
||||||
let &runtimepath = printf("%s,%s/vim,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath)
|
let &runtimepath = printf("%s,%s/vim,%s/vim/after,%s/local", &runtimepath, g:darkcloudpath, g:darkcloudpath, g:darkcloudpath)
|
||||||
|
|
||||||
"load colours
|
"load colours
|
||||||
runtime colors/palette.vim
|
runtime colors/palette.vim
|
||||||
|
|
|
@ -26,7 +26,8 @@ A theme, config and collection of plugins for Neovim
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Clone the darkcloud-nvimconfig repo and run the `update` script
|
1. Clone the darkcloud-nvimconfig repo and run the `update` script
|
||||||
2. Add `source /path/to/darkcloud-nvimconfig/init.vim` to your neovim init
|
2. By default darkcloud-nvimconfig expects to be installed @ `/etc/darkcloud-nvimconfig`, if you're installing it elsewhere you should add `let g:darkcloudpath = "/path/to/darkcloud-nvimconfig"` to your neovim init
|
||||||
|
3. Add `source /path/to/darkcloud-nvimconfig/init.vim` to your neovim init (after `let g:darkcloudpath = ...` if present)
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
|
4
update
4
update
|
@ -13,7 +13,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
user_vim_config=local/user.vim
|
user_vim_config=local/user.vim
|
||||||
path_config=local/path.vim
|
|
||||||
local_bundle_dir=local/bundle
|
local_bundle_dir=local/bundle
|
||||||
error_log=update-errors.log
|
error_log=update-errors.log
|
||||||
|
|
||||||
|
@ -125,9 +124,6 @@ printf '\n%s\n' "$cbg_black ~~~ DarkCloud Neovim Config Update Tool ~~~ $c_reset
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# create or update path.vim
|
|
||||||
printf '%s\n' "let g:darkcloudpath = \"$(readlink -f "$script_home")\"" > "$path_config"
|
|
||||||
|
|
||||||
# create user.vim if it doesn't exist
|
# create user.vim if it doesn't exist
|
||||||
[[ -e "$user_vim_config" ]] || {
|
[[ -e "$user_vim_config" ]] || {
|
||||||
printf '\n%s' "$cbg_blue >> Creating user config file:$c_reset"
|
printf '\n%s' "$cbg_blue >> Creating user config file:$c_reset"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 954682108d21b412561fb32e3fa766c7ee539984
|
Subproject commit 48d73c87c3c321e6298755abc5449267192d07e6
|
|
@ -1 +1 @@
|
||||||
Subproject commit bfb50de9cb0673a3bff620d881f690fb7e0d1328
|
Subproject commit e5a05ba5e298cc1e1dad8eb8095b8d4d89a7f793
|
|
@ -1 +1 @@
|
||||||
Subproject commit ced6375723b20616282f9f6a1018a63ae19b106a
|
Subproject commit ca93cb2c34b67ab22d01976fc90bc95627a3317f
|
|
@ -1 +1 @@
|
||||||
Subproject commit 375c2d86cee6674afd75b4f727ce3a80065552f7
|
Subproject commit 6b5f95aa4d24f2c629a74f2c935c702b08dbde62
|
|
@ -1 +1 @@
|
||||||
Subproject commit a03b22e96dd894d091e4318c749814132f50dc82
|
Subproject commit 3f9236a3a8cfa1a4929d0fd8296722e4ed3550be
|
|
@ -1 +1 @@
|
||||||
Subproject commit f0a3184d9f90b96b044d5914625a25c554d7f301
|
Subproject commit 96d79529edc3dee1ccf2ce7b75a88cb546ec2501
|
|
@ -27,8 +27,6 @@ if (vim.g.enabletreesitter == 1) then
|
||||||
lookahead = true, -- Automatically jump forward to textobj
|
lookahead = true, -- Automatically jump forward to textobj
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
[ "ap" ] = { query = "@parameter.outer", desc = "Select outer part of a parameter region" },
|
|
||||||
[ "ip" ] = { query = "@parameter.inner", desc = "Select inner part of a parameter region" },
|
|
||||||
[ "ac" ] = { query = "@class.outer", desc = "Select outer part of a class region" },
|
[ "ac" ] = { query = "@class.outer", desc = "Select outer part of a class region" },
|
||||||
[ "ic" ] = { query = "@class.inner", desc = "Select inner part of a class region" },
|
[ "ic" ] = { query = "@class.inner", desc = "Select inner part of a class region" },
|
||||||
[ "af" ] = { query = "@function.outer", desc = "Select outer part of a function region" },
|
[ "af" ] = { query = "@function.outer", desc = "Select outer part of a function region" },
|
||||||
|
@ -39,10 +37,10 @@ if (vim.g.enabletreesitter == 1) then
|
||||||
selection_modes = {
|
selection_modes = {
|
||||||
[ "@parameter.outer" ] = "v",
|
[ "@parameter.outer" ] = "v",
|
||||||
[ "@parameter.inner" ] = "v",
|
[ "@parameter.inner" ] = "v",
|
||||||
[ "@class.inner" ] = "v",
|
[ "@class.inner" ] = "V",
|
||||||
[ "@class.outer" ] = "v",
|
[ "@class.outer" ] = "V",
|
||||||
[ "@function.outer" ] = "v",
|
[ "@function.outer" ] = "V",
|
||||||
[ "@function.inner" ] = "v",
|
[ "@function.inner" ] = "V",
|
||||||
},
|
},
|
||||||
|
|
||||||
include_surrounding_whitespace = false,
|
include_surrounding_whitespace = false,
|
||||||
|
@ -53,27 +51,23 @@ if (vim.g.enabletreesitter == 1) then
|
||||||
set_jumps = true, -- whether to set jumps in the jumplist
|
set_jumps = true, -- whether to set jumps in the jumplist
|
||||||
|
|
||||||
goto_next_start = {
|
goto_next_start = {
|
||||||
[ "]p" ] = { query = "@parameter.outer", desc = "Next parameter start" },
|
|
||||||
[ "]c" ] = { query = "@class.outer", desc = "Next class start" },
|
[ "]c" ] = { query = "@class.outer", desc = "Next class start" },
|
||||||
[ "]f" ] = { query = "@function.outer", desc = "Next function start" },
|
[ "]f" ] = { query = "@function.outer", desc = "Next function start" },
|
||||||
},
|
},
|
||||||
|
|
||||||
|
goto_next_end = {
|
||||||
|
[ "]C" ] = { query = "@class.outer", desc = "Next class end" },
|
||||||
|
[ "]F" ] = { query = "@function.outer", desc = "Next function end" },
|
||||||
|
},
|
||||||
|
|
||||||
goto_previous_start = {
|
goto_previous_start = {
|
||||||
[ "[p" ] = { query = "@parameter.outer", desc = "Previous parameter start" },
|
[ "[c" ] = { query = "@class.outer", desc = "Prevoius class start" },
|
||||||
[ "[c" ] = { query = "@class.outer", desc = "Previous class start" },
|
|
||||||
[ "[f" ] = { query = "@function.outer", desc = "Previous function start" },
|
[ "[f" ] = { query = "@function.outer", desc = "Previous function start" },
|
||||||
},
|
},
|
||||||
|
|
||||||
goto_next_end = {
|
|
||||||
[ "}P" ] = { query = "@parameter.outer", desc = "Next parameter end" },
|
|
||||||
[ "}C" ] = { query = "@class.outer", desc = "Next class end" },
|
|
||||||
[ "}F" ] = { query = "@function.outer", desc = "Next function end" },
|
|
||||||
},
|
|
||||||
|
|
||||||
goto_previous_end = {
|
goto_previous_end = {
|
||||||
[ "{P" ] = { query = "@parameter.outer", desc = "Previous parameter end" },
|
[ "[C" ] = { query = "@class.outer", desc = "Previous class end" },
|
||||||
[ "{C" ] = { query = "@class.outer", desc = "Previous class end" },
|
[ "[F" ] = { query = "@function.outer", desc = "Previous function end" },
|
||||||
[ "{F" ] = { query = "@function.outer", desc = "Previous function end" },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue