diff options
author | justanothercatgirl <sotov2070@gmail.com> | 2024-02-22 13:42:19 +0300 |
---|---|---|
committer | justanothercatgirl <sotov2070@gmail.com> | 2024-02-22 13:42:19 +0300 |
commit | e72256be161a60a0671b2ed2868f4d3e99559645 (patch) | |
tree | 4010dd2d0e76288147b024f25a305b8fd3ca60e9 /.config/nvim/lua/user/remaps.lua | |
parent | e23f36ec3fc9f026be73550b66a6a7a8b66aafb1 (diff) |
added coderunner and toggleterm functionality to nvim
for fuck's sake JUST LOOK AT VARIABLE `local script` IN
`.config/nvim/lua/user/coderunner.lua`
That shit's RIDICULOUS
Diffstat (limited to '.config/nvim/lua/user/remaps.lua')
-rw-r--r-- | .config/nvim/lua/user/remaps.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.config/nvim/lua/user/remaps.lua b/.config/nvim/lua/user/remaps.lua index 6400957..ad1e2eb 100644 --- a/.config/nvim/lua/user/remaps.lua +++ b/.config/nvim/lua/user/remaps.lua @@ -68,9 +68,12 @@ map("n", "<C-A-Down>", ":.,.t.<CR>==", opt) -- leader remaps map("n", "<leader>/", ":nohlsearch<CR>", opt) -- discard search highlighting -map("n", "<leader>t", ":split<CR>:terminal<CR>:resize 4<CR>", opt) -- open terminal fullscreen with \T -map("n", "<leader>T", ":vsplit<CR>:terminal<CR>", opt) -- split to terminal with \t map("n", "<leader>pl", ":Lazy<CR>", opt) -- open plugin manager +-- Old mappings for the terminal +-- map("n", "<leader>t", ":split<CR>:terminal<CR>:resize 4<CR>", opt) -- open terminal fullscreen with \T +-- map("n", "<leader>T", ":vsplit<CR>:terminal<CR>", opt) -- split to terminal with \t +map("", "<leader>t", ":ToggleTerm<CR>", opt) -- open ToggleTerm +map("t", "<leader>t", ":ToggleTerm<CR>", opt) -- close ToggleTerm -- miscellaneous map("c", "w!!", "w !sudo tee % > /dev/null", opt) @@ -91,6 +94,10 @@ lmap("n", "<leader>d", vim.diagnostic.open_float) lmap("n", "d[", vim.diagnostic.goto_prev) lmap("n", "d]", vim.diagnostic.goto_next) +-- Code Runner remaps +map("n", "<F5>", ":RunCode<CR>", opt) +map("n", "<F2>", ":echo 'time: ' . strftime('%c')<CR>", opt) + -- language server remaps -- enable only after attaching language server to buffer vim.api.nvim_create_autocmd('LspAttach', { |