From 93945a96daad5db8f91b07d1aef65b3ec6f758fb Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Fri, 26 Apr 2024 02:09:30 +0300 Subject: feat: autocommands to regenerate and reset project One autocommand generates project after saving CMakeLists.txt, and other sets up all project after saving variants --- lua/cmake/fileapi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/cmake/fileapi.lua') diff --git a/lua/cmake/fileapi.lua b/lua/cmake/fileapi.lua index 47a7459..d33d477 100644 --- a/lua/cmake/fileapi.lua +++ b/lua/cmake/fileapi.lua @@ -2,7 +2,7 @@ local capabilities = require("cmake.capabilities") local Path = require("plenary.path") local scan = require("plenary.scandir") local utils = require("cmake.utils") -local uv = vim.loop +local uv = vim.uv or vim.loop local query_path_suffix = { ".cmake", "api", "v1", "query", "client-cmake", "query.json" } local reply_dir_suffix = { ".cmake", "api", "v1", "reply" } -- cgit v1.2.3