diff --git a/home/user/.config/nvim/lua/core/mappings/mappings.lua b/home/user/.config/nvim/lua/core/mappings/mappings.lua index 988201e..cfd7c01 100644 --- a/home/user/.config/nvim/lua/core/mappings/mappings.lua +++ b/home/user/.config/nvim/lua/core/mappings/mappings.lua @@ -44,6 +44,9 @@ map('n', 'hl', create_function_tabdo('lua toggle_number_style()'), map('n', '~', 'vg~', {desc = "Toggle character case"}) +map('n', 'Ё', 'vg~', {desc = "Toggle character case"}) + +map('v', 'Ё', '~', {desc = "Toggle character case"}) map('n', diff --git a/home/user/.config/zsh/functions b/home/user/.config/zsh/functions index 9eeeb34..5e2bc45 100644 --- a/home/user/.config/zsh/functions +++ b/home/user/.config/zsh/functions @@ -63,12 +63,10 @@ top-commands() { } cargo-init() { - if [[ -v 1 ]]; then - cargo init "${1}" && cd "${1}" && \ - return "${?}" + if [[ ! -v 1 ]]; then + return 1 fi - local -r temp="/tmp/thek4n-rust-${RANDOM}" - mkdir "${temp}" && cd "${temp}" && cargo init . && \ + cargo init "${1}" && cd "${1}" && \ return "${?}" }