fix(nvim): add linewrap jk for autocmds

This commit is contained in:
Léana 江 2023-11-08 09:12:52 +01:00 committed by Léana 江
parent 6c5e78e9a5
commit af039b8300
4 changed files with 16 additions and 11 deletions

View file

@ -9,15 +9,6 @@ api.nvim_create_autocmd("TextYankPost", {
callback = function() vim.highlight.on_yank() end,
})
api.nvim_create_autocmd("FileType", {
pattern = { "markdown", "tex", "typst" },
callback = function()
vim.opt_local.shiftwidth = 4
vim.opt_local.tabstop = 4
vim.opt_local.wrap = true
end,
})
api.nvim_create_autocmd("FileType", {
pattern = "rust",
callback = function() vim.opt_local.iskeyword:append "&" end,