Skip to content

Instantly share code, notes, and snippets.

@metalelf0
Created April 23, 2021 12:54
Show Gist options
  • Save metalelf0/c05d48cb6d62b0f423e31af0830a3058 to your computer and use it in GitHub Desktop.
Save metalelf0/c05d48cb6d62b0f423e31af0830a3058 to your computer and use it in GitHub Desktop.
Example configuration using paq-nvim.lua
-- init.lua
local cmd = vim.cmd
local fn = vim.fn
local g = vim.g
require 'plugins'
-- plugins/init.lua
local cmd = vim.cmd
local fn = vim.fn
local g = vim.g
cmd 'packadd paq-nvim'
local paq = require('paq-nvim').paq -- a convenient alias
paq {'savq/paq-nvim', opt = true} -- paq-nvim manages itself
paq {'nvim-lua/popup.nvim'}
paq {'nvim-lua/plenary.nvim'}
-- ...
require 'plugins.nvimtree'
require 'plugins.treesitter'
-- plugins/nvimtree.lua
local paq = require('paq-nvim').paq -- a convenient alias
paq {'kyazdani42/nvim-tree.lua'}
local function map(mode, lhs, rhs, opts)
local options = {noremap = true}
if opts then options = vim.tbl_extend('force', options, opts) end
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end
map('n', '-', "<cmd>:NvimTreeToggle<CR>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment