feat(api): add api.config.mappings.default_on_attach (#2037)

This commit is contained in:
Alexander Courtis
2023-03-06 10:45:58 +11:00
committed by GitHub
parent 1b453441f4
commit bbb6d48910
5 changed files with 90 additions and 72 deletions

View File

@@ -37,11 +37,10 @@ local BEGIN_ON_ATTACH = [[
-- Please see https://github.com/nvim-tree/nvim-tree.lua/wiki/Migrating-To-on_attach for assistance in migrating.
--
local api = require('nvim-tree.api')
local function on_attach(bufnr)
local api = require('nvim-tree.api')
local on_attach = function(bufnr)
local opts = function(desc)
local function opts(desc)
return { desc = 'nvim-tree: ' .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true }
end
]]