|
|
@ -41,3 +41,18 @@ local autocmd = vim.api.nvim_create_autocmd
|
|
|
|
-- vim.opt_local.softtabstop = 4
|
|
|
|
-- vim.opt_local.softtabstop = 4
|
|
|
|
-- end,
|
|
|
|
-- end,
|
|
|
|
-- })
|
|
|
|
-- })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Highlight yanked text
|
|
|
|
|
|
|
|
-- autocmd("TextYankPost", {
|
|
|
|
|
|
|
|
-- callback = function()
|
|
|
|
|
|
|
|
-- vim.highlight.on_yank { higroup = "Visual", timeout = 200 }
|
|
|
|
|
|
|
|
-- end,
|
|
|
|
|
|
|
|
-- })
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Enable spellchecking in markdown, text and gitcommit files
|
|
|
|
|
|
|
|
-- autocmd("FileType", {
|
|
|
|
|
|
|
|
-- pattern = { "gitcommit", "markdown", "text" },
|
|
|
|
|
|
|
|
-- callback = function()
|
|
|
|
|
|
|
|
-- vim.opt_local.spell = true
|
|
|
|
|
|
|
|
-- end,
|
|
|
|
|
|
|
|
-- })
|
|
|
|