From 44c4863ac328c8a1656213531374f7511db33912 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Fri, 27 Feb 2026 17:36:39 +0100 Subject: [PATCH] auto close tags --- home-manager/nixvim/lsp.nix | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/home-manager/nixvim/lsp.nix b/home-manager/nixvim/lsp.nix index 90da075..4f4954f 100644 --- a/home-manager/nixvim/lsp.nix +++ b/home-manager/nixvim/lsp.nix @@ -1,13 +1,21 @@ { pkgs, ... }: { + # extraConfigLua = '' + # --Enable (broadcasting) snippet capability for completion + # local capabilities = vim.lsp.protocol.make_client_capabilities() + # capabilities.textDocument.completion.completionItem.snippetSupport = true + # vim.lsp.config('html', { + # capabilities = capabilities, + # }) + # ''; + plugins.ts-autotag.enable = true; # auto close and rename html tags lsp = { inlayHints.enable = true; servers = { - #angularls.enable = true; Todo: fix + #angularls.enable = true; # Todo: fix bashls.enable = true; #ccls.enable = true; clangd.enable = true; - cssls.enable = true; gopls.enable = true; #clojure_lsp.enable = true; qmlls = { @@ -20,14 +28,26 @@ nixd = { enable = true; settings = { - nixpkgs.expr = ''import { }''; + nixpkgs.expr = "import { }"; formatting.command = [ "nixpkgs-fmt" ]; options.nixos.expr = ''(builtins.getFlake ("/home/kopatz/projects/github/nix-config")).nixosConfigurations.kop-pc.options''; }; }; - html.enable = true; - dartls.enable = true; # handled by flutter-tools + #angularls.enable = true; + html = { + enable = true; + config = { + filetypes = [ + "html" + "htmldjango" + "razor" + "htmlangular" + ]; + }; + }; + cssls.enable = true; ts_ls.enable = true; + dartls.enable = true; # handled by flutter-tools pylsp.enable = true; lua_ls.enable = true; csharp_ls = {