Use fzy sorter for Telescope. Fix buffer completion. Update plugins.
This commit is contained in:
parent
57d2b1b48d
commit
552724bcc0
17 changed files with 26 additions and 16 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -55,3 +55,6 @@
|
|||
[submodule "pack/general/start/vim-wordmotion"]
|
||||
path = pack/general/start/vim-wordmotion
|
||||
url = https://github.com/chaoren/vim-wordmotion
|
||||
[submodule "pack/general/start/nerdcommenter"]
|
||||
path = pack/general/start/nerdcommenter
|
||||
url = https://github.com/preservim/nerdcommenter
|
||||
|
|
|
|||
10
init.lua
10
init.lua
|
|
@ -66,6 +66,8 @@ ts.setup {ensure_installed = 'maintained', highlight = {enable = true, indent =
|
|||
|
||||
---- LSP ----
|
||||
local lsp = require 'lspconfig'
|
||||
-- Rust --
|
||||
require'lspconfig'.rust_analyzer.setup{on_attach=require'completion'.on_attach}
|
||||
|
||||
---- Plugins ----
|
||||
---- ale
|
||||
|
|
@ -94,8 +96,7 @@ g.completion_enable_snippet = 'UltiSnips'
|
|||
opt.completeopt = {'menuone', 'noinsert', 'noselect'}
|
||||
g.completion_chain_complete_list = {
|
||||
default = {
|
||||
{ complete_items = { 'lsp' } },
|
||||
{ complete_items = { 'buffers' } },
|
||||
{ complete_items = { 'lsp', 'snippet', 'buffer' } },
|
||||
{ mode = { '<c-p>' } },
|
||||
{ mode = { '<c-n>' } }
|
||||
},
|
||||
|
|
@ -110,6 +111,11 @@ g.vim_markdown_no_default_key_mappings = 1
|
|||
g.vim_markdown_folding_disabled = 1
|
||||
g.vim_markdown_toml_frontmatter = 1
|
||||
---- Telescope
|
||||
require('telescope').setup{
|
||||
defaults = {
|
||||
file_sorter = require'telescope.sorters'.get_fzy_sorter,
|
||||
}
|
||||
}
|
||||
map('n', '<Leader>f', ':Telescope fd<CR>')
|
||||
map('n', '<Leader>b', ':Telescope buffers<CR>')
|
||||
map('n', '<Leader>/', ':Telescope current_buffer_fuzzy_find<CR>')
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 1b08791228f5aca4545a3fba6699b29a003028fe
|
||||
Subproject commit d53a085096306c890897385692693ee653aaddce
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit c8db953a8e9f4bc8183e31831297cf84d6f521b8
|
||||
Subproject commit 139fb6cfbd9f7384a5489d3e4afdacb8ed977ab0
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 2dc25bb14fbd69f888dd0615c5576dd730de869a
|
||||
Subproject commit 24494189e723b71c1683c58ecfd0825d202b2bf8
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 684c06d4879a38e50a247ce23b32beaacc75c4d1
|
||||
Subproject commit 71adf072e8c55dfbf010045b34ae0b761a2200e7
|
||||
1
pack/general/start/nerdcommenter
Submodule
1
pack/general/start/nerdcommenter
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 2c87cae76ed88f3b0c957df68c03573ecafa3728
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit a246d97ecfc0fd1f30645ea98577c7af4e1b0229
|
||||
Subproject commit 7c5ce01c20adb707ca9f13f3a60d1d3915905bc3
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 5634b175c42a3765405060e7407330d354c69369
|
||||
Subproject commit 1e4c846d01561821a737d08a6a5e2ac16d19c332
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit c4dd6e7b29e77d7d795c0f7c67a8ca9673a7b50f
|
||||
Subproject commit 15c3cb9e6311dc1a875eacb9fc8df69ca48d7402
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 5e3bece7b4b4905f4ec89bee74c09cfd8172a16a
|
||||
Subproject commit f91d80973f80025d4ed00380f2e06c669dfda49d
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 398a0d391aa2afcda1521a8e86b820ffb599b60b
|
||||
Subproject commit dcee6c81f4cd5f9bc4a4cea782135a0669aa74bd
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit b6c9a814a4fdfcad3ea53d8888746803a7218a9e
|
||||
Subproject commit 53e1921e3ef015ef658e540c0aa9c4835f9c18a6
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 49cdcb7b3ea76ee19c737885c0ab19e64e564169
|
||||
Subproject commit 0de4c9df21abf9256091d205148601f718d3a12c
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 531bcc9e5a4cb1b1fb4dec8face230bf3d205ac7
|
||||
Subproject commit 97cf3e6e638f936187d5f6e9b5eb1bdf0a4df256
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 2a28fc35f6848ad38681d4b509ae3f5962276b5d
|
||||
Subproject commit 9e5219ae92f9b1b2ee23aff067618a6008a74fa5
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit dca1a1827513497def6362411d093ae6b3cff7f8
|
||||
Subproject commit 0edeebdfa95c0a1fc5fbb83b8faf6b0b2cc3bf7e
|
||||
Loading…
Add table
Reference in a new issue