chore: remove legacy view.mappings.list (#2371)
This commit is contained in:
committed by
GitHub
parent
ace64228ad
commit
18c7a31198
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# run after changing nvim-tree.lua DEFAULT_OPTS or keymap.lua M.default_on_attach
|
||||
# scrapes and updates nvim-tree-lua.txt and keymap-legacy.lua
|
||||
# scrapes and updates nvim-tree-lua.txt
|
||||
# run from repository root: scripts/update-help.sh
|
||||
|
||||
|
||||
@@ -35,10 +35,6 @@ sed -n -e "/${begin}/,/${end}/{ /${begin}/d; /${end}/d; p; }" lua/nvim-tree/keym
|
||||
sed -i -e "/${begin}/,/${end}/{ /${begin}/{p; r /tmp/DEFAULT_ON_ATTACH.lua
|
||||
}; /${end}/p; d; }" doc/nvim-tree-lua.txt
|
||||
|
||||
# legacy keymap lua
|
||||
sed -i -e "/${begin}/,/${end}/{ /${begin}/{p; r /tmp/DEFAULT_ON_ATTACH.lua
|
||||
}; /${end}/p; d; }" lua/nvim-tree/keymap-legacy.lua
|
||||
|
||||
# help human
|
||||
echo > /tmp/DEFAULT_ON_ATTACH.help
|
||||
sed -E "s/^ *vim.keymap.set\('n', '(.*)',.*api(.*),.*opts\('(.*)'.*$/'\`\1\`' '\3' '|nvim-tree-api\2()|'/g
|
||||
|
||||
Reference in New Issue
Block a user