diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-07 12:12:59 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-07 12:12:59 +0900 |
| commit | 55eda12a5e8ec3920bc7f78e1949c498787b84bd (patch) | |
| tree | e7b2c95c127d9e4ddc0c0305737b4634b4616352 /ar/.config/TheSiahxyz/ftplugin/markdown.lua | |
| parent | 7ebd222b1de38e827172d7b158a25c7c73684f2f (diff) | |
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/ftplugin/markdown.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/ftplugin/markdown.lua | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/ar/.config/TheSiahxyz/ftplugin/markdown.lua b/ar/.config/TheSiahxyz/ftplugin/markdown.lua index cdc0b7e..a410849 100644 --- a/ar/.config/TheSiahxyz/ftplugin/markdown.lua +++ b/ar/.config/TheSiahxyz/ftplugin/markdown.lua @@ -213,19 +213,31 @@ local function update_markdown_toc(heading2, heading3) vim.cmd("loadview") end +-- Show LSP diagnostics (inlay hints) in a hover window / popup lamw26wmal +vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { + pattern = "markdown", + callback = function() + vim.diagnostic.open_float(nil, { + focus = false, + border = "rounded", + }) + end, +}) + -- FileType autocmd for markdown files vim.api.nvim_create_autocmd("FileType", { pattern = { "markdown", "mdx", "mdown", "mkd", "mkdn", "mdwn" }, callback = function() -- Local settings - vim.opt_local.conceallevel = 0 vim.bo.textwidth = is_in_obsidian_repo() and 80 or 175 - vim.opt_local.spell = true - vim.opt_local.spelllang = "en_us" + vim.opt_local.autoindent = true + vim.opt_local.conceallevel = 0 vim.opt_local.expandtab = true - vim.opt_local.shiftwidth = 4 vim.opt_local.softtabstop = 4 - vim.opt_local.autoindent = true + vim.opt_local.shiftwidth = 4 + vim.opt_local.spell = true + vim.opt_local.spelllang = { "en", "ko", "cjk" } + vim.opt_local.spellsuggest = { "best", "9" } local arrows = { [">>"] = "→", ["<<"] = "←", ["^^"] = "↑", ["VV"] = "↓" } for key, val in pairs(arrows) do |
