From 33c226e119a4f8807515372569c1a25815f5c557 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 10 Aug 2024 18:17:50 +0300 Subject: [PATCH] neovim: use plugin from nixeovim --- flake.lock | 8 ++++---- neovim/configs/language-server.nix | 11 +++++++++++ neovim/plugins/default.nix | 1 - neovim/plugins/typescript-tools.nix | 13 ------------- 4 files changed, 15 insertions(+), 18 deletions(-) delete mode 100644 neovim/plugins/typescript-tools.nix diff --git a/flake.lock b/flake.lock index be1ac7e..af364f6 100644 --- a/flake.lock +++ b/flake.lock @@ -299,11 +299,11 @@ ] }, "locked": { - "lastModified": 1720807102, - "narHash": "sha256-e4qq/+Zi1A/xv78Siuxu1jxYkGWjr/o0Xb1DBbQ5Q/M=", + "lastModified": 1723290966, + "narHash": "sha256-HlSsIOCqmSa4pYMoBlFMfyWuw0rpgGfJdcLHaey+WoM=", "ref": "refs/heads/main", - "rev": "a6b4b729baf5c9472e9e069cd655edc8359bbada", - "revCount": 87, + "rev": "328ed672995614acb3d42752f20ba41b7f6e77b3", + "revCount": 93, "type": "git", "url": "https://git.pleshevski.ru/pleshevskiy/nixeovim" }, diff --git a/neovim/configs/language-server.nix b/neovim/configs/language-server.nix index 5d14913..85b70f5 100644 --- a/neovim/configs/language-server.nix +++ b/neovim/configs/language-server.nix @@ -48,4 +48,15 @@ let inherit (lib.nix2lua) call; in jdtls = { cmd = [ "jdtls" ]; }; jsonls = { }; }; + + plugins.language-server.typescript-tools = { + enable = true; + serverSettings = { + filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ]; + settings = { + tsserver_max_memory = "auto"; + tsserver_plugins = [ "@vue/typescript-plugin" ]; + }; + }; + }; } diff --git a/neovim/plugins/default.nix b/neovim/plugins/default.nix index 7e0dcbd..5ad1883 100644 --- a/neovim/plugins/default.nix +++ b/neovim/plugins/default.nix @@ -1,6 +1,5 @@ { imports = [ ./ollama.nix - ./typescript-tools.nix ]; } diff --git a/neovim/plugins/typescript-tools.nix b/neovim/plugins/typescript-tools.nix deleted file mode 100644 index 5825ae1..0000000 --- a/neovim/plugins/typescript-tools.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ - plugin.typescript-tools-nvim = { - enable = true; - name = "typescript-tools"; - setupSettings = { - filetypes = [ "javascript" "javascriptreact" "typescript" "typescriptreact" "vue" ]; - settings = { - tsserver_max_memory = "auto"; - tsserver_plugins = [ "@vue/typescript-plugin" ]; - }; - }; - }; -}