added plugins
This commit is contained in:
parent
5aeddfdd5d
commit
42a8b0ff06
19 changed files with 322 additions and 74 deletions
37
lua/custom/plugins/vim-illuminate.lua
Normal file
37
lua/custom/plugins/vim-illuminate.lua
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
return {
|
||||
-- 'RRethy/vim-illuminate',
|
||||
-- event = 'UIEnter',
|
||||
-- opts = {
|
||||
-- keys = {},
|
||||
-- delay = 200,
|
||||
-- large_file_cutoff = 2000,
|
||||
-- large_file_overrides = {
|
||||
-- providers = { 'lsp' },
|
||||
-- },
|
||||
-- },
|
||||
-- config = function(_, opts)
|
||||
-- require('illuminate').configure(opts)
|
||||
--
|
||||
-- local function map(key, dir, buffer)
|
||||
-- vim.keymap.set('n', key, function()
|
||||
-- require('illuminate')['goto_' .. dir .. '_reference'](false)
|
||||
-- end, { desc = dir:sub(1, 1):upper() .. dir:sub(2) .. ' Reference', buffer = buffer })
|
||||
-- end
|
||||
--
|
||||
-- -- map("]]", "next")
|
||||
-- -- map("[[", "prev")
|
||||
--
|
||||
-- -- also set it after loading ftplugins, since a lot overwrite [[ and ]]
|
||||
-- vim.api.nvim_create_autocmd('FileType', {
|
||||
-- callback = function()
|
||||
-- local buffer = vim.api.nvim_get_current_buf()
|
||||
-- -- map("]]", "next", buffer)
|
||||
-- -- map("[[", "prev", buffer)
|
||||
-- end,
|
||||
-- })
|
||||
-- end,
|
||||
-- keys = {
|
||||
-- -- { "]]", desc = "Next Reference" },
|
||||
-- -- { "[[", desc = "Prev Reference" },
|
||||
-- },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue