require("packer").startup(function()
    use 'wbthomason/packer.nvim'

    use 'tpope/vim-sensible'
end)

vim.cmd [[autocmd BufWritePre * :%s/\s\+$//e]]

vim.opt.fileencoding = "utf-8"
vim.opt.smartindent = true
vim.opt.swapfile = false; vim.opt.backup = false
vim.opt.tabstop = 4; vim.opt.sw = 4; vim.opt.sts = 4; vim.opt.expandtab= true


require("packer").startup(function()
    use 'wbthomason/packer.nvim'

    use 'tpope/vim-sensible'
end)

vim.cmd [[autocmd BufWritePre * :%s/\s\+$//e]]

vim.opt.fileencoding = "utf-8"
vim.opt.smartindent = true
vim.opt.swapfile = false; vim.opt.backup = false
vim.opt.tabstop = 4; vim.opt.sw = 4; vim.opt.sts = 4; vim.opt.expandtab= true

vim.cmd([[
augroup ft_git
    autocmd!
    autocmd BufNewFile,BufRead gitconfig setlocal filetype=gitconfig
    autocmd FileType gitcommit setlocal spell spelllang=en_us
augroup END
]])


Improve options for gitconfig and commits
nvim: Improve options for gitconfig and commits

Enable spell checking when editing commit messages.

An autocmd has also been added to properly set the file type when
editing gitconfig. This is required since nvim only "detects" .gitconfig
by default (named with a leading ".").
