summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-06 22:15:52 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-06 22:15:52 +0900
commit2b75799ee374befdc59fff810aaa6f8142e3a83d (patch)
treebc6ab6b65f95ca4d69e3d8d5418f5e1947937b54
parenta28ddb4b2135c42da551e7ef115c67b8d781356e (diff)
modified plugins/ai.lua, modified plugins/markdown.lua, created sc-im/, created bin/syncdic, created thesiah/dic
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/ai.lua166
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua6
-rw-r--r--ar/.config/sc-im/scimrc5
-rwxr-xr-xar/.local/bin/syncdic33
-rw-r--r--default/.local/share/thesiah/dic7
5 files changed, 134 insertions, 83 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/ai.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/ai.lua
index 2fca9f7..7dcc5d5 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/ai.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/ai.lua
@@ -200,87 +200,87 @@ return {
vim.keymap.set("v", "<leader>GWn", ":<C-u>'<,'>GpWhisperTabnew<cr>", keymapOptions("Tabnew"))
end,
},
- {
- "zbirenbaum/copilot.lua",
- cmd = "Copilot",
- build = ":Copilot auth",
- event = "InsertEnter",
- dependencies = {
- "hrsh7th/nvim-cmp",
- { "AndreM222/copilot-lualine" },
- {
- "zbirenbaum/copilot-cmp",
- config = function()
- require("copilot_cmp").setup()
- end,
- },
- },
- config = function()
- require("copilot").setup({
- panel = {
- enabled = true,
- auto_refresh = true,
- keymap = {
- jump_prev = "[a",
- jump_next = "]a",
- accept = "<CR>",
- refresh = "gr",
- open = "<C-CR>",
- },
- layout = {
- position = "right", -- | top | left | right
- ratio = 0.4,
- },
- },
- suggestion = {
- enabled = true,
- auto_trigger = true,
- hide_during_completion = true,
- debounce = 75,
- keymap = {
- accept = "<C-q>",
- accept_word = false,
- accept_line = false,
- next = "<C-n>",
- prev = "<C-p>",
- dismiss = "<C-\\>",
- },
- },
- filetypes = {
- cvs = false,
- gitcommit = false,
- gitrebase = false,
- help = true,
- hgcommit = false,
- markdown = true,
- sh = function()
- if string.match(vim.fs.basename(vim.api.nvim_buf_get_name(0)), "^%.env.*") then
- -- disable for .env files
- return false
- end
- return true
- end,
- svn = false,
- yaml = false,
- ["."] = false,
- ["*"] = true,
- },
- copilot_node_command = "node", -- Node.js version must be > 18.x
- server_opts_overrides = {},
- })
-
- local cmp = require("cmp")
- cmp.event:on("menu_opened", function()
- vim.b.copilot_suggestion_hidden = true
- end)
-
- cmp.event:on("menu_closed", function()
- vim.b.copilot_suggestion_hidden = false
- end)
- end,
-
- vim.keymap.set("n", "<leader>ct", function()
- require("copilot.suggestion").toggle_auto_trigger()
- end, { noremap = true, silent = true, desc = "Toggle copilot" }),
- },
+ -- {
+ -- "zbirenbaum/copilot.lua",
+ -- cmd = "Copilot",
+ -- build = ":Copilot auth",
+ -- event = "InsertEnter",
+ -- dependencies = {
+ -- "hrsh7th/nvim-cmp",
+ -- { "AndreM222/copilot-lualine" },
+ -- {
+ -- "zbirenbaum/copilot-cmp",
+ -- config = function()
+ -- require("copilot_cmp").setup()
+ -- end,
+ -- },
+ -- },
+ -- config = function()
+ -- require("copilot").setup({
+ -- panel = {
+ -- enabled = true,
+ -- auto_refresh = true,
+ -- keymap = {
+ -- jump_prev = "[a",
+ -- jump_next = "]a",
+ -- accept = "<CR>",
+ -- refresh = "gr",
+ -- open = "<C-CR>",
+ -- },
+ -- layout = {
+ -- position = "right", -- | top | left | right
+ -- ratio = 0.4,
+ -- },
+ -- },
+ -- suggestion = {
+ -- enabled = true,
+ -- auto_trigger = true,
+ -- hide_during_completion = true,
+ -- debounce = 75,
+ -- keymap = {
+ -- accept = "<C-q>",
+ -- accept_word = false,
+ -- accept_line = false,
+ -- next = "<C-n>",
+ -- prev = "<C-p>",
+ -- dismiss = "<C-\\>",
+ -- },
+ -- },
+ -- filetypes = {
+ -- cvs = false,
+ -- gitcommit = false,
+ -- gitrebase = false,
+ -- help = true,
+ -- hgcommit = false,
+ -- markdown = true,
+ -- sh = function()
+ -- if string.match(vim.fs.basename(vim.api.nvim_buf_get_name(0)), "^%.env.*") then
+ -- -- disable for .env files
+ -- return false
+ -- end
+ -- return true
+ -- end,
+ -- svn = false,
+ -- yaml = false,
+ -- ["."] = false,
+ -- ["*"] = true,
+ -- },
+ -- copilot_node_command = "node", -- Node.js version must be > 18.x
+ -- server_opts_overrides = {},
+ -- })
+ --
+ -- local cmp = require("cmp")
+ -- cmp.event:on("menu_opened", function()
+ -- vim.b.copilot_suggestion_hidden = true
+ -- end)
+ --
+ -- cmp.event:on("menu_closed", function()
+ -- vim.b.copilot_suggestion_hidden = false
+ -- end)
+ -- end,
+ --
+ -- vim.keymap.set("n", "<leader>ct", function()
+ -- require("copilot.suggestion").toggle_auto_trigger()
+ -- end, { noremap = true, silent = true, desc = "Toggle copilot" }),
+ -- },
}
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
index fa5051e..ffd06cd 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/markdown.lua
@@ -451,4 +451,10 @@ return {
end, { desc = "Init default molten" })
end,
},
+ {
+ "mipmip/vim-scimark",
+ config = function()
+ vim.keymap.set("n", "<leader>si", ":OpenInScim<cr>", { desc = "Sc-im" })
+ end,
+ },
}
diff --git a/ar/.config/sc-im/scimrc b/ar/.config/sc-im/scimrc
new file mode 100644
index 0000000..ce93e45
--- /dev/null
+++ b/ar/.config/sc-im/scimrc
@@ -0,0 +1,5 @@
+set autocalc
+set numeric
+set numeric_decimal=0
+set overlap
+set xlsx_readformulas
diff --git a/ar/.local/bin/syncdic b/ar/.local/bin/syncdic
new file mode 100755
index 0000000..c125f42
--- /dev/null
+++ b/ar/.local/bin/syncdic
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+dicfile="${XDG_DATA_HOME:-${HOME}/.local/share}/thesiah/dic"
+dest="${XDG_DATA_HOME:-${HOME}/.local/share}/dic"
+
+[ -d "$dest" ] || mkdir -p "$dest"
+
+while read -r url; do
+ [ -z "$url" ] && continue
+ filename=$(basename "$url")
+ filepath="${dest}/${filename}"
+ tarpath=$(echo "$filepath" | sed 's/.zip//;s/.tar.gz//;s/.tgz//;s/.tar.bz2//;s/.tbz2//;s/.tar.xz//;s/.txz//')
+
+ # Download only if the file does not exist
+ if [ ! -d "$tarpath" ]; then
+ curl -L "$url" -o "$filepath"
+ case "$filename" in
+ *.zip)
+ unzip -o "$filepath" -d "$dest"
+ ;;
+ *.tar.gz | *.tgz)
+ tar -xzf "$filepath" -C "$dest"
+ ;;
+ *.tar.bz2 | *.tbz2)
+ tar -xjf "$filepath" -C "$dest"
+ ;;
+ *.tar.xz | *.txz)
+ tar -xJf "$filepath" -C "$dest"
+ ;;
+ esac
+ rm -f "$filepath"
+ fi
+done <"$dicfile"
diff --git a/default/.local/share/thesiah/dic b/default/.local/share/thesiah/dic
new file mode 100644
index 0000000..b899351
--- /dev/null
+++ b/default/.local/share/thesiah/dic
@@ -0,0 +1,7 @@
+https://web.archive.org/web/20200630200122/http://download.huzheng.org/dict.org/stardict-collins5-2.4.2.tar.bz2
+https://web.archive.org/web/20200630200202/http://download.huzheng.org/misc/stardict-xfardic-gnu-linux-2.4.2.tar.bz2
+https://web.archive.org/web/20200630200150/http://download.huzheng.org/ko/stardict-KoreanDic-2.4.2.tar.bz2
+https://web.archive.org/web/20200630200150/http://download.huzheng.org/ko/stardict-KoreanEnglishDic-2.4.2.tar.bz2
+https://web.archive.org/web/20200630200150/http://download.huzheng.org/ko/stardict-KoreanLawDic-2.4.2.tar.bz2
+https://web.archive.org/web/20200630200150/http://download.huzheng.org/ko/stardict-KoreanMedicalDic-2.4.2.tar.bz2
+https://web.archive.org/web/20200630200150/http://download.huzheng.org/ko/stardict-quick_eng-kor-2.4.2.tar.bz2