Skip to content

Commit

Permalink
fix(modules/programs/nixvim/plugins/lsp-format): 'rust-tools' problem
Browse files Browse the repository at this point in the history
> The 'plugins.rust-tools' module prevents the 'plugins.lsp-format'
> module from working because the 'require("rust-tools").setup({})'
> setup is invoked after the iterative
> 'require("lspconfig")[server.name].setup(options)' LSP setups.
>
> This change declares the 'require("rust-tools").setup({})' statement
> before the iterative
> 'require("lspconfig")[server.name].setup(options)' LSP setups.
> Additionally, enabling the 'plugins.rust-tools' module implicitly
> enables the 'plugins.lsp.servers.rust-analyzer' to ensure a proper LSP
> setup.
>
> (Source: nix-community/nixvim#728)

Requires: nix-community/nixvim#728
  • Loading branch information
trueNAHO committed Nov 22, 2023
1 parent f599e72 commit c1d4afd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
pre-commit-hooks.follows = "preCommitHooks";
};

url = "github:nix-community/nixvim";
url = "github:trueNAHO/nixvim/fix-plugins-languages-rust-rust-tools-negates-lsp-format";
};

preCommitHooks = {
Expand Down

0 comments on commit c1d4afd

Please sign in to comment.