Compare commits
4 Commits
2cb9042040
...
b18031ffc4
Author | SHA1 | Date | |
---|---|---|---|
b18031ffc4 | |||
df7e4085a9 | |||
9a7ab0608e | |||
71355aa027 |
@ -137,9 +137,11 @@ let light_theme = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# External completer example
|
# External completer example
|
||||||
# let carapace_completer = {|spans|
|
let carapace_completer = if (which carapace | is-empty) {
|
||||||
# carapace $spans.0 nushell $spans | from json
|
null
|
||||||
# }
|
} else {
|
||||||
|
{|spans| carapace $spans.0 nushell ...$spans | from json}
|
||||||
|
}
|
||||||
|
|
||||||
# The default config record. This is where much of your global configuration is setup.
|
# The default config record. This is where much of your global configuration is setup.
|
||||||
$env.config = {
|
$env.config = {
|
||||||
@ -210,7 +212,7 @@ $env.config = {
|
|||||||
external: {
|
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
|
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
|
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
|
name: move_up
|
||||||
modifier: alt
|
modifier: control
|
||||||
keycode: char_k
|
keycode: char_k
|
||||||
mode: [vi_normal, vi_insert]
|
mode: [vi_normal, vi_insert]
|
||||||
event: {
|
event: {
|
||||||
@ -772,7 +774,7 @@ $env.config = {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
name: move_down
|
name: move_down
|
||||||
modifier: alt
|
modifier: control
|
||||||
keycode: char_j
|
keycode: char_j
|
||||||
mode: [vi_normal, vi_insert]
|
mode: [vi_normal, vi_insert]
|
||||||
event: {
|
event: {
|
||||||
@ -784,7 +786,7 @@ $env.config = {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
name: move_left
|
name: move_left
|
||||||
modifier: alt
|
modifier: control
|
||||||
keycode: char_h
|
keycode: char_h
|
||||||
mode: [vi_normal, vi_insert]
|
mode: [vi_normal, vi_insert]
|
||||||
event: {
|
event: {
|
||||||
@ -796,7 +798,7 @@ $env.config = {
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
name: move_right_or_take_history_hint
|
name: move_right_or_take_history_hint
|
||||||
modifier: alt
|
modifier: control
|
||||||
keycode: char_l
|
keycode: char_l
|
||||||
mode: [vi_normal, vi_insert]
|
mode: [vi_normal, vi_insert]
|
||||||
event: {
|
event: {
|
||||||
@ -814,6 +816,7 @@ alias v = nvim
|
|||||||
alias tl = tmux list-sessions
|
alias tl = tmux list-sessions
|
||||||
alias tn = tmux new -s
|
alias tn = tmux new -s
|
||||||
alias ta = tmux attach -t
|
alias ta = tmux attach -t
|
||||||
|
alias nocaps = setxkbmap pl -option ctrl:nocaps
|
||||||
|
|
||||||
def gst [] {
|
def gst [] {
|
||||||
git status -s | detect columns -n | rename status file
|
git status -s | detect columns -n | rename status file
|
||||||
@ -822,3 +825,7 @@ def gst [] {
|
|||||||
def glog [] {
|
def glog [] {
|
||||||
git log --pretty=%h»¦«%aN»¦«%s»¦«%aD | lines | split column "»¦«" sha1 committer desc merged_at
|
git log --pretty=%h»¦«%aN»¦«%s»¦«%aD | lines | split column "»¦«" sha1 committer desc merged_at
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def l [pattern? = '.'] {
|
||||||
|
ls $pattern | grid -c
|
||||||
|
}
|
||||||
|
@ -156,6 +156,8 @@ keybinds {
|
|||||||
bind "Alt -" { Resize "Decrease"; }
|
bind "Alt -" { Resize "Decrease"; }
|
||||||
bind "Alt [" { PreviousSwapLayout; }
|
bind "Alt [" { PreviousSwapLayout; }
|
||||||
bind "Alt ]" { NextSwapLayout; }
|
bind "Alt ]" { NextSwapLayout; }
|
||||||
|
bind "Alt H" { GoToPreviousTab; }
|
||||||
|
bind "Alt L" { GoToNextTab; }
|
||||||
}
|
}
|
||||||
shared_except "normal" "locked" {
|
shared_except "normal" "locked" {
|
||||||
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user