remove yank changes and disable smartindent
This commit is contained in:
parent
03bf0a72b1
commit
9452693037
1 changed files with 3 additions and 3 deletions
6
init.lua
6
init.lua
|
@ -48,7 +48,7 @@ else
|
|||
vim.o.breakindent = true
|
||||
|
||||
-- smart indenting
|
||||
vim.o.smartindent = true
|
||||
vim.o.smartindent = false
|
||||
|
||||
-- Save undo history
|
||||
vim.o.undofile = true
|
||||
|
@ -79,10 +79,10 @@ else
|
|||
|
||||
-- [[ Highlight on yank ]]
|
||||
-- See `:help vim.highlight.on_yank()`
|
||||
local highlight_group = vim.api.nvim_create_augroup("highlight_yank", { clear = true })
|
||||
local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true })
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
callback = function()
|
||||
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 200 })
|
||||
vim.highlight.on_yank()
|
||||
end,
|
||||
group = highlight_group,
|
||||
pattern = "*",
|
||||
|
|
Loading…
Reference in a new issue