diff options
| author | Aotrix <[email protected]> | 2024-02-16 22:00:40 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2024-02-16 22:00:40 +0100 |
| commit | c6fbf9fe365a55bacea90712af5b1f80353c9574 (patch) | |
| tree | f3bf0337c340091bdfd8446603858727a6fdf86d | |
| parent | ece3d556628c087aa2d4d194501402496ca85512 (diff) | |
added telescope config and remaps
| -rw-r--r-- | init.lua | 3 | ||||
| -rw-r--r-- | lazy-lock.json | 2 | ||||
| -rw-r--r-- | lua/nvim_settings/remap.lua | 3 | ||||
| -rw-r--r-- | lua/telescope/telescope.lua | 4 | ||||
| -rw-r--r-- | lua/transparent/transparent.lua | 2 |
5 files changed, 9 insertions, 5 deletions
@@ -70,7 +70,8 @@ require('lazy').setup({ { 'nvim-telescope/telescope.nvim', tag = '0.1.5', -- or , branch = '0.1.x', - dependencies = { 'nvim-lua/plenary.nvim' }, + dependencies = { 'nvim-lua/plenary.nvim', + 'nvim-telescope/telescope-live-grep-args.nvim'}, config = function() require('telescope/telescope') end diff --git a/lazy-lock.json b/lazy-lock.json index 6449f75..aeaf136 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -12,11 +12,11 @@ "mason-lspconfig.nvim": { "branch": "main", "commit": "0954d7730e749d606ddf8d7ae8846848be435d53" }, "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" }, "neovim": { "branch": "main", "commit": "f01ce3a71748a92997d266cfe2c985decd18c601" }, - "nightfox.nvim": { "branch": "main", "commit": "a408e6bb101066952b81de9c11be367114bd561f" }, "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, "nvim-lspconfig": { "branch": "master", "commit": "ae91a303a2258cb9cd9501e9d20c2dc92792d362" }, "nvim-treesitter": { "branch": "master", "commit": "f6342874b1113984dfedfcf595ad321c4cd1a896" }, "plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" }, + "telescope-live-grep-args.nvim": { "branch": "master", "commit": "731a046da7dd3adff9de871a42f9b7fb85f60f47" }, "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, "transparent.nvim": { "branch": "main", "commit": "fd35a46f4b7c1b244249266bdcb2da3814f01724" } }
\ No newline at end of file diff --git a/lua/nvim_settings/remap.lua b/lua/nvim_settings/remap.lua index 2e4bbe1..e18ccc2 100644 --- a/lua/nvim_settings/remap.lua +++ b/lua/nvim_settings/remap.lua @@ -14,3 +14,6 @@ vim.keymap.set("x", "<leader>p", [["_dP]]) vim.keymap.set({"n", "v"}, "<leader>y", [["+y]]) vim.keymap.set("n", "<leader>Y", [["+Y]]) + +vim.keymap.set("n", "<leader>pf", function() require("telescope.builtin").find_files() end) +vim.keymap.set("n", "<leader>pg", function() require('telescope').extensions.live_grep_args.live_grep_args() end) diff --git a/lua/telescope/telescope.lua b/lua/telescope/telescope.lua index 2f91f35..2bb8542 100644 --- a/lua/telescope/telescope.lua +++ b/lua/telescope/telescope.lua @@ -1,5 +1,5 @@ return { 'nvim-telescope/telescope.nvim', tag = '0.1.5', -- or , branch = '0.1.x', - dependencies = { 'nvim-lua/plenary.nvim' } - } + dependencies = { 'nvim-lua/plenary.nvim' }, +} diff --git a/lua/transparent/transparent.lua b/lua/transparent/transparent.lua index 757009b..6a038af 100644 --- a/lua/transparent/transparent.lua +++ b/lua/transparent/transparent.lua @@ -1,7 +1,7 @@ require("transparent").setup({ extra_groups = { -- table/string: additional groups that should be cleared -- In particular, when you set it to 'all', that means all available groups - "TelescopeBorder", + -- "TelescopeBorder", "FloatBorder" }, }) |
