mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
new nvim config
This commit is contained in:
parent
4b730d3924
commit
7388c9bfd3
78 changed files with 1291 additions and 43 deletions
6
nvim/lua/config/autocmd.lua
Normal file
6
nvim/lua/config/autocmd.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
local autocmd = vim.api.nvim_create_autocmd
|
||||
|
||||
-- Remove all trailing whitespaces on save
|
||||
autocmd('BufWritePre', {
|
||||
command = [[:exe 'norm m`' | %s/\s\+$//eg | norm ``]]
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue