From 8e8c44d2f9f39ca522723c810c928a3b132712ee Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 15 Sep 2022 16:24:46 +0200 Subject: Added nvim telescope prompt shortcut --- config/nvim/lua/plugins.lua | 78 ++++++++++++++++++++++----------------------- 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'config/nvim') diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index e454139..53495fe 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -311,7 +311,7 @@ return require("packer").startup(function() -- status line use { "nvim-lualine/lualine.nvim", - requires = {"kyazdani42/nvim-web-devicons", opt = true}, + requires = {"kyazdani42/nvim-web-devicons"}, config = function() require("lualine").setup { options = { @@ -355,7 +355,7 @@ return require("packer").startup(function() "nvim-telescope/telescope.nvim", requires = { {"nvim-lua/plenary.nvim"}, - {"kyazdani42/nvim-web-devicons", opt = true}, + {"kyazdani42/nvim-web-devicons"}, { "nvim-telescope/telescope-fzf-native.nvim", run = "make", @@ -370,6 +370,7 @@ return require("packer").startup(function() i = { [""] = actions.move_selection_next, [""] = actions.move_selection_previous, + [""] = actions.delete_buffer, [""] = actions.close, ["kj"] = actions.close, } @@ -384,7 +385,6 @@ return require("packer").startup(function() map("n", "g", "Telescope live_grep", {}) map("n", "G", "Telescope grep_string", {}) end - } -- todos,fix,etc.. highlight and list @@ -399,44 +399,44 @@ return require("packer").startup(function() } -- remote files and lsp - use { - "chipsenkbeil/distant.nvim", - config = function() - -- local on_attach = function(client, bufnr) - -- local opts = { noremap = true, silent = true } - -- local map = function(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end - -- map("n", "[", "lua vim.lsp.buf.declaration()", opts) - -- map("n", "]", "lua vim.lsp.buf.definition()", opts) - -- map("n", "K", "lua vim.lsp.buf.hover()", opts) - -- map("n", "[d", "lua vim.diagnostic.goto_prev()", opts) - -- map("n", "]d", "lua vim.diagnostic.goto_next()", opts) - -- map("n", "q", "Telescope lsp_workspace_diagnostics", opts) - -- map("n", "rn", "lua vim.lsp.buf.rename()", opts) - -- end - require("distant").setup { - ["*"] = require("distant.settings").chip_default() - } - -- TODO: extend with job_distant_config.lua - end, - run = ":DistantInstall" - } + -- use { + -- "chipsenkbeil/distant.nvim", + -- config = function() + -- -- local on_attach = function(client, bufnr) + -- -- local opts = { noremap = true, silent = true } + -- -- local map = function(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end + -- -- map("n", "[", "lua vim.lsp.buf.declaration()", opts) + -- -- map("n", "]", "lua vim.lsp.buf.definition()", opts) + -- -- map("n", "K", "lua vim.lsp.buf.hover()", opts) + -- -- map("n", "[d", "lua vim.diagnostic.goto_prev()", opts) + -- -- map("n", "]d", "lua vim.diagnostic.goto_next()", opts) + -- -- map("n", "q", "Telescope lsp_workspace_diagnostics", opts) + -- -- map("n", "rn", "lua vim.lsp.buf.rename()", opts) + -- -- end + -- require("distant").setup { + -- ["*"] = require("distant.settings").chip_default() + -- } + -- -- TODO: extend with job_distant_config.lua + -- end, + -- run = ":DistantInstall" + -- } -- jupyter kernel in nvim (with images, needs ueberzug) - use { - "dccsillag/magma-nvim", - -- ft = { "python" }, -- doesn"t work - run = ":UpdateRemotePlugins", - config = function() - local map = vim.api.nvim_set_keymap - map("n", "m", "nvim_exec('MagmaEvaluateOperator', v:true)", { expr = true}) - map("n", "mm", "MagmaEvaluateLine", {}) - map("x", "m", "MagmaEvaluateVisual", {}) - map("n", "mc", "MagmaReevaluateCell", {}) - map("n", "md", "MagmaDelete", {}) - map("n", "mo", "MagmaShowOutput", {}) - end - } + -- use { + -- "dccsillag/magma-nvim", + -- -- ft = { "python" }, -- doesn"t work + -- run = ":UpdateRemotePlugins", + -- config = function() + -- local map = vim.api.nvim_set_keymap + -- map("n", "m", "nvim_exec('MagmaEvaluateOperator', v:true)", { expr = true}) + -- map("n", "mm", "MagmaEvaluateLine", {}) + -- map("x", "m", "MagmaEvaluateVisual", {}) + -- map("n", "mc", "MagmaReevaluateCell", {}) + -- map("n", "md", "MagmaDelete", {}) + -- map("n", "mo", "MagmaShowOutput", {}) + -- end + -- } - use { "nvim-treesitter/playground", opt = true, cmd = { "TSPlaygroundToggle" } } + -- use { "nvim-treesitter/playground", opt = true, cmd = { "TSPlaygroundToggle" } } -- use { "~/git/argwrap.nvim", opt = true } end) -- cgit