mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-07 15:54:31 +02:00
plugins/guess-indent: init
This commit is contained in:
parent
230f95eae0
commit
30ab203d56
3 changed files with 117 additions and 0 deletions
47
tests/test-sources/plugins/utils/guess-indent.nix
Normal file
47
tests/test-sources/plugins/utils/guess-indent.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.guess-indent.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.guess-indent = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
auto_cmd = true;
|
||||
override_editorconfig = false;
|
||||
filetype_exclude = [
|
||||
"netrw"
|
||||
"tutor"
|
||||
];
|
||||
buftype_exclude = [
|
||||
"help"
|
||||
"nofile"
|
||||
"terminal"
|
||||
"prompt"
|
||||
];
|
||||
on_tab_options = {
|
||||
"expandtab" = false;
|
||||
};
|
||||
on_space_options = {
|
||||
"expandtab" = true;
|
||||
"tabstop" = "detected";
|
||||
"softtabstop" = "detected";
|
||||
"shiftwidth" = "detected";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.guess-indent = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
auto_cmd = false;
|
||||
override_editorconfig = true;
|
||||
filetype_exclude = [ "markdown" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue