users/foo-dogsquared/programs/nixvim: enable LSP servers setup

This commit is contained in:
Gabriel Arazas 2024-02-03 21:33:17 +08:00
parent b89eadc791
commit 63c67d7adf
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 35 additions and 3 deletions

View File

@ -11,9 +11,11 @@ in
config = lib.mkIf cfg.enable {
programs.nixvim = {
enable = true;
imports = [
./note-taking.nix
];
imports =
[
./note-taking.nix
]
++ lib.optional userCfg.setups.development.enable ./lsp.nix;
};
};
}

View File

@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
{
plugins.lsp.enable = true;
# Enable all of the LSP servers that I'll likely use.
plugins.lsp.servers = {
bashls.enable = true; # For Bash.
clangd.enable = true; # For C/C++.
cmake.enable = true; # For CMake.
cssls.enable = true; # For CSS.
denols.enable = true; # For Deno runtime.
dockerls.enable = true; # For Dockerfiles.
emmet_ls.enable = true; # For emmet support.
eslint.enable = true; # For JavaScript.
html.enable = true; # For HTML.
jsonls.enable = true; # There's one for JSON?
lemminx.enable = true; # And for XML?
ltex.enable = true; # And for LanguageTool, too?
lua-ls.enable = true; # For Lua.
nil_ls.enable = true; # For Nix.
nushell.enable = true; # For Nushell.
pyright.enable = true; # For Python.
rust-analyzer.enable = true; # For Rust (even though I barely use it).
solargraph.enable = true; # For Ruby.
tailwindcss.enable = true; # For Tailwind CSS.
terraformls.enable = true; # For Terraform.
tsserver.enable = true; # For TypeScript.
};
}