Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind <LocalLeader>f to toggle nvim-tree.lua if it has focus #114

Closed
wincent opened this issue Jul 16, 2021 · 0 comments
Closed

Bind <LocalLeader>f to toggle nvim-tree.lua if it has focus #114

wincent opened this issue Jul 16, 2021 · 0 comments

Comments

@wincent
Copy link
Owner

wincent commented Jul 16, 2021

In the same way that you can mash <LocalLeader>t repeatedly to toggle the tree, you should be able to mash <LocalLeader>f repeatedly.

wincent added a commit that referenced this issue Aug 31, 2021
Motivation; get this fix:

    L3MON4D3/LuaSnip#142

But it turns out that there have been a _lot_ of changes since I last
updated; if anything breaks, I will follow up:

* aspects/nvim/files/.config/nvim/pack/bundle/opt/LuaSnip 72323c1...9a8cf5f (261):
  > Merge pull request #143 from leiserfg/multi-ft
  > Format with stylua
  > fix: account for compound filetypes (closes #142).
  > Update README.md
  > Format with stylua
  > Fix parser, for real now.
  > Format with stylua
  > Fix slight regression with variables in lsp-parsed snippets.
  > Fixup(d2aa43c): BREAKING, parsing has become more strict.
  > Format with stylua
  > Provide option to set better `assemble`-function for nested snippets.
  > Format with stylua
  > Merge branch 'master' of github.com:L3MON4D3/LuaSnip
  > lsp: correctly parse brackets (closes #141) and split iNode-text.
  > fix(parser): remove escape-chars everywhere.
  > Merge pull request #140 from carlitux/patch-2
  > Set pos to nil for better docstring if queried manually.
  > Format with stylua
  > Improve get_docstring().
  > Typo.
  > Format with stylua
  > Account for selecting empty lines (only) (closes #139).
  > Use `rawget` to get position.
  > Merge pull request #138 from leiserfg/handle_emtpy_snippets
  > Parser: ${n:sometext} can also be repetitions of previous insertNodes.
  > Try expanding autosnippets if pum is visible, too.
  > Format with stylua
  > Use tokenizer to create helper-snippet for regex-triggers.
  > Implement tokenizer for patterns.
  > Format with stylua
  > pcall `get_text`, {""} on error. Don't error on `str_utfindex`.
  > Try to prevent jump_from from erroring due to deleted snippets.
  > Auto generate docs
  > Format with stylua
  > Merge branch 'insert_node_event_callbacks'
  > Add <Plug>-mapping for previous choice (Closes #131).
  > Format with stylua
  > Provide setting for delete-check autocommands.
  > Recommend `InsertEnter` for `region_check_events`
  > Make bytecol_to_utfcol behave correctly (used to return three values).
  > Auto generate docs
  > Format with stylua
  > Small changes+improvements for the enter/leave events:
  > Auto generate docs
  > Rename AUTOCOMMANDS to EVENTS.
  > Auto generate docs
  > Format with stylua
  > No need to input_leave the generated snippet in dynamicNode.
  > Trigger autocommands on entering/leaving nodes.
  > Add function to check if the current snippet was deleted+<Plug>-mapping.
  > Merge pull request #126 from leiserfg/generic-package-name
  > Auto generate docs
  > Format with stylua
  > Document indent_snippet_node and some usages for it.
  > Remove prefix_snippet_node, it's really just a specification of ISN.
  > Re-implement changing choice backwards.
  > Prevent region check for autotriggered snippets too.
  > Each choice gets a pointer to the next.
  > Rename choiceNode.inner to choiceNode.active_choice, more expressive.
  > Clear snippets' own marks on exit.
  > Rename vars that store choiceNodes to reflect that.
  > Format with stylua
  > Disable region check while jumping.
  > Make sure node isn't nil before indexing.
  > Check for specific node+also check following snippets.
  > Leave exit node when next snippet is expanded, only compare lines for region.
  > Mention setting in README.
  > Add config for specifying when to do region check, defaults to never.
  > Fix minor bugs with exit_out_of_region_snippet.
  > Fix small issues with exitNode.
  > Fix bug caused by new jump_from/into-behaviour.
  > Add function to leave active snippet if its' region is left.
  > Make no_move actually funcitional.
  > Add snippet.snippet, contains 'outer' (ie. the user-triggered) snippet.
  > Have jump_into/jump_leave return the new active node.
  > Merge pull request #124 from leiserfg/clean_lazy
  > Auto generate docs
  > Fix lazy-loading.
  > Add more details for loading vscode-packaged snippets.
  > Format with stylua
  > Fix/improve update_dependents-behaviour.
  > Clean up a bit.
  > Reset active upon exit()ing, only pop active choice if this was active.
  > Simplify choiceNodes' init-process.
  > Merge pull request #121 from L3MON4D3/static_text_for_snippets
  > Ignore and correctly format lines on which stylua fails.
  > Format with stylua
  > Fix regression: *move_on_mark_*-functions were removed, typo(?) in util.mark.
  > Format with stylua
  > Remove print's.
  > Changes nothing functionally, but clearer.
  > After parsing, the positions of insertNodes are not 'dense', fix it.
  > Inserting a missing `i(0)` is handled by snippet-constructor.
  > Auto generate docs
  > Format with stylua
  > Document expected layout of directories loaded via vscode-loader.
  > Format with stylua
  > Separate expanding tabs in text and indenting; make both more generic.
  > Fix expand_tab-implementation.
  > Always initialize static_text for insert and textNode.
  > Format with stylua
  > Fix unlink_current, correctly set active node.
  > Set Luasnip_active_choice correctly after exit()ing choiceNode.
  > Format with stylua
  > Merge pull request #114 from leiserfg/extra-vars
  > Format with stylua
  > Differentiate between insert and exitNodes(`i(0)`).
  > Call insertNodes' input_leave function for i(0).
  > Auto generate docs
  > Format with stylua
  > Document new behaviour of i(0).
  > Format with stylua
  > Do insertNodes' input_enter for i(0).
  > Fix TM_LINE_INDEX/NUMBER, it should be a string.
  > Format with stylua
  > Explicitly open folds after moving, doesn't seem to happen automatically.
  > Auto generate docs
  > Format with stylua
  > Mention passive extending active and highlight groups in doc.
  > Fix overriding-behaviour.
  > Fix clear_invalid, don't have it override active with passive.
  > Use user-defined Luasnip*Node{Active,Passive} as highlight when defined.
  > Merge default into user-defined table.
  > Format with stylua
  > Replace link to matrix room with icon.
  > Format with stylua
  > Clarify arguments to util.put.
  > Use byte-position of mark to nvim_buf_set_text().
  > Expose function to get byte-position of mark.
  > Format with stylua
  > Default ext_opts-table to {}.
  > Auto generate docs
  > Format with stylua
  > Add example for ext_opts, fix jdoc-snippet.
  > Rename prio_increase to ext_prio_increase.
  > Add documentation for ext_opts.
  > Correctly pass ext_opts with higher prios for inner snippets.
  > Config: include priority+functions to modify.
  > Add appropriate exit()-functions to dynamic and choice.
  > Use copy of passed table.
  > Fix dynNode:set_rgrav, after changing textNode, grav is default-false.
  > Fill missing values in ext_opts.
  > Don't unnecessarily update extmark.
  > Change ext_opts on entering/leaving.
  > Correctly set type and opts for snippet.
  > Rename change_rgravs to update_rgravs.
  > DO change gravities for textNodes, prevents some bug+more uniform.
  > Enter node in both paths.
  > Delete marks on exit.
  > Use two functions to set gravs or other opts.
  > Set snippets' mark from outside also.
  > Format with stylua
  > Mention nvim-cmp and cmp_luasnip in README.
  > Format with stylua
  > Merge pull request #106 from amenonsen/patch-3
  > Format with stylua
  > Merge pull request #105 from amenonsen/patch2
  > Format with stylua
  > Yeeeeeaaaaah no, not really anymore
  > Format with stylua
  > Mention autosnippets in README.
  > Format with stylua
  > Merge branch 'autotrigger'
  > Format with stylua
  > Fix: Adding a i(0) if none was specified.
  > Don't set correctly and then overwrite with old values :/
  > As the mark-id isn't copied anymore, it can be set later in put_initial()
  > Implement clear-function, fix bug with raw_pos.
  > Print gravities in snippet:dump().
  > Store ext_opts in snippet, pass to children; Change marks for dyn/choice
  > Add ext_opts to config.
  > Use raw, not utf-adjusted position for initializing extmarks.
  > Don't set positions in opts.
  > Default-init marks with nil.
  > Fix set_mark_rgrav-function, use default-version everywhere.
  > Actually use new marks in snippets.
  > Most likely, there won't be any updates to pos, and if, then to both.
  > Marks are objects; Simplify extmark_rgrav-setting.
  > Add table for node-names, shift indices to match name.
  > Refactor types to use enum.
  > Auto generate docs
  > Mention mappings in DOC, refer to README.
  > Auto generate docs
  > Merge pull request #104 from amenonsen/patch-1
  > Mention new config-option in README.
  > Auto generate docs
  > Document SELECT-behaviour and lsp-parsing.
  > Provide example mappings for lua and vimscript.
  > Link to lsp-snippet spec.
  > Format with stylua
  > Only remove indent for TM_SELECTED_TEXT.
  > Enable new vars in env.
  > Correctly populate selection.
  > Create all types of indent in store_selection().
  > Modify store_selection to get all lines at once.
  > Allow node.pos to be nil, mimic vscodes' behaviour for $TM_SELECTED_TEXT.
  > Should be an insertNode.
  > Add new snippetNodes prefixSnippetNode and indentSnippetNode
  > Refactor population of args for function/dynamicNodes.
  > Improve autowrapping for snippets, fix it for snippetNodes.
  > Merge pull request #102 from leiserfg/find_vimrc
  > Auto generate docs
  > Specify what the text looks like when executing condition-function.
  > Auto generate docs
  > Maybe also document condition-function.
  > Format with stylua
  > Change snippet:match(...) for regex-triggers, parentheses can mess up patterns.
  > Reuse mark-id if possible.
  > Refactor snippet:indent() slightly.
  > Clean up unneeded args.
  > Indent + populate snippetNodes' env in put_initial().
  > Auto generate docs
  > Format with stylua
  > Explicitly mention text-passing behaviour in docs.
  > BREAKING CHANGE: Pass dedented text to function/dynamicNodes, indent returned text for functionNodes.
  > Merge pull request #94 from leiserfg/fix-of-by-one
  > Merge pull request #93 from leiserfg/use-named-register
  > Format with stylua
  > Reset Visual after use.
  > Return {} instead of "" on empty visual.
  > Prepare for storing prio,hl_group,... in node.mark.
  > Format with stylua
  > Correctly check for empty table ({} != {} in lua);
  > Rewrite extmarks to work more consistently.
  > Update parsed nodes.
  > Fix node-gravities for exitNodes'.
  > Remove prints', fix enter_node.
  > Use only one node to mark beginning and end of node.
  > Merge pull request #92 from leiserfg/select
  > If lambda returns nil, use default of "" to prevent errors.
  > Format with stylua
  > Add dynamic lambdas+examples.
  > Format with stylua
  > Add nonempty-node. Inserts text if arg-node is not empty.
  > Add some examples for `match()`.
  > Adjust default-value for `match()`
  > Merge pull request #86 from leiserfg/match_with_lambda
  > BREAKING CHANGE: Move pseudo-nodes from ls.util.functions to ls.extras.
  > Quickly shuffle around signature of `match()`.
  > Merge pull request #84 from leiserfg/match_with_lambda
  > Auto generate docs
  > Merge pull request #83 from praveendhawan/patch-1
  > Auto generate docs
  > Format with stylua
  > BREAKING CHANGE: Default `wordTrig` to true, not false.
  > Add expand and expandable function+vim-versions (close #79).
  > Luasnip_current_nodes may (somehow) be nil, check before indexing.
  > Format with stylua
  > Add partial function+example (closes #72).
  > Auto generate docs
  > Replace table with list, md2vim doesn't like tables.
  > Auto generate docs
  > Fix table in Doc.
  > Merge pull request #69 from leiserfg/md-doc
  > Alias set_config to setup.
  > Merge pull request #29 from tjdevries/update_config_correctly
  > Initialize function+dynamicNodes when cildren of choiceNode.
  > Format with stylua
  > Add Examples for recently added nodes.
  > Repeat doesn't need lambdas.
  > Merge pull request #67 from leiserfg/lambda-util
wincent added a commit that referenced this issue Jul 19, 2024
* aspects/nvim/files/.config/nvim/pack/bundle/opt/LuaSnip 78296bf...ce0a05a (20):
  > Format with stylua
  > fix bug introduced by 365bebd.
  > Format with stylua
  > Auto generate docs
  > fix(loaders): trim whitespace around comma and at start/end of "scope".
  > test: fix some more flakiness.
  > Auto generate docs
  > fix: support spaces in make's path
  > Auto generate docs
  > Fix typo in documentation example code
  > Auto generate docs
  > Auto generate docs
  > Declare ls variable
  > doc: fix typos (close #1187)
  > Auto generate docs
  > fix(util): Path.parent now works on windows (#1168) (#1180)
  > Format with stylua
  > Auto generate docs
  > fix: stay compatible with old nvim-versions.
  > ft_func: translate treesitter-language to filetypes (close #1174).

* aspects/nvim/files/.config/nvim/pack/bundle/opt/cmp-calc ce91d14...5947b41 (1):
  > Merge pull request #7 from JosefLitos/main

* aspects/nvim/files/.config/nvim/pack/bundle/opt/indent-blankline.nvim 171d4d5...65e20ab (5):
  > fix: use `strwidth` instead of `strdisplaywidth`
  > feat: support empty foldtext in nvim 0.10
  > fix: tab indent calc with mixed tabs and spaces
  > fix: remove chunk from lua scopes
  > fix: only use `vim.iter` if available to avoid accidental breaking change

* aspects/nvim/files/.config/nvim/pack/bundle/opt/nvim-cmp abacd4c...d818fd0 (5):
  > fix(view): check in get_selected_index (#1993)
  > feat(view): add api get_selected_index (#1986)
  > fix(feedkeys): resolve issue with some copilot completions (#1981)
  > enable ghost_text for multi-line completions (#1886)
  > use nvim_get_option_value instead of nvim{,_buf,_win}_get_option

* aspects/nvim/files/.config/nvim/pack/bundle/opt/nvim-lspconfig a284b14...e26da40 (65):
  > docs: update server_configurations.md skip-checks: true
  > feat: added htmlangular ft to emmet_language_server, tailwindcss, emmet_ls and angularls (#3240)
  > docs: update server_configurations.md skip-checks: true
  > feat!: remove `--preview` flag from Ruff server (#3241)
  > docs: update server_configurations.md skip-checks: true
  > feat(leanls): add support for lakefile.toml-only packages (#3238)
  > feat: add janet lsp config (#3235)
  > docs: update server_configurations.md skip-checks: true
  > fix(tailwindcss): add includeLanguages (#3231)
  > docs: update server_configurations.md skip-checks: true
  > feat(texlab): add change environments workspace command (#3227)
  > feat: do not process commands if it's func type (#3200)
  > docs: update server_configurations.md skip-checks: true
  > feat(texlab): add find environments workspace command (#3225)
  > docs: update server_configurations.md skip-checks: true
  > feat: add bazelrc-lsp config (#3224)
  > docs: update server_configurations.md skip-checks: true
  > docs(shopify_theme_ls): remove unnecessary code snippet (#3223)
  > docs: update server_configurations.md skip-checks: true
  > feat: add pug-lsp support (#3220)
  > docs: update server_configurations.md skip-checks: true
  > feat: add protols support (#3219)
  > docs: update server_configurations.md skip-checks: true
  > feat(texlab): add support for worksapce commands (#3218)
  > ci: bump nvim-neorocks/luarocks-tag-release from 6 to 7 (#3217)
  > docs: update server_configurations.md skip-checks: true
  > fix(hyprls): autostart with hyprlang filetype (#3215)
  > fix(fsautocomplete): lint fix (#3214)
  > docs: update server_configurations.md skip-checks: true
  > fix(koka): fix koka language server config (#3213)
  > docs: update server_configurations.md skip-checks: true
  > feat: added recommended default settings for fsautocomplete (#3208)
  > ci: bump nvim-neorocks/luarocks-tag-release from 5 to 6
  > fix(CONTRIBUTING): typos (#3204)
  > docs: update server_configurations.md skip-checks: true
  > feat: add django-template-lsp support (#3203)
  > docs: update server_configurations.md skip-checks: true
  > feat(bitbake): add language-server-bitbake support (#3199)
  > docs: update server_configurations.md skip-checks: true
  > fix(slint-lsp): set root dir to git ancestor (#3194)
  > docs: update server_configurations.md skip-checks: true
  > feat(biome): add `css` as filetype (#3196)
  > docs: update server_configurations.md skip-checks: true
  > fix(sourcekit-lsp): use git as last resort for sourcekit-lsp. (#3192)
  > docs: update server_configurations.md skip-checks: true
  > feat: add fish-lsp support (#3188)
  > docs: update server_configurations.md skip-checks: true
  > fix: avoid overriding global default capabilities (#3181)
  > docs: update server_configurations.md skip-checks: true
  > fix(eslint): useFlatConfig revert to experimental (#3184)
  > docs: update server_configurations.md skip-checks: true
  > fix(eslint): useFlatConfig is not experimental anymore (#3183)
  > docs: update server_configurations.md skip-checks: true
  > fix(tsserver): update root directory order (#3180)
  > docs: update server_configurations.md skip-checks: true
  > feat(msbuild): add msbuild language tools server (#3176)
  > docs: delete lspconfig-keybindings section (#3175)
  > fix(util): check neovim nightly 0.11 version (#3173)
  > docs: update server_configurations.md skip-checks: true
  > fix(scripts): use compatible tbl_flatten in docgen (#3171)
  > feat(luau-lsp): add single file support (#3168)
  > fix: remove parenthesis from `find_git_ancestor` call (#3166)
  > feat: add daily note commands for markdown-oxide (#3164)
  > docs: update ansiblels homepage url (#3163)
  > feat: add bacon-ls support (#3160)

* aspects/nvim/files/.config/nvim/pack/bundle/opt/nvim-tree.lua 2bc725a...f9ff00b (16):
  > chore(master): release nvim-tree 1.5.0 (#2810)
  > fix(#2813): macos: enable file renaming with changed capitalization (#2814)
  > feat(#2598): add api.tree.resize (#2811)
  > fix(#2819): experimental.actions.open_file.relative_path issue following change directory (#2820)
  > chore(deps): bump nvim-neorocks/luarocks-tag-release from 5 to 7 (#2808)
  > feat(#2127): add experimental.actions.open_file.relative_path to open files with a relative path rather than absolute (#2805)
  > chore(deps): bump amannn/action-semantic-pull-request from 5.5.2 to 5.5.3 (#2812)
  > feat(#2799): `filesystem_watchers.ignore_dirs` and `git.disable_for_dirs` may be functions (#2800)
  > chore(master): release nvim-tree 1.4.0 (#2785)
  > chore: release 1.4.0
  > chore(#2787): minimum nvim version 0.9, replace 0.10 deprecated, enable deprecated warnings (#2788)
  > chore(#2731): neovim luadoc 0.10 compliance (#2786)
  > ci: release tags vMAJOR.MINOR.PATCH (#2772)
  > revert(#2781): "refactor: replace deprecated use of vim.diagnostic.is_disabled()" (#2784)
  > ci: add lua-language-server 3.9.1 (#2782)
  > refactor: replace deprecated use of vim.diagnostic.is_disabled()  (#2781)

* aspects/nvim/files/.config/nvim/pack/bundle/opt/typescript-vim eb4d90d...8d169e1 (1):
  > Merge pull request #207 from slmjkdbtl/rm-status-keyword

* aspects/nvim/files/.config/nvim/pack/bundle/opt/vim-fugitive 19ca61c...0444df6 (12):
  > Use nvim vim.ui.open as a fallback
  > Use callback based workflow for status buffer
  > Format the full body instead of separating title
  > Clarify dq behavior
  > Rearrange :Git documentation
  > Use rev-parse to get abbrev length for status buffer
  > Fix :Git difftool without -y
  > Fix :Git difftool -y
  > Make push map available on P
  > Normalize path before quoting it
  > Filter out bold/underline typesetting in man output
  > Ignore missing ssh include files

* aspects/nvim/files/.config/nvim/pack/bundle/opt/vim-git 105fd55...55583e3 (1):
  > Support update-ref in gitrebase

* aspects/nvim/files/.config/nvim/pack/bundle/opt/vim-kitty f16222c...9cc594a (3):
  > Sync with v0.35.2
  > fix: do not set comments in ftdetect (#30)
  > Sync with v0.35.0 (#31)

* aspects/nvim/files/.config/nvim/pack/bundle/opt/vim-ledger 7b97c87...dbc683e (1):
  > Align currency with no decimal point correctly (#160)

* aspects/nvim/files/.config/nvim/pack/bundle/opt/vim-repeat 24afe92...6584602 (6):
  > One last fix attempt before I revert everything
  > Restore unfolding during undo
  > Avoid stacktrace on undo in 'nomodifiable' buffer
  > Drop FUNDING.yml in favor of account-level default
  > Account for Vim undo double-incrementing b:changedtick
  > Bump minimum Vim version to 8.0

* aspects/nvim/files/.config/nvim/pack/bundle/opt/vim-slime 1a29ed8...ca59df2 (1):
  > Merge pull request #435 from jpalardy/remove-paste-file-neovim

* aspects/nvim/files/.config/nvim/pack/bundle/opt/zen-mode.nvim 78557d9...a31cf71 (26):
  > chore(update): update repository (#145)
  > chore(build): auto-generate docs
  > chore(update): update repository (#144)
  > chore(update): update repository (#143)
  > chore(update): update repository (#142)
  > chore(build): auto-generate docs
  > chore(update): update repository (#141)
  > chore(build): auto-generate docs
  > chore(main): release 1.4.0 (#139)
  > ci: update
  > ci: update
  > ci: update
  > chore(update): update repository (#138)
  > fix: assign filetype to background buffer (#91)
  > feat(border): add border to main window (#80)
  > chore(build): auto-generate docs
  > feat(plugins): implement Neovide plugin (#131)
  > chore(update): update repository (#137)
  > chore(build): auto-generate docs
  > feat(plugins): add the ability to disable todo-comments.nvim in zen-mode (#114)
  > fix: fixed opts.window.backdrop. Fixes #115, Closes #119
  > chore(build): auto-generate docs
  > ci: update
  > ci: update
  > chore(build): auto-generate docs
  > ci: update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant