Add picker resume key and replace i18n plugin
This commit is contained in:
parent
e03c864b4a
commit
50031cba0e
5 changed files with 38 additions and 5 deletions
|
|
@ -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
16
lua/plugins/i18n.nvim.lua
Normal 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
|
||||
}
|
||||
|
|
@ -6,5 +6,6 @@ return {
|
|||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
opts = {}
|
||||
opts = {},
|
||||
enabled = false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue