Compare commits
3 Commits
8e6a1abf26
...
2b845c39e9
Author | SHA1 | Date | |
---|---|---|---|
2b845c39e9 | |||
e71b3520c6 | |||
207a119f0d |
@ -6,17 +6,6 @@ bind '"\e": "\C-W\c-d"'
|
|||||||
|
|
||||||
OPEN_MODE="new_pane"
|
OPEN_MODE="new_pane"
|
||||||
|
|
||||||
while getopts ":l:v" option; do
|
|
||||||
case $option in
|
|
||||||
l)
|
|
||||||
OPEN_MODE="local"
|
|
||||||
;;
|
|
||||||
v)
|
|
||||||
VERBOSE=true
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
debug () {
|
debug () {
|
||||||
if [ "$VERBOSE" = true ]; then
|
if [ "$VERBOSE" = true ]; then
|
||||||
echo $1
|
echo $1
|
||||||
@ -59,6 +48,18 @@ open_new_pane () {
|
|||||||
tmux display-popup -C
|
tmux display-popup -C
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while getopts "lv" option; do
|
||||||
|
debug "Reading option $option"
|
||||||
|
case $option in
|
||||||
|
l)
|
||||||
|
OPEN_MODE="local"
|
||||||
|
;;
|
||||||
|
v)
|
||||||
|
VERBOSE=true
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
declare -A CUSTOM_SESSIONS
|
declare -A CUSTOM_SESSIONS
|
||||||
CUSTOM_SESSIONS[Projects]=Halia
|
CUSTOM_SESSIONS[Projects]=Halia
|
||||||
|
|
||||||
@ -80,6 +81,7 @@ PROJECT_NAME=$(echo $SELECTED | rev | cut -d '/' -f1 | rev)
|
|||||||
SESSION_NAME=$([ -z "${CUSTOM_SESSIONS[$PROJECT_ROOT]}" ] && echo "$PROJECT_ROOT" || echo "${CUSTOM_SESSIONS[$PROJECT_ROOT]}")
|
SESSION_NAME=$([ -z "${CUSTOM_SESSIONS[$PROJECT_ROOT]}" ] && echo "$PROJECT_ROOT" || echo "${CUSTOM_SESSIONS[$PROJECT_ROOT]}")
|
||||||
|
|
||||||
debug "Project path is $PROJECT_PATH"
|
debug "Project path is $PROJECT_PATH"
|
||||||
|
debug "Opening in $OPEN_MODE"
|
||||||
|
|
||||||
case $OPEN_MODE in
|
case $OPEN_MODE in
|
||||||
"new_pane")
|
"new_pane")
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
{
|
|
||||||
"dependencies": {
|
|
||||||
"coc-clangd": ">=0.25.0",
|
|
||||||
"coc-docker": ">=0.5.0",
|
|
||||||
"coc-go": ">=1.3.0",
|
|
||||||
"coc-json": ">=1.3.6",
|
|
||||||
"coc-markdownlint": ">=1.26.0",
|
|
||||||
"coc-pairs": ">=1.3.2",
|
|
||||||
"coc-pyright": ">=1.1.272",
|
|
||||||
"coc-rls": ">=1.1.6",
|
|
||||||
"coc-rust-analyzer": ">=0.68.2",
|
|
||||||
"coc-sh": ">=0.7.0",
|
|
||||||
"coc-tsserver": ">=1.11.11",
|
|
||||||
"coc-vetur": ">=1.2.5",
|
|
||||||
"coc-yaml": ">=1.8.0"
|
|
||||||
}
|
|
||||||
}
|
|
@ -42,6 +42,9 @@ return {
|
|||||||
lspconfig.docker_compose_language_service.setup({
|
lspconfig.docker_compose_language_service.setup({
|
||||||
capabilities = capabilities
|
capabilities = capabilities
|
||||||
})
|
})
|
||||||
|
lspconfig.dockerls.setup({
|
||||||
|
capabilities = capabilities
|
||||||
|
})
|
||||||
|
|
||||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {})
|
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {})
|
||||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {})
|
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {})
|
||||||
|
Loading…
Reference in New Issue
Block a user