From 44c2abd18662c65637482ff9d2bcc2b7791452d7 Mon Sep 17 00:00:00 2001 From: Aotrix Date: Wed, 26 Feb 2025 14:53:30 +0100 Subject: added cmake-tools plugin --- lua/aotrix/cmake_autorun.lua | 8 -------- lua/aotrix/nvim_term.lua | 8 -------- lua/aotrix/plugins/cmake-tools.lua | 1 + 3 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 lua/aotrix/cmake_autorun.lua delete mode 100644 lua/aotrix/nvim_term.lua create mode 100644 lua/aotrix/plugins/cmake-tools.lua (limited to 'lua') diff --git a/lua/aotrix/cmake_autorun.lua b/lua/aotrix/cmake_autorun.lua deleted file mode 100644 index 833869c..0000000 --- a/lua/aotrix/cmake_autorun.lua +++ /dev/null @@ -1,8 +0,0 @@ --- use :!cmake --build PATH_TO_BUILD_FOLDER --- && Telescope to choose executable in PATH_TO_BUILD_FOLDER/EXECUTABLE_FOLDER/* --- Find these lines (in cmake.build) : agougou is the "bin" folder, program is the exe name --- CMakeFiles/program.dir/build: agougou/program --- rg 'CMakeFiles\/(.*).dir\/build:(?!.*Lib*)' build/CMakeFiles/ --no-filename -Por '$1' -vim.keymap.set("n", "mt", - "terminal cmake --build build && ./build/bin/* ", - {noremap = true, silent = true}) diff --git a/lua/aotrix/nvim_term.lua b/lua/aotrix/nvim_term.lua deleted file mode 100644 index aa1b312..0000000 --- a/lua/aotrix/nvim_term.lua +++ /dev/null @@ -1,8 +0,0 @@ -vim.api.nvim_create_autocmd("TermOpen", - {callback = function() vim.cmd "startinsert!" end}) -vim.api.nvim_create_autocmd('TermOpen', { - callback = function() - vim.opt_local.relativenumber = false - vim.opt_local.number = false - end -}) diff --git a/lua/aotrix/plugins/cmake-tools.lua b/lua/aotrix/plugins/cmake-tools.lua new file mode 100644 index 0000000..5741e50 --- /dev/null +++ b/lua/aotrix/plugins/cmake-tools.lua @@ -0,0 +1 @@ +return {'Civitasv/cmake-tools.nvim', opts = {}} -- cgit v1.2.3