Created
April 23, 2021 12:54
-
-
Save metalelf0/c05d48cb6d62b0f423e31af0830a3058 to your computer and use it in GitHub Desktop.
Example configuration using paq-nvim.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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