🚀 perf(nvim): keyword lenght for rg cmp and other misc stuff
This commit is contained in:
parent
54030ab0d7
commit
2c5f2fb7b0
4 changed files with 3 additions and 4 deletions
|
@ -3,7 +3,7 @@ local cmp = require("cmp")
|
|||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
keys = {
|
||||
{ "<leader>ciC", ":CmpStatus<CR>", desc = "Cmp Status" },
|
||||
{ "<leader>ciC", "<cmd>CmpStatus<CR>", desc = "Cmp Status" },
|
||||
},
|
||||
opts = function(_, opts)
|
||||
opts.mapping = cmp.mapping.preset.insert({
|
||||
|
|
|
@ -4,6 +4,6 @@ return {
|
|||
"lukas-reineke/cmp-rg",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "rg" })
|
||||
table.insert(opts.sources, { name = "rg", keyword_length = 3 })
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ return {
|
|||
mappings = {
|
||||
default = {
|
||||
after_action = function(selection)
|
||||
-- require("telescope.builtin").find_files({ cwd = selection.path }) FIXME: this doesn't work
|
||||
require("telescope.builtin").find_files({ cwd = selection.path })
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -142,7 +142,6 @@ return {
|
|||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>cL"] = { name = "+lsp" },
|
||||
|
|
Loading…
Add table
Reference in a new issue