From b6afe5a05d1ca0214b53a79bed5b552beade98a4 Mon Sep 17 00:00:00 2001 From: Joel Palmer Date: Wed, 1 Dec 2021 08:10:33 -0600 Subject: [PATCH] properly working multi-select telescope really --- README.md | 2 +- public dots/vim-nvim/lua/joel/config.lua | 3 +-- public dots/vim-nvim/lua/joel/telescope/init.lua | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c473bce..573ca3e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ # Public version of Code Smell dotfiles ## Current Setup -_Last Updated: 30-Nov-2021 or more recently._ +_Last Updated: 01-Dec-2021 or more recently._ - [Neovim](https://neovim.io/) - _Important Note_: these Dotfiles target bleeding edge Neovim APIs. I try to update these runtime files as soon as the Neovim team pushes changes (including & especially breaking) to [their master branch](https://git.io/NeovimHEAD) and I pull the latest. - I usually pull the latest a few times per week or if I see that a particularly juicy PR has landed. I do test Neovim feature branches. But, only code that works with `Neovim → master` will be pushed to this repo. [Neovim 0.6.0](https://github.com/neovim/neovim/releases/tag/v0.6.0) should work with most of what you see here. - However, a lot of API changes are coming out of Neovim on the 0.6 track (master). So, I'd recommend using [Neovim Nightly](https://github.com/neovim/neovim/releases/tag/nightly) to use all the goodness in these Dotfiles. Or, [building from source](https://github.com/neovim/neovim#install-from-source) - [Code Smell video instructions](https://youtu.be/wep2_b_QU7Q). It's unlikely that I am more than a day or 2 behind. diff --git a/public dots/vim-nvim/lua/joel/config.lua b/public dots/vim-nvim/lua/joel/config.lua index 46d325c..6d39ee0 100644 --- a/public dots/vim-nvim/lua/joel/config.lua +++ b/public dots/vim-nvim/lua/joel/config.lua @@ -34,13 +34,12 @@ require("nvim-web-devicons").setup { default = true, } --- search/replace visual b/c inccommand preview doesn't show all (PRs in flight on Neovim) +-- Search/Replace visual b/c inccommand preview doesn't show all (PRs in flight on Neovim) -- tsserver - JavaScript lsp config require("lspconfig").tsserver.setup { on_attach = function(client) require("lsp_signature").on_attach { bind = true, -- This is mandatory, otherwise border config won't get registered. - -- If you want to hook lspsaga or other signature handler, pls set to false doc_lines = 2, -- will show 2 lines of comment/doc(if there are more than 2 lines in doc, will be truncated) -- set to 0 if you DO NOT want any API comments be shown -- This setting only take effect in insert mode, it does not affect signature help in normal diff --git a/public dots/vim-nvim/lua/joel/telescope/init.lua b/public dots/vim-nvim/lua/joel/telescope/init.lua index 9b5550f..8198b9d 100644 --- a/public dots/vim-nvim/lua/joel/telescope/init.lua +++ b/public dots/vim-nvim/lua/joel/telescope/init.lua @@ -27,7 +27,7 @@ function custom_actions._multiopen(prompt_bufnr, open_cmd) elseif open_cmd == "tabe" then actions.file_tab(prompt_bufnr) else - actions.file_edit(prompt_bufnr) + actions.select_default(prompt_bufnr) end end end @@ -128,15 +128,15 @@ require("telescope").load_extension "bookmarks" -- require zoxide for telescope require("telescope").load_extension "zoxide" --- GitHub CLI -require("telescope").load_extension "gh" - -- telescope-repo require("telescope").load_extension "repo" -- neoclip require("telescope").load_extension "neoclip" +-- GitHub CLI +require("telescope").load_extension "gh" + -- my telescopic customizations local M = {}