mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 12:09:48 +01:00
commit
f3aac8cb5a
2 changed files with 10 additions and 10 deletions
|
@ -12,10 +12,10 @@ with builtins; let
|
||||||
dart = {
|
dart = {
|
||||||
package = pkgs.dart;
|
package = pkgs.dart;
|
||||||
lspConfig = ''
|
lspConfig = ''
|
||||||
lspconfig.dart.setup{
|
lspconfig.dartls.setup{
|
||||||
capabilities = capabilities;
|
capabilities = capabilities;
|
||||||
on_attach=default_on_attach;
|
on_attach=default_on_attach;
|
||||||
cmd = {"${pkgs.dart}/bin/dart"};
|
cmd = {"${pkgs.dart}/bin/dart", "language-server", "--protocol=lsp"};
|
||||||
${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.dartOpts}"}
|
${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.dartOpts}"}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -12,10 +12,10 @@ with builtins; let
|
||||||
dart = {
|
dart = {
|
||||||
package = pkgs.dart;
|
package = pkgs.dart;
|
||||||
lspConfig = ''
|
lspConfig = ''
|
||||||
lspconfig.dart.setup{
|
lspconfig.dartls.setup{
|
||||||
capabilities = capabilities;
|
capabilities = capabilities;
|
||||||
on_attach=default_on_attach;
|
on_attach=default_on_attach;
|
||||||
cmd = {"${pkgs.dart}/bin/dart"};
|
cmd = {"${pkgs.dart}/bin/dart", "language-server", "--protocol=lsp"};
|
||||||
${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.dartOpts}"}
|
${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.dartOpts}"}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
@ -35,11 +35,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = mkOption {
|
enable = mkEnableOption "Enable Dart LSP support";
|
||||||
description = "Enable Dart LSP support";
|
|
||||||
type = types.bool;
|
|
||||||
default = config.vim.languages.enableLSP;
|
|
||||||
};
|
|
||||||
server = mkOption {
|
server = mkOption {
|
||||||
description = "The Dart LSP server to use";
|
description = "The Dart LSP server to use";
|
||||||
type = with types; enum (attrNames servers);
|
type = with types; enum (attrNames servers);
|
||||||
|
@ -58,7 +54,11 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
flutter-tools = {
|
flutter-tools = {
|
||||||
enable = mkEnableOption "Enable flutter-tools for flutter support";
|
enable = mkOption {
|
||||||
|
description = "Enable flutter-tools for flutter support";
|
||||||
|
type = types.bool;
|
||||||
|
default = config.vim.languages.enableLSP;
|
||||||
|
};
|
||||||
|
|
||||||
color = {
|
color = {
|
||||||
enable = mkEnableOption "Whether or mot to highlight color variables at all";
|
enable = mkEnableOption "Whether or mot to highlight color variables at all";
|
||||||
|
|
Loading…
Reference in a new issue