mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 03:34:31 +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
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