mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/luau-lsp: init
This commit is contained in:
parent
8b3a2f86a8
commit
660fba984f
3 changed files with 90 additions and 0 deletions
19
plugins/by-name/luau-lsp/default.nix
Normal file
19
plugins/by-name/luau-lsp/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "luau-lsp";
|
||||||
|
package = "luau-lsp-nvim";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
platform.type = "roblox";
|
||||||
|
types.roblox_security_level = "PluginSecurity";
|
||||||
|
|
||||||
|
sourcemap = {
|
||||||
|
enabled = true;
|
||||||
|
autogenerate = true;
|
||||||
|
rojo_project_file = "default.project.json";
|
||||||
|
sourcemap_file = "sourcemap.json";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -109,6 +109,9 @@ let
|
||||||
# https://github.com/NixOS/nixpkgs/commit/bc725b12b2595951a3f4b112d59716d30b41001a
|
# https://github.com/NixOS/nixpkgs/commit/bc725b12b2595951a3f4b112d59716d30b41001a
|
||||||
"zf"
|
"zf"
|
||||||
"zls"
|
"zls"
|
||||||
|
|
||||||
|
# luau-lsp is marked as broken on x86_64-darwin
|
||||||
|
"luau-lsp.nvim"
|
||||||
]
|
]
|
||||||
++ lib.optionals (hostPlatform.isDarwin && hostPlatform.isAarch64) [
|
++ lib.optionals (hostPlatform.isDarwin && hostPlatform.isAarch64) [
|
||||||
# 2025-10-20: build failure
|
# 2025-10-20: build failure
|
||||||
|
|
|
||||||
68
tests/test-sources/plugins/by-name/luau-lsp/default.nix
Normal file
68
tests/test-sources/plugins/by-name/luau-lsp/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.luau-lsp.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.luau-lsp = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
fflags = {
|
||||||
|
enable_by_default = false;
|
||||||
|
enable_new_solver = false;
|
||||||
|
override = lib.nixvim.emptyTable;
|
||||||
|
sync = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
platform = {
|
||||||
|
type = "roblox";
|
||||||
|
};
|
||||||
|
|
||||||
|
plugin = {
|
||||||
|
enabled = false;
|
||||||
|
port = 3667;
|
||||||
|
};
|
||||||
|
|
||||||
|
server = {
|
||||||
|
path = "luau-lsp";
|
||||||
|
};
|
||||||
|
|
||||||
|
sourcemap = {
|
||||||
|
autogenerate = true;
|
||||||
|
enabled = true;
|
||||||
|
generator_cmd = lib.nixvim.mkRaw "nil";
|
||||||
|
include_non_scripts = true;
|
||||||
|
rojo_path = "rojo";
|
||||||
|
rojo_project_file = "default.project.json";
|
||||||
|
sourcemap_file = "sourcemap.json";
|
||||||
|
};
|
||||||
|
|
||||||
|
types = {
|
||||||
|
definition_files = lib.nixvim.emptyTable;
|
||||||
|
documentation_files = lib.nixvim.emptyTable;
|
||||||
|
roblox_security_level = "PluginSecurity";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
example = {
|
||||||
|
plugins.luau-lsp = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
platform.type = "roblox";
|
||||||
|
types.roblox_security_level = "PluginSecurity";
|
||||||
|
|
||||||
|
sourcemap = {
|
||||||
|
enabled = true;
|
||||||
|
autogenerate = true;
|
||||||
|
rojo_project_file = "default.project.json";
|
||||||
|
sourcemap_file = "sourcemap.json";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue