Alexander Courtis
Alexander Courtis
Thanks for reporting; it's very useful to have data from windows users. I assume `Local` is the large directory, which I believe is a special windows directory. ~200ms doesn't seem...
> As @kyazdani42 suggested, looping symlinks were the cause. Oh wow... good find.
I went backwards with `NvimTreeCreateOnAttach`. That's a possible solution for migrating legacy mappings. The real questions: 1. How do the users create a new mapping in `on_attach`? 1. How do...
## a simpler on_attach https://github.com/kyazdani42/nvim-tree.lua/pull/1464/commits/c82d1b04c0a9f11e839ae2a46ef74d54aac214dc `NvimTreeCreateOnAttach -> NvimTreeMappingsToOnAttach` updated to demonstrate. ```lua local function on_attach(bufnr) local opts = { buffer = bufnr, noremap = true, silent = true, nowait =...
## on_attach passed mode and opts https://github.com/kyazdani42/nvim-tree.lua/pull/1464/commits/92a0ad9c7cfb9404ace903c6bfc0fd293637eb8c ```lua local function on_attach(bufnr, mode, opts) vim.keymap.set(mode, '', Api.node.open.edit , opts) vim.keymap.set(mode, 'o', Api.node.open.edit , opts) vim.keymap.set(mode, '', Api.node.open.edit , opts) vim.keymap.set(mode, '',...
> Also does the jit compiler offers introspection on the lua code ? maybe this could help us generate the code executed in the on_attach call. `loadstring("Api.node.open.edit()")()` didn't work quite...
> It wouldn't be hard i believe to convert all the existing mappings table into vim.keymap.set in the attach module. That works and would be more consistent. We could put...
> parsing the buffer autocmd/keymaps and displaying them in a way that would not change unless neovim changes it internally That will resolve many problems. We could map the Api...
> which are callbacks from `inject_node` unfortunately. Of course. It was worth a try...
> One thing i'd like to explore would be: writing a Pmap/Pfilter utility that would allow passing a table, a pure function and a callback in order to perform things...