{"id":13410780,"url":"https://github.com/LhKipp/nvim-nu","last_synced_at":"2025-03-14T16:33:00.827Z","repository":{"id":130998344,"uuid":"364043730","full_name":"LhKipp/nvim-nu","owner":"LhKipp","description":"Basic editor support for the nushell language","archived":false,"fork":false,"pushed_at":"2024-12-10T18:48:20.000Z","size":387,"stargazers_count":148,"open_issues_count":3,"forks_count":12,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T15:54:50.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LhKipp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-03T19:49:45.000Z","updated_at":"2025-02-19T04:09:28.000Z","dependencies_parsed_at":"2024-04-21T09:46:42.802Z","dependency_job_id":"e6e69a97-dfe4-49ab-b4c6-0657511affbd","html_url":"https://github.com/LhKipp/nvim-nu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LhKipp%2Fnvim-nu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LhKipp%2Fnvim-nu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LhKipp%2Fnvim-nu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LhKipp%2Fnvim-nu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LhKipp","download_url":"https://codeload.github.com/LhKipp/nvim-nu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243610450,"owners_count":20318964,"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-07-30T20:01:09.102Z","updated_at":"2025-03-14T16:33:00.753Z","avatar_url":"https://github.com/LhKipp.png","language":"Lua","readme":"# nvim-nu - Basic editor support for the nushell language\n\n![nu example](assets/nu-example.png)\n\n---\n\n**Info: This plugin was made for nu version ~0.45. As nushell evolves quickly, the plugin might not work perfectly for later versions. PR's are welcome**\n\n---\n\n### Table of contents\n\n* [Requirements](#requirements)\n* [Installation](#installation)\n* [Configuration](#configuration)\n---\n\n# Requirements\n\n- Neovim version \u003e= 0.5\n- A [nu](https://github.com/nushell/nushell/releases) binary in your path\n- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/blob/master/README.md#quickstart) installed\n- Optionally [none-ls.nvim](https://github.com/nvimtools/none-ls.nvim) to enable lsp features like hover (aka help) or command completion\n\n# Installation\n\nYou can install `nvim-nu` with your favorite package manager (or using the native `package` feature of vim, see `:h packages`).\n\n\u003cdetails open\u003e\n    \u003csummary\u003eLazy\u003c/summary\u003e\n\n```lua\n{\n    'LhKipp/nvim-nu',\n    build = ':TSInstall nu',\n    opts = {}\n}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003evim-plug\u003c/summary\u003e\n\n```vim\nPlug 'LhKipp/nvim-nu', {'do': ':TSInstall nu'}\n\n\" Don't forget to call setup\nrequire'nu'.setup{}\n```\n\u003c/details\u003e\n\n## LSP Features\n\n[null-ls.nvim](https://github.com/jose-elias-alvarez/null-ls.nvim) needs to be installed to have lsp features available. Currently only command name completion and hover (aka help) are supported.\n\nMake sure to have a mapping set up for hover in nushell files! E.G. in your `ftplugin/nu.lua`\n```lua\nvim.keymap.set('n', 'K', vim.lsp.buf.hover, { buffer = true })\n```\n\n## Configuration\n(Default values are shown)\n```lua\nrequire'nu'.setup{\n    use_lsp_features = true, -- requires https://github.com/jose-elias-alvarez/null-ls.nvim\n    -- lsp_feature: all_cmd_names is the source for the cmd name completion.\n    -- It can be\n    --  * a string, which is evaluated by nushell and the returned list is the source for completions (requires plenary.nvim)\n    --  * a list, which is the direct source for completions (e.G. all_cmd_names = {\"echo\", \"to csv\", ...})\n    --  * a function, returning a list of strings and the return value is used as the source for completions\n    all_cmd_names = [[help commands | get name | str join \"\\n\"]]\n}\n```\n\n# Known issues (PR's welcome)\n\n* Calling `vim.lsp.buf.hover` on a subcommand does not show the help for the subcommand\n","funding_links":[],"categories":["Syntax","Editor Extensions","Lua"],"sub_categories":["Markdown and LaTeX","Assembly"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLhKipp%2Fnvim-nu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLhKipp%2Fnvim-nu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLhKipp%2Fnvim-nu/lists"}