From f84cf1868f917437357006929ac4a1447494a76b Mon Sep 17 00:00:00 2001 From: "Vito G. Graffagnino" Date: Thu, 9 Jun 2022 13:36:05 +0100 Subject: Minor changes --- lua/user/keymaps.lua | 7 +++++++ lua/user/plugins.lua | 13 +++++++++++++ lua/user/telescope.lua | 7 ++++++- lua/user/whichkey.lua | 1 + 4 files changed, 27 insertions(+), 1 deletion(-) (limited to 'lua/user') diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index 5b94186..9909142 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -70,3 +70,10 @@ keymap("n", "f", ":Format", opts) keymap("n", "f", "lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))", opts) keymap("n", "", "Telescope live_grep", opts) +-- Magma +keymap("n", "r", "nvim_exec('MagmaEvalutateOperator',v:true)", opts) +keymap("n", "rr", ":MagmaEvalutateLine", opts) +keymap("x", "r", ":MagmaEvalutateVisual", opts) +keymap("n", "rc", ":MagmaReevalutateCell", opts) +keymap("n", "rd", ":MagmaDelete", opts) +keymap("n", "ro", ":MagmaShowOutput", opts) diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 75a2561..c276e03 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -57,6 +57,8 @@ return packer.startup(function(use) use "nvim-lualine/lualine.nvim" use "windwp/nvim-autopairs" -- Autopairs, integrates with both cmp and treesitter use "vimwiki/vimwiki" + use "zane-/howdoi.nvim" + -- use "gleitz/howdoi.nvim" -- -- Colorschemes use "lunarvim/colorschemes" -- A bunch of colorschemes you can try out @@ -99,6 +101,17 @@ return packer.startup(function(use) use "p00f/nvim-ts-rainbow" use "nvim-treesitter/playground" + -- Jupyter interaction + use 'hkupty/iron.nvim' + use 'kana/vim-textobj-user' + use 'kana/vim-textobj-line' + use 'GCBallesteros/vim-textobj-hydrogen' + use 'GCBallesteros/jupytext.vim' + use { 'dccsillag/magma-nvim', run = ':UpdateRemotePlugins' } + + + + -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if PACKER_BOOTSTRAP then diff --git a/lua/user/telescope.lua b/lua/user/telescope.lua index d4bf410..cf82d26 100644 --- a/lua/user/telescope.lua +++ b/lua/user/telescope.lua @@ -4,6 +4,7 @@ if not status_ok then end telescope.load_extension('media_files') +telescope.load_extension('howdoi') local actions = require "telescope.actions" @@ -94,7 +95,11 @@ telescope.setup { -- defaults to {"png", "jpg", "mp4", "webm", "pdf"} filetypes = {"png", "webp", "jpg", "jpeg"}, find_cmd = "rg" -- find command (defaults to `fd`) - } + }, + howdoi = { + num_answers = 5, + explain_answer = true, + }, -- Your extension configuration goes here: -- extension_name = { -- extension_config_key = value, diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua index 8a1bd2a..df2a66e 100644 --- a/lua/user/whichkey.lua +++ b/lua/user/whichkey.lua @@ -165,6 +165,7 @@ local mappings = { b = { "Telescope git_branches", "Checkout branch" }, c = { "Telescope colorscheme", "Colorscheme" }, h = { "Telescope help_tags", "Find Help" }, + H = { "Telescope howdoi", "howdoi " }, M = { "Telescope man_pages", "Man Pages" }, r = { "Telescope oldfiles", "Open Recent File" }, R = { "Telescope registers", "Registers" }, -- cgit v1.2.3