summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz')
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua26
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua6
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/core/options.lua4
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/cmp.lua10
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/python.lua12
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/spells/en.utf-8.add113
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/spells/en.utf-8.add.splbin1365 -> 0 bytes
7 files changed, 17 insertions, 154 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
index 3f93ae5..a62695b 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua
@@ -98,18 +98,6 @@ autocmd("FileType", {
end,
})
--- Show LSP diagnostics (inlay hints) in a hover window / popup lamw26wmal
-vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, {
- group = augroup("float_diagnostic"),
- pattern = "markdown",
- callback = function()
- vim.diagnostic.open_float(nil, {
- focus = false,
- border = "rounded",
- })
- end,
-})
-
-- Make it easier to close man-files when opened inline
autocmd("FileType", {
group = augroup("man_close"),
@@ -119,18 +107,6 @@ autocmd("FileType", {
end,
})
--- Wrap and check for spell in text filetypes
-autocmd("FileType", {
- group = augroup("wrap_spell"),
- pattern = { "text", "plaintex", "typst", "gitcommit", "markdown" },
- callback = function()
- vim.opt_local.wrap = true
- vim.opt_local.spell = true
- vim.opt_local.spelllang = { "en", "cjk" }
- vim.opt_local.spellsuggest = { "best", "9" }
- end,
-})
-
-- Fix conceallevel for json files
autocmd({ "FileType" }, {
group = augroup("json_config"),
@@ -261,7 +237,7 @@ vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = { "*.ms", "*.me", "*.mom", "*.man" },
callback = function()
vim.cmd([[
- set columns=90
+ set columns=90
set filetype=groff
set linebreak
set textwidth=0
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua
index 993b051..06c70d9 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua
@@ -576,9 +576,9 @@ end
-- Spell
vim.keymap.set("n", "zp", function()
- vim.opt.spelllang = { "en", "cjk" }
- vim.cmd("echo 'Spell language set to English and CJK'")
-end, { desc = "Spelling language English and CJK" })
+ vim.opt.spelllang = { "en", "ko", "cjk" }
+ vim.cmd("echo 'Spell language set to English, Korean, and CJK'")
+end, { desc = "Spelling language English, Korean, and CJK" })
-- repeat the replacement done by |z=| for all matches with the replaced word in the current window.
vim.keymap.set("n", "z.", function()
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(":spellr\n", true, false, true), "m", true)
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/options.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/options.lua
index b51b8a7..86f4b49 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/options.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/options.lua
@@ -14,7 +14,9 @@ vim.opt.backup = false
vim.opt.breakindent = true
vim.opt.conceallevel = 1
vim.opt.cursorline = true
+vim.opt.encoding = "utf-8"
vim.opt.expandtab = true
+vim.opt.fileencoding = "utf-8"
vim.opt.hlsearch = true
vim.opt.ignorecase = true
vim.opt.inccommand = "split"
@@ -32,7 +34,7 @@ vim.opt.signcolumn = "yes"
vim.opt.smartcase = true
vim.opt.smartindent = true
vim.opt.softtabstop = 2
-vim.opt.spellfile = vim.fn.expand(vim.fn.stdpath("config") .. "/lua/thesiahxyz/spells/en.utf-8.add")
+vim.opt.spell = false
vim.opt.splitbelow = true
vim.opt.splitright = true
vim.opt.swapfile = false
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/cmp.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/cmp.lua
index 10ffb47..2dd46f3 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/cmp.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/cmp.lua
@@ -155,11 +155,13 @@ return {
vim.api.nvim_set_hl(0, "CmpItemKindCopilot", { fg = "#6CC644" })
require("cmp_dictionary").setup({
- paths = {
- "/usr/share/dict/words",
- vim.fn.expand(vim.fn.stdpath("config") .. "/lua/thesiahxyz/spells/en.utf-8.add"),
- },
+ paths = { "/usr/share/dict/words" },
exact_length = 2,
+ first_case_insensitive = true,
+ document = {
+ enable = true,
+ command = { "wn", "${label}", "-over" },
+ },
})
end,
},
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/python.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/python.lua
index 3e53ddb..607d647 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/python.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/python.lua
@@ -39,14 +39,10 @@ return {
end,
config = function()
require("venv-selector").setup({
- settings = {
- options = {
- notify_user_on_venv_activation = true,
- },
- search = {
- venvs = {
- command = "fd /bin/python$ ~/.local/share/venvs --full-path",
- },
+ notify_user_on_activate = true,
+ search = {
+ venvs = {
+ command = "fd /bin/python$ ~/.local/share/venvs --full-path",
},
},
})
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/spells/en.utf-8.add b/ar/.config/TheSiahxyz/lua/thesiahxyz/spells/en.utf-8.add
deleted file mode 100644
index a60a241..0000000
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/spells/en.utf-8.add
+++ /dev/null
@@ -1,113 +0,0 @@
-#eplacement
-AI
-API
-ASAP
-AUR
-AWS
-ArchLinux
-Asana
-Azure
-BTW
-Bitbucket
-CD
-CI
-CLI
-CSS
-CV
-Cloudflare
-DNS
-DevOps
-DigitalOcean
-Django
-Docker
-ETA
-FAQ
-FYI
-FYI
-Fedora
-Figma
-Flask
-GCP
-GPG
-GUI
-Git
-GitHub
-GitLab
-Google
-HTML
-HTTP
-HTTPS
-IDE
-IDK
-IMO
-IP
-IoT
-JSON
-JWT
-JavaScript
-JetBrains
-Kubernetes
-Linode
-Linux
-Lorem
-Lua
-ML
-MVP
-Markdown
-MySQL
-NLP
-Neovim
-Node.js
-Notion
-OAuth
-OK
-OKRs
-POSIX
-PostgreSQL
-PyCharm
-PyPI
-R&D
-React
-Redis
-SQL
-SQLite
-SSH
-SSL
-Slack
-TBD
-TCP
-TLS
-Trello
-TypeScript
-UI
-URL
-UX
-Ubuntu
-VSCode
-Vue
-WebStorm
-YAML
-YouTube
-Zoom
-alt
-backend
-blockquote
-conda
-config
-ctrl
-dotfiles
-frontend
-highlighter
-inline
-ipsum
-kbd
-meta
-msmtp
-npm
-pip
-plaintext
-super
-syntax
-typst
-vimrc
-window
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/spells/en.utf-8.add.spl b/ar/.config/TheSiahxyz/lua/thesiahxyz/spells/en.utf-8.add.spl
deleted file mode 100644
index ab8358b..0000000
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/spells/en.utf-8.add.spl
+++ /dev/null
Binary files differ