Compare commits
2 Commits
0f4e759266
...
a6fc668de5
Author | SHA1 | Date | |
---|---|---|---|
a6fc668de5 | |||
c3fe8e033a |
@ -163,6 +163,9 @@ return {
|
|||||||
completion = cmp.config.window.bordered(),
|
completion = cmp.config.window.bordered(),
|
||||||
documentation = cmp.config.window.bordered(),
|
documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Don't preselect any completion items, fixes wird behaviour in gopls
|
||||||
|
preselect = cmp.PreselectMode.None,
|
||||||
})
|
})
|
||||||
require("cmp_git").setup({})
|
require("cmp_git").setup({})
|
||||||
|
|
||||||
|
@ -119,7 +119,6 @@ end, {
|
|||||||
-- :Rg grep for the given string, word under the cursor, or visual selection
|
-- :Rg grep for the given string, word under the cursor, or visual selection
|
||||||
-- then fuzzy find the results. Bang to enable regex in given string.
|
-- then fuzzy find the results. Bang to enable regex in given string.
|
||||||
vim.api.nvim_create_user_command('Rg', function(opts)
|
vim.api.nvim_create_user_command('Rg', function(opts)
|
||||||
print(vim.inspect(opts))
|
|
||||||
local search = opts.args
|
local search = opts.args
|
||||||
if opts.range == 2 then
|
if opts.range == 2 then
|
||||||
local lines = vim.fn.getline(vim.fn.line("'<"), vim.fn.line("'>"))
|
local lines = vim.fn.getline(vim.fn.line("'<"), vim.fn.line("'>"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user