neovim: use typescript-tools instead of typescript-language-server #18
1 changed files with 12 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let inherit (lib.nix2lua) call; in
|
let inherit (lib.nix2lua) call; in
|
||||||
{
|
{
|
||||||
|
@ -27,13 +27,17 @@ let inherit (lib.nix2lua) call; in
|
||||||
};
|
};
|
||||||
tsserver = rec {
|
tsserver = rec {
|
||||||
filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ];
|
filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ];
|
||||||
init_options.plugins = [
|
cmd = "${pkgs.nodePackages.typescript-language-server}/bin/typescript-language-server --stdio";
|
||||||
{
|
init_options = {
|
||||||
name = "@vue/typescript-plugin";
|
plugins = [
|
||||||
location = "./node_modules/@vue/typescript-plugin";
|
{
|
||||||
languages = filetypes;
|
name = "@vue/typescript-plugin";
|
||||||
}
|
location = "./node_modules/@vue/typescript-plugin";
|
||||||
];
|
languages = filetypes;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
tsserver.fallbackPath = "${pkgs.nodePackages.typescript}/lib/node_modules/typescript/lib";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
eslint = {
|
eslint = {
|
||||||
on_attach = config.fn.lspconfig-eslint-on-attach.lambda;
|
on_attach = config.fn.lspconfig-eslint-on-attach.lambda;
|
||||||
|
|
Loading…
Reference in a new issue