summaryrefslogtreecommitdiff
path: root/ar/.config/TheSiahxyz/lua/thesiahxyz/core
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-07 12:12:59 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-07 12:12:59 +0900
commit55eda12a5e8ec3920bc7f78e1949c498787b84bd (patch)
treee7b2c95c127d9e4ddc0c0305737b4634b4616352 /ar/.config/TheSiahxyz/lua/thesiahxyz/core
parent7ebd222b1de38e827172d7b158a25c7c73684f2f (diff)
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/core')
-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
3 files changed, 7 insertions, 29 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