dont need seperation for LSPs

This commit is contained in:
Osman Faruk Bayram 2025-03-08 00:53:25 +03:00
parent 6dee74d367
commit adef6f1d93
5 changed files with 16 additions and 25 deletions

View file

@ -4,8 +4,6 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Nix formatting pack
# https://gerschtli.github.io/nix-formatter-pack/nix-formatter-pack-options.html
nix-formatter-pack = {
url = "github:Gerschtli/nix-formatter-pack";

View file

@ -1,7 +1,7 @@
{
imports = [
./mini.nix
./lsp
./mini.nix
];
plugins = {
@ -19,8 +19,9 @@
# enable = true;
# autoEnableSources = true;
# };
cmp-nvim-lsp.enable = true;
# cmp-nvim-lsp.enable = true;
blink-cmp.enable = true;
oil.enable = true; # shell scripting

View file

@ -1,13 +1,20 @@
{
imports = [
./nix.nix
./python.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";
};
astro.enable = true;
};
}

View file

@ -1,10 +0,0 @@
{ lib, pkgs, self, ... }: {
plugins.lsp.servers.nixd = {
enable = true;
settings = let flake = ''(builtins.getFlake "${self}")'';
in {
nixpkgs.expr = "import ${flake}.inputs.nixpkgs { }";
formatting.command = [ "${lib.getExe pkgs.nixfmt-rfc-style}" ];
};
};
}

View file

@ -1,5 +0,0 @@
{
plugins.lsp.servers.pyright = {
enable = true;
};
}