From 1e44af87408be20cd37f7dad864f50e70c106e39 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Sat, 14 Jan 2023 22:36:21 -0500 Subject: [PATCH] Remove auto trim whitespace --- lua/autocmd.lua | 14 -------------- 1 file changed, 14 deletions(-) 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)