Add nnn plugin to nvim

main
Jasper Bok 2022-11-18 17:28:12 +01:00
parent 5200f96d57
commit 90af5e813b
1 changed files with 13 additions and 0 deletions

View File

@ -89,6 +89,7 @@ vim.call("plug#begin", "~/.config/nvim/plugged")
Plug('numToStr/Comment.nvim') Plug('numToStr/Comment.nvim')
Plug('junegunn/fzf') Plug('junegunn/fzf')
Plug('arcticicestudio/nord-vim') Plug('arcticicestudio/nord-vim')
Plug('mcchrish/nnn.vim')
vim.call("plug#end") vim.call("plug#end")
@ -100,3 +101,15 @@ require("Comment").setup()
-- FZF -- FZF
-- ------------------ -- ------------------
vim.cmd("nnoremap <C-p> :FZF<CR>") vim.cmd("nnoremap <C-p> :FZF<CR>")
-- nnn
-- ------------------
require("nnn").setup({
command = "nnn -o -C",
set_default_mappings = 0,
replace_netrw = 1,
})
vim.api.nvim_set_keymap("n", "<leader>o", ":NnnPicker %:p:h<CR>", {noremap=true})
vim.cmd("let g:nnn#session = 'global'")