Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 973 Bytes

README.md

File metadata and controls

43 lines (31 loc) · 973 Bytes

telescope-yamlnav.nvim

yamlnav is telescope extension that allow you to navigate .yml file by path.

Requirements

Installation

vim-plug

Plug 'aubinlrx/telescope-yamlnav.nvim'

packer.nvim

use { 'aubinlrx/telescope-yamlnav.nvim', branch = 'main' }

Setup

-- You dont need to set any of these options. These are the default ones. Only
-- the loading is important
require('telescope').setup({
  extensions = {
    yamlnav = {
      remove_prefix = true
    }
  }
})

-- To get yamlnav loaded and working with telescope, you need to call
-- load_extension, somewhere after setup function:
require('telescope').load_extension('yamlnav')

-- To be able to copy path under the current cursor a user function is available
vim.keymap.set("n", "<leader>yy", "<cmd>YamlNavCopy<cr>")