diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2023-10-17 00:16:25 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2023-10-17 00:16:25 -0300 |
| commit | 5a0f64d67f1981dad243f6d328664139e49ce664 (patch) | |
| tree | b4c7a39855c1154298a26979e51c84d7391335e0 /lua/config | |
| parent | 9f7ef8669223eb7cdaf3f580dc8b6a7926807231 (diff) | |
| download | nvim-conf-5a0f64d67f1981dad243f6d328664139e49ce664.tar.gz nvim-conf-5a0f64d67f1981dad243f6d328664139e49ce664.zip | |
commit initial epii
Diffstat (limited to 'lua/config')
| -rw-r--r-- | lua/config/keymaps.lua | 10 | ||||
| -rw-r--r-- | lua/config/options.lua | 4 |
2 files changed, 13 insertions, 1 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"}) diff --git a/lua/config/options.lua b/lua/config/options.lua index 7cbc205..c6449c6 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -14,7 +14,9 @@ opt.softtabstop = 4 opt.shiftwidth = 4 opt.smartindent = true opt.errorbells = false -opt.wrap = false +opt.wrap = true +opt.spell = true +opt.spelllang = "en_us,es" opt.swapfile = false opt.undofile = true opt.undodir = os.getenv "HOME" .. "/.cache/nvim/undodir" |