diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-08-22 20:23:16 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-08-22 20:23:16 +0800 |
commit | f8c9d03ed01a4de450c5ffc5eca10493e324bf97 (patch) | |
tree | 447bda0c90a411481c3ba664bc48457bb5000120 | |
parent | 42bf7fa1ec4267d8fd014746ef6d725119c8a4ba (diff) |
Update
-rw-r--r-- | bin/image/shellrc | 4 | ||||
-rw-r--r-- | init.vim | 11 | ||||
-rw-r--r-- | 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() { | |||
8 | fi | 8 | fi |
9 | 9 | ||
10 | ext=${1##*.} | 10 | ext=${1##*.} |
11 | convert "$@" +append $(basename -s .$ext $1)-$(basename -s .$ext ${@: -1}).${format:-$ext} | 11 | convert "$@" -append $(basename -s .$ext $1)-$(basename -s .$ext ${@: -1}).${format:-$ext} |
12 | } | 12 | } |
13 | 13 | ||
14 | # Concatenate image horizontally | 14 | # Concatenate image horizontally |
@@ -19,7 +19,7 @@ image.horizontal() { | |||
19 | fi | 19 | fi |
20 | 20 | ||
21 | ext=${1##*.} | 21 | ext=${1##*.} |
22 | convert "$@" -append output.$ext | 22 | convert "$@" +append output.$ext |
23 | } | 23 | } |
24 | 24 | ||
25 | # Export image with data url format | 25 | # Export image with data url format |
@@ -10,7 +10,7 @@ endif | |||
10 | let s:home = '~/.vim/vim-init' | 10 | let s:home = '~/.vim/vim-init' |
11 | 11 | ||
12 | " Load script in current dir | 12 | " Load script in current dir |
13 | " command! -nargs=1 LoadScript exec 'so '.s:home.'/'.'<args>' | 13 | " command! -nargs=1 LoadScript exec 'source '.s:home.'/'.'<args>' |
14 | 14 | ||
15 | " Add current dir into runtimepath | 15 | " Add current dir into runtimepath |
16 | execute 'set runtimepath+='.s:home | 16 | execute 'set runtimepath+='.s:home |
@@ -32,14 +32,11 @@ source ~/.vim/vim-init/init/init-keymaps.vim | |||
32 | " Extra config for different contexts | 32 | " Extra config for different contexts |
33 | " source ~/.vim/vim-init/init/init-config.vim | 33 | " source ~/.vim/vim-init/init/init-config.vim |
34 | 34 | ||
35 | " 设定 tabsize | 35 | " Set tabsize |
36 | " source ~/.vim/vim-init/init/init-tabsize.vim | 36 | source ~/.vim/vim-init/init/init-tabsize.vim |
37 | 37 | ||
38 | " Set UI theme | ||
39 | colorscheme desert | ||
40 | |||
41 | " Neovim | ||
42 | if has('nvim') | 38 | if has('nvim') |
39 | " Neovim | ||
43 | source ~/.config/nvim/nvim.lua | 40 | source ~/.config/nvim/nvim.lua |
44 | else | 41 | else |
45 | " Plugin | 42 | " Plugin |
@@ -77,6 +77,7 @@ require('lazy').setup({ | |||
77 | 77 | ||
78 | -- For surrounding | 78 | -- For surrounding |
79 | 'machakann/vim-sandwich', | 79 | 'machakann/vim-sandwich', |
80 | |||
80 | 81 | ||
81 | 82 | ||
82 | -- NOTE: This is where your plugins related to LSP can be installed. | 83 | -- NOTE: This is where your plugins related to LSP can be installed. |
@@ -115,7 +116,14 @@ require('lazy').setup({ | |||
115 | }, | 116 | }, |
116 | 117 | ||
117 | -- Useful plugin to show you pending keybinds. | 118 | -- Useful plugin to show you pending keybinds. |
118 | { 'folke/which-key.nvim', opts = {} }, | 119 | { 'folke/which-key.nvim', opts = { |
120 | plugins = { | ||
121 | spelling = { | ||
122 | enabled = true, -- enabling this will show WhichKey when pressing z= to select spelling suggestions | ||
123 | suggestions = 20, -- how many suggestions should be shown in the list? | ||
124 | }, | ||
125 | }} | ||
126 | }, | ||
119 | { | 127 | { |
120 | -- Adds git related signs to the gutter, as well as utilities for managing changes | 128 | -- Adds git related signs to the gutter, as well as utilities for managing changes |
121 | 'lewis6991/gitsigns.nvim', | 129 | 'lewis6991/gitsigns.nvim', |