minor updates
This commit is contained in:
parent
e3790a4f3f
commit
628baf3eea
32 changed files with 655 additions and 123 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue