make lsp folder
This commit is contained in:
parent
108b936515
commit
659be8fd81
3 changed files with 30 additions and 53 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{ self, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./mini.nix ];
|
||||
imports = [
|
||||
./mini.nix
|
||||
./lsp
|
||||
];
|
||||
|
||||
plugins = {
|
||||
treesitter = {
|
||||
|
|
@ -10,55 +11,7 @@
|
|||
};
|
||||
|
||||
todo-comments.enable = true;
|
||||
|
||||
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}" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
typos_lsp = {
|
||||
enable = true;
|
||||
extraOptions = { init_options = { diagnosticSeverity = "Hint"; }; };
|
||||
};
|
||||
pylsp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
configurationSources = [ "flake8" ];
|
||||
plugins = {
|
||||
pycodestyle = {
|
||||
enabled = true;
|
||||
maxLineLength = 120;
|
||||
};
|
||||
flake8 = {
|
||||
enabled = true;
|
||||
maxLineLength = 120;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
astro = { enable = true; };
|
||||
arduino_language_server = { enable = true; };
|
||||
bashls = { enable = true; };
|
||||
clangd = { enable = true; };
|
||||
dartls = { enable = true; };
|
||||
lua_ls = { enable = true; };
|
||||
mdx_analyzer = { enable = true; };
|
||||
fish_lsp = { enable = true; };
|
||||
docker_compose_language_service = { enable = true; };
|
||||
dockerls = { enable = true; };
|
||||
marksman = { enable = true; };
|
||||
};
|
||||
};
|
||||
|
||||
lualine = { enable = true; };
|
||||
lualine.enable = true;
|
||||
|
||||
cmp = {
|
||||
# TODO read what this does
|
||||
|
|
@ -70,7 +23,7 @@
|
|||
oil.enable = true; # shell scripting
|
||||
|
||||
#telescope
|
||||
telescope = { enable = true; };
|
||||
telescope.enable = true;
|
||||
web-devicons.enable = true; # be concious of this choice
|
||||
};
|
||||
}
|
||||
|
|
|
|||
12
plugins/lsp/default.nix
Normal file
12
plugins/lsp/default.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
imports = [
|
||||
./nix.nix
|
||||
];
|
||||
plugins.lsp.servers = {
|
||||
typos_lsp = {
|
||||
enable = true;
|
||||
extraOptions.init_options.diagnosticSeverity = "Hint";
|
||||
};
|
||||
astro.enable = true;
|
||||
};
|
||||
}
|
||||
12
plugins/lsp/nix.nix
Normal file
12
plugins/lsp/nix.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{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}" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue