diff options
| author | Aotrix <[email protected]> | 2025-02-26 14:53:30 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-02-26 14:53:30 +0100 |
| commit | 44c2abd18662c65637482ff9d2bcc2b7791452d7 (patch) | |
| tree | 5e7760d6d50bb0a0946ff92fa6fef842e29396ea | |
| parent | 7f149350c5eb90c3fc6cb020e3758a999a462070 (diff) | |
added cmake-tools plugin
| -rw-r--r-- | lua/aotrix/cmake_autorun.lua | 8 | ||||
| -rw-r--r-- | lua/aotrix/nvim_term.lua | 8 | ||||
| -rw-r--r-- | lua/aotrix/plugins/cmake-tools.lua | 1 |
3 files changed, 1 insertions, 16 deletions
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", - "<CMD>terminal cmake --build build && ./build/bin/* <CR>", - {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 = {}} |
