Compare commits
2 Commits
b6a2fa03c3
...
89257b28ec
| Author | SHA1 | Date | |
|---|---|---|---|
| 89257b28ec | |||
| f9617088f8 |
@ -39,17 +39,17 @@ return {
|
|||||||
-- })
|
-- })
|
||||||
end,
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
local trouble_provider = require("trouble.providers.telescope")
|
local trouble_provider = require("trouble.sources.telescope")
|
||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
|
|
||||||
telescope.setup {
|
telescope.setup {
|
||||||
defaults = {
|
defaults = {
|
||||||
mappings = {
|
mappings = {
|
||||||
i = {
|
i = {
|
||||||
["<c-t>"] = trouble_provider.open_with_trouble
|
["<c-t>"] = trouble_provider.open
|
||||||
},
|
},
|
||||||
n = {
|
n = {
|
||||||
["<c-t>"] = trouble_provider.open_with_trouble
|
["<c-t>"] = trouble_provider.open
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
70
zsh/.zshrc
70
zsh/.zshrc
@ -46,72 +46,10 @@ alias eml='z ~/Documents/kit/EMLLAB/emllab-challenge && . venv/bin/activate && c
|
|||||||
|
|
||||||
alias hyp='z ~/git/HyperLink_SW && clear'
|
alias hyp='z ~/git/HyperLink_SW && clear'
|
||||||
|
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
eval "$(thefuck --alias)"
|
eval "$(thefuck --alias)"
|
||||||
|
|
||||||
#source /usr/share/git/completion/git-completion.zsh
|
. "$HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||||
#
|
bindkey '^y' autosuggest-accept
|
||||||
#eval "$(thefuck --alias)"
|
|
||||||
#
|
|
||||||
#export VISUAL=nvim
|
|
||||||
#export EDITOR="$VISUAL"
|
|
||||||
#
|
|
||||||
#function pym {
|
|
||||||
# python -m $@
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#function _pym_complete {
|
|
||||||
#
|
|
||||||
# local executable current previous options
|
|
||||||
# executable=${COMP_WORDS[0]}
|
|
||||||
# current="${COMP_WORDS[COMP_CWORD]}"
|
|
||||||
# previous="${COMP_WORDS[COMP_CWORD-1]}"
|
|
||||||
#
|
|
||||||
# COMPREPLY=()
|
|
||||||
# if [[ ( "$executable" == python* && "$previous" == "-m" ) ||
|
|
||||||
# ( "$executable" == pym && ! "$current" == -* ) ]]; then
|
|
||||||
#
|
|
||||||
# options="`python <<EOF
|
|
||||||
#import os
|
|
||||||
#import pkgutil
|
|
||||||
#import sys
|
|
||||||
#current = '$current'
|
|
||||||
#if '.' in current:
|
|
||||||
# package_name = current.rsplit('.', 1)[0]
|
|
||||||
# try:
|
|
||||||
# package = __import__(package_name, fromlist=['__name__'])
|
|
||||||
# except:
|
|
||||||
# exit()
|
|
||||||
#else:
|
|
||||||
# package_name = ''
|
|
||||||
# package = None
|
|
||||||
#def walk_packages(paths, match, prefix=''):
|
|
||||||
# for loader, name, ispkg in pkgutil.iter_modules(paths, prefix):
|
|
||||||
# if not name.startswith(match):
|
|
||||||
# continue
|
|
||||||
# yield loader, name, ispkg
|
|
||||||
# if ispkg:
|
|
||||||
# for x in walk_packages([os.path.join(loader.path, name.split('.')[-1])], match, name + '.'):
|
|
||||||
# yield x
|
|
||||||
#for loader, name, ispkg in walk_packages(
|
|
||||||
# package and getattr(package, '__path__', ()),
|
|
||||||
# current,
|
|
||||||
# package_name and (package_name + '.'),
|
|
||||||
#):
|
|
||||||
# if ispkg:
|
|
||||||
# continue
|
|
||||||
# if name.endswith('.__main__'):
|
|
||||||
# print(name.rsplit('.', 1)[0])
|
|
||||||
# else:
|
|
||||||
# print(name)
|
|
||||||
#EOF
|
|
||||||
# `"
|
|
||||||
# COMPREPLY=( $(compgen -W "${options}") )
|
|
||||||
# return 0
|
|
||||||
# fi
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#complete -F _pym_complete -o nospace -o bashdefault -o default pym
|
|
||||||
#complete -F _pym_complete -o nospace -o bashdefault -o default python
|
|
||||||
#
|
|
||||||
. "$HOME/.cargo/env"
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user