mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-18 18:19:12 +00:00
users/foo-dogsquared/programs/nixvim: enable LSP servers setup
This commit is contained in:
parent
b89eadc791
commit
63c67d7adf
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -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.
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user