|
8 | 8 | in |
9 | 9 | lib.mkIf config'.lsp.useDefaultSpecialLspServers { |
10 | 10 | extraPlugins = with pkgs.vimPlugins; [ |
11 | | - (pkgs.vimUtils.buildVimPlugin { |
12 | | - name = "ng"; |
13 | | - src = pkgs.fetchFromGitHub { |
14 | | - owner = "joeveiga"; |
15 | | - repo = "ng.nvim"; |
16 | | - rev = "38af07e77f066e2d6e3f74d966816662075ff4cd"; |
17 | | - hash = "sha256-Dh7RUB7JfurQFtl0UGANs8Tc38IaEum+i0ghN9iCsQk="; |
18 | | - }; |
19 | | - }) |
| 11 | + ng-nvim |
20 | 12 | roslyn-nvim |
21 | 13 | image-nvim |
22 | 14 | haskell-tools-nvim |
|
36 | 28 | }; |
37 | 29 | }; |
38 | 30 | }; |
| 31 | + # /* |
| 32 | + # lua |
| 33 | + # */ |
| 34 | + # '' |
| 35 | + # name = "@angular/language-service", |
| 36 | + # '' |
39 | 37 | typescript-tools = { |
40 | 38 | lazyLoad.settings.ft = "typescript"; |
41 | 39 | enable = true; |
| 40 | + settings.settings = { |
| 41 | + tsserver_plugins = |
| 42 | + if config'.lsp.special.useAngular |
| 43 | + then [ |
| 44 | + /* |
| 45 | + lua |
| 46 | + */ |
| 47 | + { |
| 48 | + __raw = '' |
| 49 | + name = "@angular/language-server", |
| 50 | + location = "${pkgs.angular-language-server}", |
| 51 | + enableForWorkspaceTypeScriptVersions = false, |
| 52 | + ''; |
| 53 | + } |
| 54 | + ] |
| 55 | + else []; |
| 56 | + }; |
42 | 57 | settings.on_attach = |
43 | 58 | /* |
44 | 59 | lua |
|
47 | 62 | function(client, bufnr) |
48 | 63 | local function is_angular_project(root_dir) |
49 | 64 | local util = require("lspconfig.util") |
50 | | - return util.path.exists(util.path.join(root_dir, "angular.json")) |
| 65 | + local ang = util.path.exists(util.path.join(root_dir, "angular.json")); |
| 66 | + local angTemp = util.path.exists(util.path.join(root_dir, "angular-template.json")); |
| 67 | + local isAngular = ang or angTemp |
| 68 | + return isAngular |
51 | 69 | end |
52 | 70 |
|
53 | 71 | local root_dir = client.config.root_dir |
|
92 | 110 | }; |
93 | 111 | extraConfigLua = '' |
94 | 112 | local inNeovide = vim.g.neovide or false |
95 | | - require("easy-dotnet").setup() |
96 | | - require("roslyn").setup({ |
97 | | - exe = 'Microsoft.CodeAnalysis.LanguageServer', |
98 | | - }) |
99 | 113 | require("ng") |
100 | 114 | require("litee.lib").setup() |
101 | 115 | require("litee.gh").setup() |
|
0 commit comments