mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
nvim-lsp: add zls support
This commit is contained in:
parent
ba4afda369
commit
9d1911a5d5
2 changed files with 19 additions and 0 deletions
|
@ -10,6 +10,7 @@ in
|
|||
./rust-analyzer.nix
|
||||
./rnix-lsp.nix
|
||||
./pyright.nix
|
||||
./zls.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
|
18
plugins/nvim-lsp/zls.nix
Normal file
18
plugins/nvim-lsp/zls.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.programs.nixvim.plugins.lsp.servers.zls;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
programs.nixvim.plugins.lsp.servers.zls = {
|
||||
enable = mkEnableOption "Enable zls, for Zig.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nixvim.extraPackages = [ pkgs.zls ];
|
||||
|
||||
programs.nixvim.plugins.lsp.enabledServers = [ "zls" ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue