🚀 perf(nvim): keyword lenght for rg cmp and other misc stuff

This commit is contained in:
Sergio Laín 2023-12-03 17:30:55 +01:00
parent 54030ab0d7
commit 2c5f2fb7b0
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 3 additions and 4 deletions

View file

@ -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({

View file

@ -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,
} }

View file

@ -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,
}, },
}, },

View file

@ -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" },