finushel helix
This commit is contained in:
parent
4fbbfbf769
commit
c0197cfc96
5 changed files with 18 additions and 75 deletions
|
|
@ -7,6 +7,10 @@
|
||||||
settings = {
|
settings = {
|
||||||
theme = "gruvbox_dark_hard";
|
theme = "gruvbox_dark_hard";
|
||||||
editor = {
|
editor = {
|
||||||
|
end-of-line-diagnostics = "hint";
|
||||||
|
inline-diagnostics = {
|
||||||
|
cursor-line = "warning";
|
||||||
|
};
|
||||||
auto-save = {
|
auto-save = {
|
||||||
focus-lost = true;
|
focus-lost = true;
|
||||||
after-delay.enable = true;
|
after-delay.enable = true;
|
||||||
|
|
@ -34,6 +38,7 @@
|
||||||
lsp = {
|
lsp = {
|
||||||
display-messages = true;
|
display-messages = true;
|
||||||
display-inlay-hints = true;
|
display-inlay-hints = true;
|
||||||
|
display-progress-messages = true;
|
||||||
};
|
};
|
||||||
soft-wrap.enable = true;
|
soft-wrap.enable = true;
|
||||||
smart-tab.supersede-menu = false;
|
smart-tab.supersede-menu = false;
|
||||||
|
|
|
||||||
|
|
@ -73,73 +73,6 @@ let dark_theme = {
|
||||||
shape_raw_string: light_purple
|
shape_raw_string: light_purple
|
||||||
}
|
}
|
||||||
|
|
||||||
let light_theme = {
|
|
||||||
# color for nushell primitives
|
|
||||||
separator: dark_gray
|
|
||||||
leading_trailing_space_bg: { attr: n } # no fg, no bg, attr none effectively turns this off
|
|
||||||
header: green_bold
|
|
||||||
empty: blue
|
|
||||||
# Closures can be used to choose colors for specific values.
|
|
||||||
# The value (in this case, a bool) is piped into the closure.
|
|
||||||
# eg) {|| if $in { 'dark_cyan' } else { 'dark_gray' } }
|
|
||||||
bool: dark_cyan
|
|
||||||
int: dark_gray
|
|
||||||
filesize: cyan_bold
|
|
||||||
duration: dark_gray
|
|
||||||
date: purple
|
|
||||||
range: dark_gray
|
|
||||||
float: dark_gray
|
|
||||||
string: dark_gray
|
|
||||||
nothing: dark_gray
|
|
||||||
binary: dark_gray
|
|
||||||
cell-path: dark_gray
|
|
||||||
row_index: green_bold
|
|
||||||
record: dark_gray
|
|
||||||
list: dark_gray
|
|
||||||
block: dark_gray
|
|
||||||
hints: dark_gray
|
|
||||||
search_result: { fg: white bg: red }
|
|
||||||
shape_and: purple_bold
|
|
||||||
shape_binary: purple_bold
|
|
||||||
shape_block: blue_bold
|
|
||||||
shape_bool: light_cyan
|
|
||||||
shape_closure: green_bold
|
|
||||||
shape_custom: green
|
|
||||||
shape_datetime: cyan_bold
|
|
||||||
shape_directory: cyan
|
|
||||||
shape_external: cyan
|
|
||||||
shape_externalarg: green_bold
|
|
||||||
shape_external_resolved: light_purple_bold
|
|
||||||
shape_filepath: cyan
|
|
||||||
shape_flag: blue_bold
|
|
||||||
shape_float: purple_bold
|
|
||||||
# shapes are used to change the cli syntax highlighting
|
|
||||||
shape_garbage: { fg: white bg: red attr: b }
|
|
||||||
shape_glob_interpolation: cyan_bold
|
|
||||||
shape_globpattern: cyan_bold
|
|
||||||
shape_int: purple_bold
|
|
||||||
shape_internalcall: cyan_bold
|
|
||||||
shape_keyword: cyan_bold
|
|
||||||
shape_list: cyan_bold
|
|
||||||
shape_literal: blue
|
|
||||||
shape_match_pattern: green
|
|
||||||
shape_matching_brackets: { attr: u }
|
|
||||||
shape_nothing: light_cyan
|
|
||||||
shape_operator: yellow
|
|
||||||
shape_or: purple_bold
|
|
||||||
shape_pipe: purple_bold
|
|
||||||
shape_range: yellow_bold
|
|
||||||
shape_record: cyan_bold
|
|
||||||
shape_redirection: purple_bold
|
|
||||||
shape_signature: green_bold
|
|
||||||
shape_string: green
|
|
||||||
shape_string_interpolation: cyan_bold
|
|
||||||
shape_table: blue_bold
|
|
||||||
shape_variable: purple
|
|
||||||
shape_vardecl: purple
|
|
||||||
shape_raw_string: light_purple
|
|
||||||
}
|
|
||||||
|
|
||||||
# External completer example
|
# External completer example
|
||||||
# let carapace_completer = {|spans|
|
# let carapace_completer = {|spans|
|
||||||
# carapace $spans.0 nushell ...$spans | from json
|
# carapace $spans.0 nushell ...$spans | from json
|
||||||
|
|
@ -220,8 +153,8 @@ $env.config = {
|
||||||
|
|
||||||
cursor_shape: {
|
cursor_shape: {
|
||||||
emacs: line # block, underscore, line, blink_block, blink_underscore, blink_line, inherit to skip setting cursor shape (line is the default)
|
emacs: line # block, underscore, line, blink_block, blink_underscore, blink_line, inherit to skip setting cursor shape (line is the default)
|
||||||
vi_insert: block # block, underscore, line, blink_block, blink_underscore, blink_line, inherit to skip setting cursor shape (block is the default)
|
vi_insert: line # block, underscore, line, blink_block, blink_underscore, blink_line, inherit to skip setting cursor shape (block is the default)
|
||||||
vi_normal: underscore # block, underscore, line, blink_block, blink_underscore, blink_line, inherit to skip setting cursor shape (underscore is the default)
|
vi_normal: block # block, underscore, line, blink_block, blink_underscore, blink_line, inherit to skip setting cursor shape (underscore is the default)
|
||||||
}
|
}
|
||||||
|
|
||||||
color_config: $dark_theme # if you want a more interesting theme, you can replace the empty record with `$dark_theme`, `$light_theme` or another custom record
|
color_config: $dark_theme # if you want a more interesting theme, you can replace the empty record with `$dark_theme`, `$light_theme` or another custom record
|
||||||
|
|
@ -231,7 +164,7 @@ $env.config = {
|
||||||
buffer_editor: null # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL
|
buffer_editor: null # command that will be used to edit the current line buffer with ctrl+o, if unset fallback to $env.EDITOR and $env.VISUAL
|
||||||
use_ansi_coloring: true
|
use_ansi_coloring: true
|
||||||
bracketed_paste: true # enable bracketed paste, currently useless on windows
|
bracketed_paste: true # enable bracketed paste, currently useless on windows
|
||||||
edit_mode: emacs # emacs, vi
|
edit_mode: vi # emacs, vi
|
||||||
shell_integration: {
|
shell_integration: {
|
||||||
# osc2 abbreviates the path if in the home_dir, sets the tab/window title, shows the running command in the tab/window title
|
# osc2 abbreviates the path if in the home_dir, sets the tab/window title, shows the running command in the tab/window title
|
||||||
osc2: true
|
osc2: true
|
||||||
|
|
@ -889,3 +822,5 @@ $env.config = {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||||
|
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,8 @@ $env.PROMPT_COMMAND = {|| create_left_prompt }
|
||||||
# The prompt indicators are environmental variables that represent
|
# The prompt indicators are environmental variables that represent
|
||||||
# the state of the prompt
|
# the state of the prompt
|
||||||
$env.PROMPT_INDICATOR = {|| " > " }
|
$env.PROMPT_INDICATOR = {|| " > " }
|
||||||
$env.PROMPT_INDICATOR_VI_INSERT = {|| " : " }
|
$env.PROMPT_INDICATOR_VI_INSERT = {|| "" }
|
||||||
$env.PROMPT_INDICATOR_VI_NORMAL = {|| " > " }
|
$env.PROMPT_INDICATOR_VI_NORMAL = {|| " NOR " }
|
||||||
$env.PROMPT_MULTILINE_INDICATOR = {|| "::: " }
|
$env.PROMPT_MULTILINE_INDICATOR = {|| "::: " }
|
||||||
|
|
||||||
# Specifies how environment variables are:
|
# Specifies how environment variables are:
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,12 @@ alias jd = jj diff
|
||||||
alias je = jj edit
|
alias je = jj edit
|
||||||
alias jf = jj git fetch
|
alias jf = jj git fetch
|
||||||
alias jg = jj git clone --colocate
|
alias jg = jj git clone --colocate
|
||||||
alias jm = jj bookmark set main
|
# alias jm = jj bookmark set main
|
||||||
alias jp = jj git push
|
alias jp = jj git push
|
||||||
alias js = jj status
|
alias js = jj status
|
||||||
alias jw = jj workspace update-stale
|
alias jw = jj workspace update-stale
|
||||||
|
|
||||||
|
def jm [] {
|
||||||
|
jj bookmark set main
|
||||||
|
jj git push
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ def fixme [] {
|
||||||
| each {$"($in.text):($in.line_number)"}
|
| each {$"($in.text):($in.line_number)"}
|
||||||
| hx ...$in
|
| hx ...$in
|
||||||
}
|
}
|
||||||
source ~/.cache/starship/init.nu
|
# source ~/.cache/starship/init.nu
|
||||||
# source ~/.cache/carapace/init.nu
|
# source ~/.cache/carapace/init.nu
|
||||||
source ~/.zoxide.nu
|
source ~/.zoxide.nu
|
||||||
def --env z [path: string = "~"] {
|
def --env z [path: string = "~"] {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue