diff options
Diffstat (limited to 'lua/config/keymaps.lua')
| -rw-r--r-- | lua/config/keymaps.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 22b786d..3013d65 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -71,3 +71,13 @@ map("n", "<leader>vn", vim.diagnostic.goto_next, { desc = "Goes to next diagnost map("n", "<leader>vp", vim.diagnostic.goto_prev, { desc = "Goes to prev diagnostic error" }) map("v", "<leader>q", require('alpha.select_to_quickfix').handle) +map('n', '99', ':set invspell<CR>', { noremap = true }) +map("n", "<leader>ss", function() require('nvim-python-repl').send_statement_definition() end, { desc = "Send semantic unit to REPL"}) +map("n", "<leader>sl", function() require('nvim-python-repl').send_visual_to_repl() end, { desc = "Send visual selection to REPL"}) +map("v", "<leader>sl", function() require('nvim-python-repl').send_visual_to_repl() end, { desc = "Send visual selection to REPL"}) +map("n", "<leader>MReturn", function() require('nvim-python-repl').send_buffer_to_repl() end, { desc = "Send entire buffer to REPL"}) +map("n", "<leader>e", function() require('nvim-python-repl').toggle_execute() end, { desc = "Automatically execute command in REPL after sent"}) +map("n", "<leader>vi", function() require('nvim-python-repl').toggle_vertical() end, { desc = "Create REPL in vertical or horizontal split"}) +map("n", "<leader>rl",function() require('rust-tools').inlay_hints.enable() end, {desc = "Enable inlay hints auto update and set them for all the buffers"}) +map("n", "<leader>rdl",function() require('rust-tools').inlay_hints.disable() end, {desc = "Disable inlay hints auto update and unset them for all buffers"}) +map("n", "<leader>rrn", function () require('rust-tools').runnables.runnables() end, {desc = "run rust"}) |