mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
completion and snacks tweaks
This commit is contained in:
parent
d998429cb8
commit
0c18f504e8
4 changed files with 13 additions and 7 deletions
|
|
@ -21,17 +21,21 @@ return {
|
|||
'lsp',
|
||||
'path',
|
||||
'snippets',
|
||||
'omni',
|
||||
'ripgrep',
|
||||
'buffer',
|
||||
},
|
||||
providers = {
|
||||
lsp = {
|
||||
fallbacks = {}, -- include buffer even when LSP is active
|
||||
score_offset = 10,
|
||||
},
|
||||
snippets = {
|
||||
score_offset = -20,
|
||||
score_offset = -10,
|
||||
},
|
||||
ripgrep = {
|
||||
module = 'blink-ripgrep',
|
||||
name = 'rg',
|
||||
score_offset = -30,
|
||||
score_offset = -10,
|
||||
async = true,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
local M = {}
|
||||
sessions = require('mini.sessions')
|
||||
local sessions = require('mini.sessions')
|
||||
|
||||
M.get_id = function()
|
||||
local jj_root = vim.system({ 'jj', 'workspace', 'root' }):wait()
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ return {
|
|||
}
|
||||
|
||||
require('plugins.lib.minipairs') {
|
||||
modes = { insert = true, command = true, terminal = false },
|
||||
modes = { insert = true, command = false, terminal = false },
|
||||
skip_next = [=[[%w%%%'%[%"%.%`%$]]=],
|
||||
skip_ts = { 'string' },
|
||||
skip_unbalanced = true,
|
||||
|
|
@ -196,6 +196,7 @@ return {
|
|||
Snacks.rename.on_rename_file(event.data.from, event.data.to)
|
||||
end,
|
||||
})
|
||||
|
||||
local multi = require('mini.keymap').map_multistep
|
||||
multi({ 'i' }, '<BS>', { 'minipairs_bs' })
|
||||
multi({ 'i', 's' }, '<Tab>', { 'blink_accept', 'vimsnippet_next', 'increase_indent' })
|
||||
|
|
|
|||
|
|
@ -38,9 +38,10 @@ return {
|
|||
smart = {
|
||||
multi = {
|
||||
require('plugins.lib.snacks').marks(),
|
||||
{ source = 'buffers', current = false },
|
||||
{ source = 'buffers', current = false },
|
||||
'recent',
|
||||
{ source = 'files', hidden = true },
|
||||
{ source = 'files', hidden = true },
|
||||
{ source = 'git_files', untracked = true },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue