.
This commit is contained in:
@@ -65,6 +65,7 @@ source ~/.bash_alias
|
||||
## source custom functions for specific purposes
|
||||
script_path=${HOME}/dotfiles/misc/scripts/
|
||||
source_list=()
|
||||
source_list+=("${script_path}/navigate_bash_setup.sh")
|
||||
source_list+=("${script_path}/colors.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
|
||||
|
||||
[styles]
|
||||
stack_number = "default"
|
||||
stack_separator = "cyan"
|
||||
stack_path = "default"
|
||||
bookmarks_name = "default"
|
||||
bookmarks_seperator = "cyan"
|
||||
bookmarks_path = "default"
|
||||
stack_number_style = "default"
|
||||
stack_separator_style = "cyan"
|
||||
stack_path_style = "default"
|
||||
bookmarks_name_style = "default"
|
||||
bookmarks_seperator_style = "cyan"
|
||||
bookmarks_path_style = "default"
|
||||
|
||||
@@ -96,18 +96,14 @@ return {
|
||||
|
||||
-- Select next/previous item with Tab / Shift + Tab
|
||||
["<Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_next_item()
|
||||
elseif luasnip.expand_or_locally_jumpable() then
|
||||
if luasnip.expand_or_locally_jumpable() then
|
||||
luasnip.expand_or_jump()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { "i", "s" }),
|
||||
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item()
|
||||
elseif luasnip.locally_jumpable(-1) then
|
||||
if luasnip.locally_jumpable(-1) then
|
||||
luasnip.jump(-1)
|
||||
else
|
||||
fallback()
|
||||
|
||||
Reference in New Issue
Block a user