.
This commit is contained in:
@@ -65,6 +65,7 @@ source ~/.bash_alias
|
|||||||
## source custom functions for specific purposes
|
## source custom functions for specific purposes
|
||||||
script_path=${HOME}/dotfiles/misc/scripts/
|
script_path=${HOME}/dotfiles/misc/scripts/
|
||||||
source_list=()
|
source_list=()
|
||||||
|
source_list+=("${script_path}/navigate_bash_setup.sh")
|
||||||
source_list+=("${script_path}/colors.sh")
|
source_list+=("${script_path}/colors.sh")
|
||||||
source_list+=("${script_path}/dunst.sh")
|
source_list+=("${script_path}/dunst.sh")
|
||||||
|
|
||||||
|
|||||||
22
misc/scripts/navigate_bash_setup.sh
Normal file
22
misc/scripts/navigate_bash_setup.sh
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
__call_navigate() {
|
||||||
|
arg_pid=" --pid $$ "
|
||||||
|
eval "$(navigate ${arg_pid} $@)"
|
||||||
|
}
|
||||||
|
|
||||||
|
push() {
|
||||||
|
__call_navigate "push $@"
|
||||||
|
}
|
||||||
|
|
||||||
|
pop() {
|
||||||
|
__call_navigate "pop $@"
|
||||||
|
}
|
||||||
|
|
||||||
|
stack() {
|
||||||
|
__call_navigate "stack $@"
|
||||||
|
}
|
||||||
|
|
||||||
|
book() {
|
||||||
|
__call_navigate "bookmark $@"
|
||||||
|
}
|
||||||
@@ -9,9 +9,9 @@ bookmarks_separator = " - "
|
|||||||
align_separators = true
|
align_separators = true
|
||||||
|
|
||||||
[styles]
|
[styles]
|
||||||
stack_number = "default"
|
stack_number_style = "default"
|
||||||
stack_separator = "cyan"
|
stack_separator_style = "cyan"
|
||||||
stack_path = "default"
|
stack_path_style = "default"
|
||||||
bookmarks_name = "default"
|
bookmarks_name_style = "default"
|
||||||
bookmarks_seperator = "cyan"
|
bookmarks_seperator_style = "cyan"
|
||||||
bookmarks_path = "default"
|
bookmarks_path_style = "default"
|
||||||
|
|||||||
@@ -96,18 +96,14 @@ return {
|
|||||||
|
|
||||||
-- Select next/previous item with Tab / Shift + Tab
|
-- Select next/previous item with Tab / Shift + Tab
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if luasnip.expand_or_locally_jumpable() then
|
||||||
cmp.select_next_item()
|
|
||||||
elseif luasnip.expand_or_locally_jumpable() then
|
|
||||||
luasnip.expand_or_jump()
|
luasnip.expand_or_jump()
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
end, { "i", "s" }),
|
end, { "i", "s" }),
|
||||||
["<S-Tab>"] = cmp.mapping(function(fallback)
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if luasnip.locally_jumpable(-1) then
|
||||||
cmp.select_prev_item()
|
|
||||||
elseif luasnip.locally_jumpable(-1) then
|
|
||||||
luasnip.jump(-1)
|
luasnip.jump(-1)
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
|
|||||||
Reference in New Issue
Block a user