diff options
| author | Aotrix <[email protected]> | 2025-02-26 01:25:41 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-02-26 01:25:41 +0100 |
| commit | 0dffa596c8315f449a7a7871ad1473f4e7d910b8 (patch) | |
| tree | 011586ac4718778f0d81edc127d34e5950520776 /lua | |
| parent | 32a43c4edaf9fc00aa09d76bd9382eaad57af256 (diff) | |
added nvim terminal config
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/aotrix/cmake_autorun.lua | 3 | ||||
| -rw-r--r-- | lua/aotrix/nvim_term.lua | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lua/aotrix/cmake_autorun.lua b/lua/aotrix/cmake_autorun.lua new file mode 100644 index 0000000..9d5747e --- /dev/null +++ b/lua/aotrix/cmake_autorun.lua @@ -0,0 +1,3 @@ +-- use :!cmake --build PATH_TO_BUILD_FOLDER +-- && Telescope to choose executable in PATH_TO_BUILD_FOLDER/EXECUTABLE_FOLDER/* +-- Then launch executable in a normal terminal - not nvim one diff --git a/lua/aotrix/nvim_term.lua b/lua/aotrix/nvim_term.lua new file mode 100644 index 0000000..aa1b312 --- /dev/null +++ b/lua/aotrix/nvim_term.lua @@ -0,0 +1,8 @@ +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 +}) |
