Fix vim indentation
This commit is contained in:
parent
60ff941215
commit
b970a31df0
1 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue