diff options
| author | 2023-04-24 09:56:00 -0400 | |
|---|---|---|
| committer | 2023-04-24 09:56:00 -0400 | |
| commit | 5dc4c4bad31f6d388fd049eeda7c24ec0ab2c463 (patch) | |
| tree | 8ec79b7af7e314249ebb1883766fc1da5d03d09c /dot_config/nvim/lua/plugins | |
| parent | nvim: add clangd lsp (diff) | |
nvim: update bindings
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/lua/plugins/bindings.lua | 11 | ||||
| -rw-r--r-- | dot_config/nvim/lua/plugins/telescope.lua | 17 |
2 files changed, 28 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/bindings.lua b/dot_config/nvim/lua/plugins/bindings.lua new file mode 100644 index 0000000..1b4a06c --- /dev/null +++ b/dot_config/nvim/lua/plugins/bindings.lua @@ -0,0 +1,11 @@ +return { + { + 'folke/which-key.nvim', + lazy = true, + opts = {}, + }, + { + 'linty-org/readline.nvim', + lazy = true, + }, +} diff --git a/dot_config/nvim/lua/plugins/telescope.lua b/dot_config/nvim/lua/plugins/telescope.lua index 8849542..bc760de 100644 --- a/dot_config/nvim/lua/plugins/telescope.lua +++ b/dot_config/nvim/lua/plugins/telescope.lua @@ -1,3 +1,11 @@ +local function gen(key, fn, desc) + return {'<leader>f' .. key, + function() + require 'telescope.builtin'[fn]() + end, + desc = desc} +end + return { { 'nvim-telescope/telescope.nvim', @@ -13,5 +21,14 @@ return { ts.setup(opts) ts.load_extension 'fzf' end, + cmd = 'Telescope', + keys = { + gen('f', 'find_files', 'Find File'), + gen('g', 'live_grep', 'Live Grep'), + gen('b', 'buffers', 'Find Buffer'), + gen('h', 'help_tags', 'Find Help'), + gen('c', 'commands', 'Find Command'), + gen('t', 'treesitter', 'Find Treesitter'), + }, }, } |
