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