Compare commits

...

4 Commits

2 changed files with 17 additions and 8 deletions

View File

@ -137,9 +137,11 @@ let light_theme = {
}
# External completer example
# let carapace_completer = {|spans|
# carapace $spans.0 nushell $spans | from json
# }
let carapace_completer = if (which carapace | is-empty) {
null
} else {
{|spans| carapace $spans.0 nushell ...$spans | from json}
}
# The default config record. This is where much of your global configuration is setup.
$env.config = {
@ -210,7 +212,7 @@ $env.config = {
external: {
enable: true # set to false to prevent nushell looking into $env.PATH to find more suggestions, `false` recommended for WSL users as this look up may be very slow
max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
completer: null # check 'carapace_completer' above as an example
completer: $carapace_completer
}
}
@ -760,7 +762,7 @@ $env.config = {
}
{
name: move_up
modifier: alt
modifier: control
keycode: char_k
mode: [vi_normal, vi_insert]
event: {
@ -772,7 +774,7 @@ $env.config = {
}
{
name: move_down
modifier: alt
modifier: control
keycode: char_j
mode: [vi_normal, vi_insert]
event: {
@ -784,7 +786,7 @@ $env.config = {
}
{
name: move_left
modifier: alt
modifier: control
keycode: char_h
mode: [vi_normal, vi_insert]
event: {
@ -796,7 +798,7 @@ $env.config = {
}
{
name: move_right_or_take_history_hint
modifier: alt
modifier: control
keycode: char_l
mode: [vi_normal, vi_insert]
event: {
@ -814,6 +816,7 @@ alias v = nvim
alias tl = tmux list-sessions
alias tn = tmux new -s
alias ta = tmux attach -t
alias nocaps = setxkbmap pl -option ctrl:nocaps
def gst [] {
git status -s | detect columns -n | rename status file
@ -822,3 +825,7 @@ def gst [] {
def glog [] {
git log --pretty=%h»¦«%aN»¦«%s»¦«%aD | lines | split column "»¦«" sha1 committer desc merged_at
}
def l [pattern? = '.'] {
ls $pattern | grid -c
}

View File

@ -156,6 +156,8 @@ keybinds {
bind "Alt -" { Resize "Decrease"; }
bind "Alt [" { PreviousSwapLayout; }
bind "Alt ]" { NextSwapLayout; }
bind "Alt H" { GoToPreviousTab; }
bind "Alt L" { GoToNextTab; }
}
shared_except "normal" "locked" {
bind "Enter" "Esc" { SwitchToMode "Normal"; }