From f8c9d03ed01a4de450c5ffc5eca10493e324bf97 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 22 Aug 2023 20:23:16 +0800 Subject: Update --- bin/image/shellrc | 4 ++-- init.vim | 11 ++++------- nvim.lua | 10 +++++++++- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/bin/image/shellrc b/bin/image/shellrc index a62dd70..bfbb030 100644 --- a/bin/image/shellrc +++ b/bin/image/shellrc @@ -8,7 +8,7 @@ image.vertical() { fi ext=${1##*.} - convert "$@" +append $(basename -s .$ext $1)-$(basename -s .$ext ${@: -1}).${format:-$ext} + convert "$@" -append $(basename -s .$ext $1)-$(basename -s .$ext ${@: -1}).${format:-$ext} } # Concatenate image horizontally @@ -19,7 +19,7 @@ image.horizontal() { fi ext=${1##*.} - convert "$@" -append output.$ext + convert "$@" +append output.$ext } # Export image with data url format diff --git a/init.vim b/init.vim index d8b326e..b3325ea 100644 --- a/init.vim +++ b/init.vim @@ -10,7 +10,7 @@ endif let s:home = '~/.vim/vim-init' " Load script in current dir -" command! -nargs=1 LoadScript exec 'so '.s:home.'/'.'' +" command! -nargs=1 LoadScript exec 'source '.s:home.'/'.'' " Add current dir into runtimepath execute 'set runtimepath+='.s:home @@ -32,14 +32,11 @@ source ~/.vim/vim-init/init/init-keymaps.vim " Extra config for different contexts " source ~/.vim/vim-init/init/init-config.vim -" 设定 tabsize -" source ~/.vim/vim-init/init/init-tabsize.vim +" Set tabsize +source ~/.vim/vim-init/init/init-tabsize.vim -" Set UI theme -colorscheme desert - -" Neovim if has('nvim') + " Neovim source ~/.config/nvim/nvim.lua else " Plugin diff --git a/nvim.lua b/nvim.lua index d61b68c..9aa5c07 100644 --- a/nvim.lua +++ b/nvim.lua @@ -77,6 +77,7 @@ require('lazy').setup({ -- For surrounding 'machakann/vim-sandwich', + -- NOTE: This is where your plugins related to LSP can be installed. @@ -115,7 +116,14 @@ require('lazy').setup({ }, -- Useful plugin to show you pending keybinds. - { 'folke/which-key.nvim', opts = {} }, + { 'folke/which-key.nvim', opts = { + plugins = { + spelling = { + enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions + suggestions = 20, -- how many suggestions should be shown in the list? + }, + }} + }, { -- Adds git related signs to the gutter, as well as utilities for managing changes 'lewis6991/gitsigns.nvim', -- cgit v1.2.3-70-g09d2