vim: show tabs and expand them to spaces
This commit is contained in:
19
modules/universal/env/home-manager.nix
vendored
19
modules/universal/env/home-manager.nix
vendored
@@ -150,7 +150,7 @@ in
|
|||||||
"https://feeds.simplecast.com/BqbsxVfO"
|
"https://feeds.simplecast.com/BqbsxVfO"
|
||||||
"https://rss.acast.com/ft-tech-tonic"
|
"https://rss.acast.com/ft-tech-tonic"
|
||||||
"https://feeds.feedburner.com/dancarlin/history?format=xml"
|
"https://feeds.feedburner.com/dancarlin/history?format=xml"
|
||||||
];
|
];
|
||||||
in ''
|
in ''
|
||||||
[podcast]
|
[podcast]
|
||||||
podcast-urls=${podcast_urls}
|
podcast-urls=${podcast_urls}
|
||||||
@@ -445,7 +445,7 @@ in
|
|||||||
disable = {}
|
disable = {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.o.foldmethod = 'expr'
|
vim.o.foldmethod = 'expr'
|
||||||
vim.o.foldexpr = 'nvim_treesitter#foldexpr()'
|
vim.o.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
'';
|
'';
|
||||||
@@ -454,7 +454,10 @@ in
|
|||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
" copy/paste to system clipboard
|
" copy/paste to system clipboard
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
|
|
||||||
|
" screw tabs; always expand them into spaces
|
||||||
|
set expandtab
|
||||||
|
|
||||||
" at least don't open files with sections folded by default
|
" at least don't open files with sections folded by default
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
|
|
||||||
@@ -463,13 +466,19 @@ in
|
|||||||
" i only make use of this for tex, but it's unclear how to
|
" i only make use of this for tex, but it's unclear how to
|
||||||
" apply that *just* to tex and retain the SyntaxRange stuff.
|
" apply that *just* to tex and retain the SyntaxRange stuff.
|
||||||
set conceallevel=2
|
set conceallevel=2
|
||||||
|
|
||||||
" horizontal rule under the active line
|
" horizontal rule under the active line
|
||||||
" set cursorline
|
" set cursorline
|
||||||
|
|
||||||
" highlight trailing space & related syntax errors (doesn't seem to work??)
|
" highlight trailing space & related syntax errors (doesn't seem to work??)
|
||||||
" let c_space_errors=1
|
" let c_space_errors=1
|
||||||
" let python_space_errors=1
|
" let python_space_errors=1
|
||||||
|
|
||||||
|
" enable highlighting of leading/trailing spaces,
|
||||||
|
" and especially tabs
|
||||||
|
" source: https://www.reddit.com/r/neovim/comments/chlmfk/highlight_trailing_whitespaces_in_neovim/
|
||||||
|
set list
|
||||||
|
set listchars=tab:▷\·,trail:·,extends:◣,precedes:◢,nbsp:○
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user