plugins/codesettings: init
This commit is contained in:
parent
2ca0f6b7bc
commit
5ae23bff4e
2 changed files with 71 additions and 0 deletions
23
plugins/by-name/codesettings/default.nix
Normal file
23
plugins/by-name/codesettings/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, ... }:
|
||||
lib.nixvim.plugins.mkNeovimPlugin {
|
||||
name = "codesettings";
|
||||
package = "codesettings-nvim";
|
||||
|
||||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
settingsExample = {
|
||||
config_file_paths = [
|
||||
".vscode/settings.json"
|
||||
"codesettings.json"
|
||||
"lspsettings.json"
|
||||
".codesettings.json"
|
||||
".lspsettings.json"
|
||||
".nvim/codesettings.json"
|
||||
".nvim/lspsettings.json"
|
||||
];
|
||||
jsonls_integration = true;
|
||||
default_merge_opts = {
|
||||
list_behavior = "prepend";
|
||||
};
|
||||
};
|
||||
}
|
||||
48
tests/test-sources/plugins/by-name/codesettings/default.nix
Normal file
48
tests/test-sources/plugins/by-name/codesettings/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.codesettings.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.codesettings = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
config_file_paths = [
|
||||
".vscode/settings.json"
|
||||
"codesettings.json"
|
||||
"lspsettings.json"
|
||||
];
|
||||
jsonc_filetype = true;
|
||||
jsonls_integration = true;
|
||||
live_reload = false;
|
||||
loader_extensions = [ ];
|
||||
lua_ls_integration = true;
|
||||
merge_lists = "append";
|
||||
root_dir.__raw = "nil";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.codesettings = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
config_file_paths = [
|
||||
".vscode/settings.json"
|
||||
"codesettings.json"
|
||||
"lspsettings.json"
|
||||
".codesettings.json"
|
||||
".lspsettings.json"
|
||||
".nvim/codesettings.json"
|
||||
".nvim/lspsettings.json"
|
||||
];
|
||||
jsonls_integration = true;
|
||||
default_merge_opts = {
|
||||
list_behavior = "prepend";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue