Strip trailing spaces in Neovim
This commit is contained in:
parent
6a9f957bc9
commit
d7064ca62c
|
@ -17,6 +17,12 @@ require("gruvbox").setup({
|
|||
})
|
||||
vim.cmd([[colorscheme gruvbox]])
|
||||
|
||||
-- Strip trailing spaces
|
||||
vim.api.nvim_create_autocmd({"BufWritePre"}, {
|
||||
pattern = { "*" },
|
||||
command = [[%s/\s\+$//e]],
|
||||
})
|
||||
|
||||
-- Nvim-tree
|
||||
require("nvim-tree").setup({
|
||||
sort_by = "case_sensitive",
|
||||
|
|
Loading…
Reference in New Issue