Add picker resume key and replace i18n plugin

This commit is contained in:
Fábio André Damas 2025-09-11 22:09:14 +01:00
parent e03c864b4a
commit 50031cba0e
5 changed files with 38 additions and 5 deletions

View file

@ -6,6 +6,16 @@ return {
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
sources = {
default = { 'i18n', 'snippets', 'lsp', 'path', 'buffer' },
providers = {
lsp = { fallbacks = {} },
i18n = {
name = 'i18n',
module = 'i18n.integration.blink_source',
},
},
},
keymap = { preset = 'default' },
appearance = {
use_nvim_cmp_as_default = true,

16
lua/plugins/i18n.nvim.lua Normal file
View file

@ -0,0 +1,16 @@
return {
'yelog/i18n.nvim',
dependencies = {
'nvim-treesitter/nvim-treesitter'
},
config = function()
require('i18n').setup({
locales = { 'en' },
sources = {
'src/locales/{locales}.json',
-- { pattern = "src/locales/lang/{locales}/{module}.ts", prefix = "{module}." },
-- { pattern = "src/views/{bu}/locales/lang/{locales}/{module}.ts", prefix = "{bu}.{module}." },
}
})
end
}

View file

@ -6,5 +6,6 @@ return {
"nvim-lua/plenary.nvim",
},
event = { "BufReadPre", "BufNewFile" },
opts = {}
opts = {},
enabled = false
}

View file

@ -50,6 +50,11 @@ return {
":lua Snacks.picker.grep()<cr>",
desc = "Project search"
},
{
"<leader>pr",
":lua Snacks.picker.resume()<cr>",
desc = "Picker: resume"
},
{
"<leader>ds",