From 0bb33bf5878af24f992ea84e68b7e9dd4c78c2f7 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 11 Jan 2025 01:05:35 -0800 Subject: [PATCH] fix: enable neovim node host to fix tailwind-tools.nvim --- flake.nix | 3 +++ init.lua | 3 +++ 2 files changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index cb056ab..1d0a7d7 100644 --- a/flake.nix +++ b/flake.nix @@ -88,6 +88,8 @@ marksman libnotify + neovim-node-client + nodejs ]; }; @@ -217,6 +219,7 @@ websocat = "${pkgs.websocat}/bin/websocat"; tinymist = "${pkgs.tinymist}/bin/tinymist"; texpresso = "${pkgs.texpresso}/bin/texpresso"; + neovim-node-host = "${pkgs.neovim-node-client}/bin/neovim-node-host"; }; nixdExtras = { nixpkgs = inputs.nixpkgs.outPath; diff --git a/init.lua b/init.lua index c07e843..34549c0 100644 --- a/init.lua +++ b/init.lua @@ -35,6 +35,9 @@ vim.opt.scrolloff = 10 vim.cmd.colorscheme("oxocarbon") +vim.g.node_host_prog = nixCats("bin.neovim-node-host") +vim.g.loaded_node_provider = nil + require("nvim-treesitter.configs").setup({ ensure_installed = {}, sync_install = false,