1
0
Fork 0

minor updates

This commit is contained in:
Arthur Khachaturov 2024-09-19 04:25:07 +03:00
parent e3790a4f3f
commit 628baf3eea
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55
32 changed files with 655 additions and 123 deletions

View file

@ -1,5 +1,14 @@
-- Set proper tabstop for go
vim.api.nvim_create_autocmd('FileType', {
pattern = "go",
command = "setlocal tabstop=4",
command = "setlocal tabstop=4 noexpandtab",
})
-- Remove trailing whitespaces on save
vim.api.nvim_create_autocmd('BufWritePre', {
callback = function ()
local view = vim.fn.winsaveview()
vim.cmd('%s/\\s\\+$//e')
vim.fn.winrestview(view)
end
})