DEVELOPMENT ENVIRONMENT

~liljamo/nvim-flake

ref: ddba46963a56e944a3d7d62dd8fc06675c7c392e nvim-flake/config/plugins/lsp.nix -rw-r--r-- 1.1 KiB
ddba4696Jonni Liljamo feat(lsp): qmlls 20 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{pkgs, ...}: {
  plugins = {
    lsp = {
      enable = true;
      inlayHints = true;
      servers = {
        gopls.enable = true;
        html.enable = true;
        htmx.enable = true;
        nixd.enable = true;
        protols = {
          enable = true;
          package = pkgs.protols;
        };
        basedpyright.enable = true;
        qmlls = {
          enable = true;
          cmd = ["qmlls" "-E"];
        };
        rust_analyzer = {
          enable = true;
          installCargo = false;
          installRustc = false;
          settings = {
            cargo.loadOutDirsFromCheck = true;
            inlayHints = {
              closureCaptureHints.enable = true;
              closureReturnTypeHints.enable = "always";
              implicitDrops.enable = true;
              implicitSizedBoundHints.enable = true;
            };
          };
        };
        taplo.enable = true;
        tailwindcss = {
          enable = true;
          filetypes = ["htmldjango" "html" "markdown" "rust" "templ"];
        };
        templ.enable = true;
        yamlls.enable = true;
      };
    };
    fidget.enable = true;
  };
}