Skip to content

Commit 2fbcd40

Browse files
committed
fix lspconfig
1 parent 3201774 commit 2fbcd40

File tree

4 files changed

+2
-46
lines changed

4 files changed

+2
-46
lines changed

lib/buildPlugin.nix

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ let
1414
};
1515
};
1616

17-
smithy-lsp = pkgs.callPackage ./smithy-lspconfig.nix { };
18-
19-
smithyLspHook = ''
20-
cat >> $out/lua/lspconfig/configs/smithy_ls.lua <<EOL
21-
${smithy-lsp.lua}
22-
EOL
23-
'';
24-
2517
# sync queries of tree-sitter-scala and nvim-treesitter
2618
queriesHook = ''
2719
cp ${inputs.tree-sitter-scala}/queries/* $out/queries/scala/
@@ -63,7 +55,6 @@ let
6355
dontBuild = name == "nvim-metals";
6456

6557
preFixup = ''
66-
${writeIf (name == "nvim-lspconfig") smithyLspHook}
6758
${writeIf (name == "nvim-treesitter") tsPreFixupHook}
6859
${writeIf (name == "telescope-media-files") telescopeFixupHook}
6960
'';

lib/plugins/overrides.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ in
7373
(withDeps (p == "nvim-autopairs") [ "nvim-autopairs.completion.cmp" "nvim-autopairs.completion.compe" ]) ++
7474
(withDeps (p == "nvim-bufferline") [ "bufferline.commands" ]) ++
7575
(withDeps (p == "nvim-cmp") cmpSkip) ++
76-
(withDeps (p == "nvim-lspconfig") [ "lspconfig.configs.smithy_ls" ]) ++
7776
(withDeps (p == "nvim-neoclip") [ "neoclip.fzf" "neoclip.telescope" ]) ++
7877
(withDeps (p == "nvim-notify") [ "notify.integrations.fzf" ]) ++
7978
(withDeps (p == "nvim-treesitter-context") [ "install_parsers" ]) ++

lib/smithy-lspconfig.nix

Lines changed: 0 additions & 34 deletions
This file was deleted.

modules/lsp/lsp.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ in
476476
-- Smithy config
477477
vim.cmd([[au BufRead,BufNewFile *.smithy setfiletype smithy]])
478478
479-
lspconfig.smithy.setup {
479+
lspconfig.smithy_ls.setup {
480480
capabilities = capabilities;
481481
on_attach = function(client, bufnr)
482482
attach_keymaps(client, bufnr)
@@ -494,7 +494,7 @@ in
494494
495495
${writeIf cfg.ts ''
496496
-- TS config
497-
lspconfig.tsserver.setup {
497+
lspconfig.ts_ls.setup {
498498
capabilities = capabilities;
499499
on_attach = function(client, bufnr)
500500
attach_keymaps(client, bufnr)

0 commit comments

Comments
 (0)