osbm-nvim/plugins/lsp/default.nix

20 lines
495 B
Nix

{ lib, pkgs, self, ... }: {
plugins.lsp.servers = {
astro.enable = true;
nixd = {
enable = true;
settings = let flake = ''(builtins.getFlake "${self}")'';
in {
nixpkgs.expr = "import ${flake}.inputs.nixpkgs { }";
formatting.command = [ "${lib.getExe pkgs.nixfmt-rfc-style}" ];
};
};
pyright = {
enable = true;
};
typos_lsp = {
enable = true;
extraOptions.init_options.diagnosticSeverity = "Hint";
};
};
}