Comments (3)
Thanks for the suggestion!
I am afraid, I'd like to avoid exporting too much from 'mini.git' (or any modules, for that matter). It can get convoluted pretty quickly.
I was hoping that vim.api.nvim_get_commands({})
can return both complete function and command implementation, but sadly (and confusingly) it does not 😞
Currently my best suggestion for command_impl
replacement would be to manually construct command string and use vim.cmd('Git ...')
explicitly.
And as for command_complete()
... I don't have any even remotely useful suggestions. Maybe try using string complete
field from :h command-complete
(like 'file_in_path' with adjusted 'path' option) or implement from scratch for most important for you cases.
Making completion support custom flags in this exact command (like --git-dir
) is also non-trivial under current design.
I maybe ponder a bit over this, but I don't have high hopes for this.
from mini.nvim.
I was hoping that vim.api.nvim_get_commands({}) can return both complete function and command implementation, but sadly (and confusingly) it does not
I also looked at that but it only gives a reference to the complete function, it also requires iterating all commands as there is no vim.api.nvim_get_command
for a single command
Currently my best suggestion for command_impl replacement would be to manually construct command string and use vim.cmd('Git ...') explicitly.
I thought about that too, perhaps with abbrev but I dislike this solution, it also feels less robust, not enough to warrant replacing the trusty vim-fugitive.
Making completion support custom flags in this exact command (like --git-dir) is also non-trivial under current design.
I maybe ponder a bit over this, but I don't have high hopes for this.
Fair enough, I guess we can close this issue unless you need more pondering time :)
from mini.nvim.
I also looked at that but it only gives a reference to the complete function, it also requires iterating all commands as there is no
vim.api.nvim_get_command
for a single commons.
It's a map (which is also not very consistent with other API methods). So it would be like vim.api.nvim_get_commands({}).Git
.
Making completion support custom flags in this exact command (like --git-dir) is also non-trivial under current design.
I maybe ponder a bit over this, but I don't have high hopes for this.Fair enough, I guess we can close this issue unless you need more pondering time :)
Yes, let's keep this open for a bit. You never know.
from mini.nvim.
Related Issues (20)
- Restrict Navigation Outside Initial Directory in mini.files HOT 5
- mini.files closes and does not reopen HOT 2
- `mini.operators` replace until end of line HOT 1
- Add support for highlight groups of listed plugins HOT 7
- Add border options for mini.completion HOT 1
- [mini.extra] Picker for LSP code actions HOT 8
- Option to disable buffer word completion for mini.completion on large files. HOT 3
- Add options to toggle default plugins of vim like gzip, compiler in mini.basics HOT 1
- File window of mini.files crash when using mini.bracketed or mini.bufremove commands HOT 5
- mini.hues: Strikethrough does not work in Markdown files using Treesitter HOT 2
- :DepsListPlugins to list all installed plugins. HOT 3
- Issue with insert mode in mini.files when configuring height of window HOT 2
- Add pickers for LSP Incoming and Outgoing Calls HOT 3
- Open file explorer via cmdline HOT 4
- Support for Brace Expansion in `mini.files` Buffer HOT 2
- Option to rename :Git command to something else like :MiniGit so that vim-fugitive which also uses :Git can be used HOT 1
- Different color for @tag, @tag.attribute and @tag.delimiter for HTML in mini.base16 HOT 1
- mini.animate throws error when setup in the following way. HOT 2
- Mini.pick slow with moving across buf_lines in preview mode on files which are horizontally big. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini.nvim.