diff options
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/core/autocmds.lua | 26 |
1 files changed, 1 insertions, 25 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 |
