fix(neovim): add expandtab and respect editorconfig
We also added an editorconfig with this one in the repository
This commit is contained in:
parent
d187b96054
commit
eed3e35fe8
3 changed files with 9 additions and 0 deletions
5
.editorconfig
Normal file
5
.editorconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[*]
|
||||
indent_style = tab
|
||||
indent_size = 2
|
||||
trim_trailing_whitespaces = true
|
||||
insert_final_newline = true
|
||||
|
|
@ -28,6 +28,7 @@ in
|
|||
options = {
|
||||
tabstop = 2;
|
||||
shiftwidth = 2;
|
||||
expandtab = false;
|
||||
cursorlineopt = "screenline";
|
||||
};
|
||||
|
||||
|
|
|
|||
3
modules/nixos/cli/neovim/editorconfig/default.nix
Normal file
3
modules/nixos/cli/neovim/editorconfig/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
programs.nvf.settings.vim.editorconfig.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue