diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-08-14 13:46:13 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-08-14 13:46:29 +0800 |
| commit | 6949e7843255206bc642e8f7457c217581c9b556 (patch) | |
| tree | 5f36d3dc5774d76675c077705b2fe3d29507388a | |
| parent | b44661bcd02374ea442a9fb81dffa956acfc10be (diff) | |
Update
| -rw-r--r-- | X11/openbox/rc.xml | 2 | ||||
| -rwxr-xr-x | X11/rofi/pass.edit | 2 | ||||
| -rwxr-xr-x | X11/rofi/rofi-pass | 1 | ||||
| -rwxr-xr-x | bin/init/load-settings.sh | 2 | ||||
| -rw-r--r-- | init.vim | 8 | ||||
| -rw-r--r-- | nvim.lua | 5 |
6 files changed, 11 insertions, 9 deletions
diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml index d04e3b1..8ffab47 100644 --- a/X11/openbox/rc.xml +++ b/X11/openbox/rc.xml | |||
| @@ -778,7 +778,7 @@ | |||
| 778 | <keybind key="C-S-R"> | 778 | <keybind key="C-S-R"> |
| 779 | <action name="Reconfigure"/> | 779 | <action name="Reconfigure"/> |
| 780 | </keybind> | 780 | </keybind> |
| 781 | <keybind key="W-Escape"> | 781 | <keybind key="W-S-Escape"> |
| 782 | <action name="Execute"> | 782 | <action name="Execute"> |
| 783 | <command>xkill</command> | 783 | <command>xkill</command> |
| 784 | </action> | 784 | </action> |
diff --git a/X11/rofi/pass.edit b/X11/rofi/pass.edit index 2c0eeea..bfbdc31 100755 --- a/X11/rofi/pass.edit +++ b/X11/rofi/pass.edit | |||
| @@ -16,5 +16,5 @@ fi | |||
| 16 | 16 | ||
| 17 | # Use detected terminal emulator to edit password | 17 | # Use detected terminal emulator to edit password |
| 18 | coproc ( | 18 | coproc ( |
| 19 | $terminal -e pass edit $1 && $(dirname $0)/pass.get $1 | 19 | EDITOR=nvim $terminal -e pass edit $1 && $(dirname $0)/pass.get $1 |
| 20 | ) | 20 | ) |
diff --git a/X11/rofi/rofi-pass b/X11/rofi/rofi-pass index 498fa62..9e16bc8 100755 --- a/X11/rofi/rofi-pass +++ b/X11/rofi/rofi-pass | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | #! /bin/bash | 1 | #! /bin/bash |
| 2 | 2 | ||
| 3 | export terminal=${terminal:-alacritty} | 3 | export terminal=${terminal:-alacritty} |
| 4 | export EDITOR=${EDITOR:-vim} | ||
| 4 | 5 | ||
| 5 | cd $(dirname $0) | 6 | cd $(dirname $0) |
| 6 | 7 | ||
diff --git a/bin/init/load-settings.sh b/bin/init/load-settings.sh index 00f8c1e..f82bc88 100755 --- a/bin/init/load-settings.sh +++ b/bin/init/load-settings.sh | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | trap 'exit.sh' EXIT | 1 | # trap 'exit.sh' EXIT |
| 2 | 2 | ||
| 3 | export SETTING_DIR=${SETTING_DIR:=$HOME/helper} | 3 | export SETTING_DIR=${SETTING_DIR:=$HOME/helper} |
| 4 | export BIN_DIR=~/bin | 4 | export BIN_DIR=~/bin |
| @@ -35,15 +35,13 @@ source ~/.vim/vim-init/init/init-keymaps.vim | |||
| 35 | " 设定 tabsize | 35 | " 设定 tabsize |
| 36 | " source ~/.vim/vim-init/init/init-tabsize.vim | 36 | " source ~/.vim/vim-init/init/init-tabsize.vim |
| 37 | 37 | ||
| 38 | " Plugins | 38 | " Set UI theme |
| 39 | colorscheme desert | ||
| 39 | 40 | ||
| 40 | " Neovim | 41 | " Neovim |
| 41 | if has('nvim') | 42 | if has('nvim') |
| 42 | source ~/.config/nvim/nvim.lua | 43 | source ~/.config/nvim/nvim.lua |
| 43 | else | 44 | else |
| 45 | " Plugin | ||
| 44 | source ~/.vim/vim-init/init/init-plugins.vim | 46 | source ~/.vim/vim-init/init/init-plugins.vim |
| 45 | endif | 47 | endif |
| 46 | |||
| 47 | " Set UI theme | ||
| 48 | colorscheme desert | ||
| 49 | highlight MatchParen cterm=bold ctermbg=none ctermfg=magenta | ||
| @@ -142,7 +142,7 @@ require('lazy').setup({ | |||
| 142 | 'navarasu/onedark.nvim', | 142 | 'navarasu/onedark.nvim', |
| 143 | priority = 1000, | 143 | priority = 1000, |
| 144 | config = function() | 144 | config = function() |
| 145 | vim.cmd.colorscheme 'onedark' | 145 | -- vim.cmd.colorscheme 'onedark' |
| 146 | end, | 146 | end, |
| 147 | }, | 147 | }, |
| 148 | 148 | ||
| @@ -495,6 +495,9 @@ local servers = { | |||
| 495 | telemetry = { enable = false }, | 495 | telemetry = { enable = false }, |
| 496 | }, | 496 | }, |
| 497 | }, | 497 | }, |
| 498 | stylelint_lsp = { | ||
| 499 | rootPatterns = {'.stylelintrc'}, | ||
| 500 | }, | ||
| 498 | } | 501 | } |
| 499 | 502 | ||
| 500 | -- Setup neovim lua configuration | 503 | -- Setup neovim lua configuration |