From cd6cc2b21ff481287d3114ca6fcd2ca994b4cb67 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Sun, 3 Dec 2023 16:24:23 +0900 Subject: [PATCH] nvim: update: add desc to telescope keymaps --- dotfiles/neovim/init.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index 60b5f98..c984b9f 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -322,16 +322,16 @@ require('lualine_setup') -- telescope local builtin = require('telescope.builtin') vim.keymap.set('n', '', function() builtin.find_files { sort_lastused = true } end) -- fd? -vim.keymap.set('n', 'ff', function() builtin.find_files { sort_lastused = true } end) -vim.keymap.set('n', 'fw', builtin.lsp_workspace_symbols) -vim.keymap.set('n', 'fd', builtin.lsp_document_symbols) -vim.keymap.set('n', 'fb', builtin.buffers) -vim.keymap.set('n', 'fg', builtin.live_grep) -vim.keymap.set('n', 'fh', builtin.help_tags) -vim.keymap.set('n', 'fc', builtin.git_commits) -vim.keymap.set('n', 'fgc', builtin.git_commits) -vim.keymap.set('n', 'fs', builtin.git_status) -vim.keymap.set('n', 'fgs', builtin.git_status) +vim.keymap.set('n', 'ff', function() builtin.find_files { sort_lastused = true } end, { desc = "find files"}) +vim.keymap.set('n', 'fw', builtin.lsp_workspace_symbols, { desc = "lsp workspace symbols" }) +vim.keymap.set('n', 'fd', builtin.lsp_document_symbols, { desc = "lsp document symbols" }) +vim.keymap.set('n', 'fb', builtin.buffers, { desc = "buffers" }) +vim.keymap.set('n', 'fg', builtin.live_grep, { desc = "grep" }) +vim.keymap.set('n', 'fh', builtin.help_tags, { desc = "help tags" }) +vim.keymap.set('n', 'fc', builtin.git_commits, { desc = "git commit" }) +vim.keymap.set('n', 'fgc', builtin.git_commits, { desc = "git commit" }) +vim.keymap.set('n', 'fs', builtin.git_status, { desc = "git status" }) +vim.keymap.set('n', 'fgs', builtin.git_status, { desc = "git status" }) ----------------------------------------------------------- -- Treesitter