🚀 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 {
|
return {
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>ciC", ":CmpStatus<CR>", desc = "Cmp Status" },
|
{ "<leader>ciC", "<cmd>CmpStatus<CR>", desc = "Cmp Status" },
|
||||||
},
|
},
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
opts.mapping = cmp.mapping.preset.insert({
|
opts.mapping = cmp.mapping.preset.insert({
|
||||||
|
|
|
@ -4,6 +4,6 @@ return {
|
||||||
"lukas-reineke/cmp-rg",
|
"lukas-reineke/cmp-rg",
|
||||||
},
|
},
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
table.insert(opts.sources, { name = "rg" })
|
table.insert(opts.sources, { name = "rg", keyword_length = 3 })
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ return {
|
||||||
mappings = {
|
mappings = {
|
||||||
default = {
|
default = {
|
||||||
after_action = function(selection)
|
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,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -142,7 +142,6 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
event = "VeryLazy",
|
|
||||||
opts = {
|
opts = {
|
||||||
defaults = {
|
defaults = {
|
||||||
["<leader>cL"] = { name = "+lsp" },
|
["<leader>cL"] = { name = "+lsp" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue