diff --git a/lua/autocmd.lua b/lua/autocmd.lua index f347b62..d297a3a 100644 --- a/lua/autocmd.lua +++ b/lua/autocmd.lua @@ -1,16 +1,2 @@ -- Highlight on yank vim.cmd('au TextYankPost * lua vim.highlight.on_yank {on_visual = false}' )-- disabled in visual mode - --- Trim Whitespace -vim.api.nvim_exec([[ -fun! TrimWhitespace() - let l:save = winsaveview() - keeppatterns %s/\s\+$//e - call winrestview(l:save) -endfun -augroup AUTOCOMMANDGROUP - autocmd! - autocmd BufWritePre * :call TrimWhitespace() - autocmd BufEnter,BufWinEnter,TabEnter *.rs :lua require'lsp_extensions'.inlay_hints{} -augroup END -]], false)