mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
feat: add useful nushell scripts - auto-completion
This commit is contained in:
@@ -17,6 +17,16 @@
|
||||
# Toggle visual mode: `v`
|
||||
# Toggle visual block mode: `<Ctrl> + v` (select a block(vertically) of text)
|
||||
#
|
||||
# Add at the end of Multiple line: `:normal A<text>`
|
||||
# Note that `:normal` execute `A<text>` on each line.
|
||||
# `A` means append text at the end of the line.
|
||||
# You need to select the lines via visual mode first.
|
||||
#
|
||||
# Add at the end of the visual block: `:A<text>`
|
||||
# You need to select the block via visual block mode first.
|
||||
# And then this command will append text at the end of the block on each line.
|
||||
# If the position exceeds the end of the line, neovim will automatically add spaces
|
||||
#
|
||||
# Commands & shortcuts in AstroNvim
|
||||
# Learn Neovim's Basics: `:Tutor`
|
||||
# Opening file explorer: `<Space> + e`
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{...}: {
|
||||
{ nushell-scripts, ...}: {
|
||||
programs.bash = {
|
||||
# load the alias file for work
|
||||
bashrcExtra = ''
|
||||
@@ -19,6 +19,13 @@
|
||||
# https://github.com/nushell/nushell/issues/8214
|
||||
extraConfig = ''
|
||||
source /etc/agenix/alias-for-work.nushell
|
||||
use ${nushell-scripts}/custom-completions/git/git-completions.nu *
|
||||
use ${nushell-scripts}/custom-completions/glow/glow-completions.nu *
|
||||
use ${nushell-scripts}/custom-completions/make/make-completions.nu *
|
||||
use ${nushell-scripts}/custom-completions/nix/nix-completions.nu *
|
||||
use ${nushell-scripts}/custom-completions/man/man-completions.nu *
|
||||
use ${nushell-scripts}/custom-completions/cargo/cargo-completions.nu *
|
||||
use ${nushell-scripts}/custom-completions/zellij/zellij-completions.nu *
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user