nixos-config/configs/home-manager/foo-dogsquared/modules/programs/nixvim/lsp.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
plugins.lsp.enable = true;
plugins.lsp.inlayHints = 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.
nixd.enable = true; # For Nix.
nushell.enable = true; # For Nushell.
pyright.enable = true; # For Python.
# For Rust (even though I barely use it).
rust-analyzer = {
enable = true;
installRustc = false;
};
solargraph.enable = true; # For Ruby.
tailwindcss.enable = true; # For Tailwind CSS.
terraformls.enable = true; # For Terraform.
tsserver.enable = true; # For TypeScript.
};
}