{"id":17370120,"url":"https://github.com/gianarb/vim-flux","last_synced_at":"2025-04-14T05:03:24.914Z","repository":{"id":63255370,"uuid":"221707765","full_name":"gianarb/vim-flux","owner":"gianarb","description":"Vim Plugin to make your flux experience unique","archived":false,"fork":false,"pushed_at":"2019-12-03T09:09:40.000Z","size":16,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T18:53:30.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gianarb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-14T13:46:30.000Z","updated_at":"2022-08-23T14:59:44.000Z","dependencies_parsed_at":"2022-11-15T22:30:37.510Z","dependency_job_id":null,"html_url":"https://github.com/gianarb/vim-flux","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianarb%2Fvim-flux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianarb%2Fvim-flux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianarb%2Fvim-flux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gianarb%2Fvim-flux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gianarb","download_url":"https://codeload.github.com/gianarb/vim-flux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824682,"owners_count":21167344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-16T00:23:36.678Z","updated_at":"2025-04-14T05:03:24.881Z","avatar_url":"https://github.com/gianarb.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"[flux](https://github.com/influxdata/flux) is a programming langauge for data\nopen sourced by InfluxData. Editor and IDE are not a commodity anymore and\nlanguages needs to support them in order to improve the developer happiness. The\nFlux community is doing a lot of work be as friendly as possible. This plugin\nwill make your experience with flux awesome in VIM!\n\nWhat it (will) provide:\n\n- [x] Syntax highlight\n- [x] Query an InfluxDB OSS/Cloud with a friendly output.\n- [x] With a proper language server client you can enjoy\n  [flux-lsp](https://github.com/influxdata/flux-lsp) for autocompletion and\n  inspection.\n- [x] [NerdCommenter](https://github.com/scrooloose/nerdcommenter) integration\n  to make commenting easy\n- [ ] Convert to AST for debugging purpose\n- [ ] I don't know... Tell me.\n\n## Install\n\n## Install\n\n* [Vim 8 packages](http://vimhelp.appspot.com/repeat.txt.html#packages)\n  * `git clone https://github.com/gianarb/vim-flux.git ~/.vim/pack/plugins/start/vim-flux`\n* [Pathogen](https://github.com/tpope/vim-pathogen)\n  * `git clone https://github.com/gianarb/vim-flux.git ~/.vim/bundle/vim-flux`\n* [vim-plug](https://github.com/junegunn/vim-plug)\n  * `Plug 'gianarb/vim-flux'`\n* [Vundle](https://github.com/VundleVim/Vundle.vim)\n  * `Plugin 'gianarb/vim-flux'`\n\nThe `Query an InfluxDB` feature depends on\n[mattn/webapi-vim](https://github.com/mattn/webapi-vim), be sure to install it\nas well.\n\n## Syntax Highlight\n\nWhen you open `.flux` file it will automatically detect the `filetype` and it\nwill highight the code.\n\n## Query an InfluxDB\n\nIf you have a InfluxDB v2 reachable at `http://localhost:9999` this plugin can\nquery it using the selected part of the script you have open in your current\nbuffer.\n\nHow does it work?! Open a `.flux` file with your queries/query. Enter `visual`\nmode and select the query or the part you would like to sent to `InfluxDB` and\ntype `:FluxQueryInfluxDB orgName`. Behind the scene the select string will be sent to\n`http://localhost:9999/api/v2/query` and the request will be printed as readonly\nbuffer in a new window.\n\n\nBy default the InfluxDB host port is `https://localhost:9999`. You can override\nit via global vim variable:\n\n```\nlet g:influxdbHostPort = \"http://influxcloud:9999\"\n```\n\nAs you probably know InfluxDB 2 has authentication enable by default. vim-flux\nby default reads it from `~/.influxdbv2/credentials` in order to override this\nbehavior you can set the variable `g:influxdbAuthToken` with your token.\n\nYou can run the entire script in your current window with the command:\n\n```\n:%FluxQueryInfluxDB orgName\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianarb%2Fvim-flux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgianarb%2Fvim-flux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianarb%2Fvim-flux/lists"}