aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-10-26 11:14:49 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-10-26 11:14:49 +0800
commit579c1fcd53aef1ed4bd523f10bb6e262e61b325d (patch)
tree4f67b8022c827a574473ae024e28eb18a52034c7
parent0cc4a179cfed5c2be516186dd134c6d208b7f2a9 (diff)
Update
-rw-r--r--X11/alacritty/alacritty.toml5
-rwxr-xr-xprofile.sh2
-rw-r--r--vim/init/basic.vim6
-rw-r--r--vim/mini.lua47
4 files changed, 34 insertions, 26 deletions
diff --git a/X11/alacritty/alacritty.toml b/X11/alacritty/alacritty.toml
index bdfd458..04e517c 100644
--- a/X11/alacritty/alacritty.toml
+++ b/X11/alacritty/alacritty.toml
@@ -59,6 +59,11 @@ key = "U"
59mode = "Vi|~Search" 59mode = "Vi|~Search"
60mods = "Control" 60mods = "Control"
61 61
62[[keyboard.bindings]]
63key = "i"
64mods = "Alt"
65chars = "\U0000001A"
66
62[window] 67[window]
63decorations = "full" 68decorations = "full"
64dynamic_title = true 69dynamic_title = true
diff --git a/profile.sh b/profile.sh
index 3b32d55..45f9bcf 100755
--- a/profile.sh
+++ b/profile.sh
@@ -61,6 +61,7 @@ if [[ $- =~ i ]]; then
61 #zle -N deer 61 #zle -N deer
62 #bindkey '\ek' deer 62 #bindkey '\ek' deer
63 bindkey -s '\ek' 'fzf_preview ' 63 bindkey -s '\ek' 'fzf_preview '
64 bindkey -s '' 'fg || vl '
64 elif [[ $shell == bash ]]; then 65 elif [[ $shell == bash ]]; then
65 shopt -s extglob 66 shopt -s extglob
66 HISTTIMEFORMAT='%Y-%m-%d %T ' 67 HISTTIMEFORMAT='%Y-%m-%d %T '
@@ -75,5 +76,6 @@ fi
75# Working DIR 76# Working DIR
76# [[ `pwd` == $HOME ]] && test -d ~/Downloads && cd ~/Downloads 77# [[ `pwd` == $HOME ]] && test -d ~/Downloads && cd ~/Downloads
77cd ~/git/dumbymap 78cd ~/git/dumbymap
79source ~/.profile
78 80
79true 81true
diff --git a/vim/init/basic.vim b/vim/init/basic.vim
index 4a49f39..68b386e 100644
--- a/vim/init/basic.vim
+++ b/vim/init/basic.vim
@@ -119,7 +119,11 @@ set errorformat+=[%f:%l]\ ->\ %m,[%f:%l]:%m
119set splitright 119set splitright
120 120
121" Set signcolumn 121" Set signcolumn
122set signcolumn=yes:3 122if has('nvim')
123 set signcolumn=yes:3
124else
125 set signcolumn=yes
126endif
123" Custom sign from help page :h sign 127" Custom sign from help page :h sign
124sign define piet text=>> texthl=Search 128sign define piet text=>> texthl=Search
125 129
diff --git a/vim/mini.lua b/vim/mini.lua
index 6c81d8f..80d3478 100644
--- a/vim/mini.lua
+++ b/vim/mini.lua
@@ -860,31 +860,28 @@ require("lazy").setup({
860 end, 860 end,
861 }, 861 },
862 --}}} 862 --}}}
863 -- toggleterm {{{ 863 -- -- toggleterm {{{
864 { 864 -- {
865 "akinsho/toggleterm.nvim", 865 -- "akinsho/toggleterm.nvim",
866 config = function() 866 -- config = function()
867 require("toggleterm").setup({ 867 -- require("toggleterm").setup({
868 persist_size = false, 868 -- persist_size = false,
869 direction = "float", 869 -- direction = "float",
870 }) 870 -- })
871 871 --
872 vim.keymap.set({ "n", "t" }, "<A-i>", function() 872 -- vim.keymap.set({ "n", "t" }, "<A-e>", function()
873 vim.cmd("ToggleTerm direction=float") 873 -- vim.cmd("ToggleTerm direction=float")
874 end, { desc = "terminal toggle floating term" }) 874 -- end, { desc = "terminal toggle floating term" })
875 vim.keymap.set({ "n", "t" }, "<A-e>", function() 875 -- vim.keymap.set({ "n", "t" }, "<A-v>", function()
876 zoom() 876 -- vim.cmd("ToggleTerm direction=horizontal")
877 end, { desc = "terminal toggle floating term" }) 877 -- end, { desc = "terminal toggle floating term" })
878 vim.keymap.set({ "n", "t" }, "<A-v>", function() 878 -- vim.keymap.set("v", ",s", function()
879 vim.cmd("ToggleTerm direction=horizontal") 879 -- require("toggleterm").send_lines_to_terminal("single_line", trim_spaces, { args = vim.v.count })
880 end, { desc = "terminal toggle floating term" }) 880 -- vim.cmd("ToggleTerm direction=float")
881 vim.keymap.set("v", ",s", function() 881 -- end)
882 require("toggleterm").send_lines_to_terminal("single_line", trim_spaces, { args = vim.v.count }) 882 -- end,
883 vim.cmd("ToggleTerm direction=float") 883 -- },
884 end) 884 -- --}}}
885 end,
886 },
887 --}}}
888 -- Markdown: obsidian {{{ 885 -- Markdown: obsidian {{{
889 { 886 {
890 "epwalsh/obsidian.nvim", 887 "epwalsh/obsidian.nvim",