Fix vim indentation

This commit is contained in:
Spotlight 2023-05-04 23:26:59 -05:00
parent 60ff941215
commit b970a31df0
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

View file

@ -61,25 +61,31 @@
programs.vim = { programs.vim = {
enable = true; enable = true;
# Let's not grab _all_ of Vim.
packageConfigurable = pkgs.vim;
plugins = with pkgs; [ plugins = with pkgs; [
pkgs.vimPlugins.vim-airline pkgs.vimPlugins.vim-airline
pkgs.vimPlugins.vim-airline-themes pkgs.vimPlugins.vim-airline-themes
pkgs.vimPlugins.vim-go pkgs.vimPlugins.vim-go
]; ];
settings = { settings = {
number = true; number = true;
# Two-spaced tabs # Two-spaced tabs
shiftwidth = 2;
tabstop = 2; tabstop = 2;
expandtab = false; expandtab = true;
}; };
extraConfig = '' extraConfig = ''
set nocompatible
filetype off
syntax on syntax on
filetype plugin indent on filetype plugin indent on
set backspace=indent,eol,start set backspace=indent,eol,start
" assistance with space-oriented tabs
set softtabstop=2
set smarttab
" custom filetypes " custom filetypes
autocmd BufNewFile,BufRead *.plist set syntax=xml autocmd BufNewFile,BufRead *.plist set syntax=xml