Neovim: Difference between revisions
reposition translate tag to reduce translation change Tags: Mobile edit Mobile web edit Visual edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 30: | Line 30: | ||
==== Shell ==== <!--T:4--> | ==== Shell ==== <!--T:4--> | ||
To temporarily use Neovim in a shell environment without modifying your system configuration, you can run: | To temporarily use Neovim in a shell environment without modifying your system configuration, you can run: | ||
</translate> | </translate> | ||
| Line 39: | Line 38: | ||
This makes the Neovim editor available in your current shell. You can then launch Neovim by typing <code>neovim</code>. | This makes the Neovim editor available in your current shell. You can then launch Neovim by typing <code>neovim</code>. | ||
==== System setup ==== | ==== System setup ==== | ||
To install Neovim system-wide, making it available to all users, add the following to your configuration: | To install Neovim system-wide, making it available to all users, add the following to your configuration: | ||
| Line 124: | Line 123: | ||
==== Package Variations ==== <!--T:15--> | ==== Package Variations ==== <!--T:15--> | ||
<!--T:44--> | |||
Have a look at the [https://github.com/nix-community/neovim-nightly-overlay Neovim Nightly Overlay]<ref>Nix Community, "neovim-nightly-overlay", GitHub, Last updated June 2025, Accessed June 2025. https://github.com/nix-community/neovim-nightly-overlay</ref> to install the most recent current nightly version of Neovim. | Have a look at the [https://github.com/nix-community/neovim-nightly-overlay Neovim Nightly Overlay]<ref>Nix Community, "neovim-nightly-overlay", GitHub, Last updated June 2025, Accessed June 2025. https://github.com/nix-community/neovim-nightly-overlay</ref> to install the most recent current nightly version of Neovim. | ||
<!--T:16--> | |||
You can run the master version via the following command: | You can run the master version via the following command: | ||
</translate> | </translate> | ||
| Line 240: | Line 242: | ||
* [https://nvchad.com/ NVChad]<ref>Siduck, "NvChad", NvChad Official Website, © 2025, Accessed June 2025. https://nvchad.com/</ref> | * [https://nvchad.com/ NVChad]<ref>Siduck, "NvChad", NvChad Official Website, © 2025, Accessed June 2025. https://nvchad.com/</ref> | ||
==== FHS wrapper ==== | ==== FHS wrapper ==== | ||
You can create a custom neovim FHS wrapper | You can create a custom neovim FHS wrapper | ||
| Line 261: | Line 263: | ||
}} | }} | ||
<!--T:FHS_WRAPPER_SOURCE--> | |||
<translate> | <translate> | ||
This FHS wrapper example is based on a contribution to nixpkgs<ref name="nixpkgs-pr-334032">NixOS, "Feature: Custom Neovim FHS Wrapper" (Pull Request #334032), GitHub, 2025, Accessed June 2025. https://github.com/NixOS/nixpkgs/pull/334032</ref>. | This FHS wrapper example is based on a contribution to nixpkgs<ref name="nixpkgs-pr-334032">NixOS, "Feature: Custom Neovim FHS Wrapper" (Pull Request #334032), GitHub, 2025, Accessed June 2025. https://github.com/NixOS/nixpkgs/pull/334032</ref>. | ||
For an extended configuration that includes setting up `mason.nvim` with a similar FHS environment, see this [https://github.com/NixOS/nixpkgs/issues/281219#issuecomment-2284713258 NixOS/nixpkgs issue comment]. | For an extended configuration that includes setting up `mason.nvim` with a similar FHS environment, see this [https://github.com/NixOS/nixpkgs/issues/281219#issuecomment-2284713258 NixOS/nixpkgs issue comment]. | ||
| Line 276: | Line 278: | ||
{{code|lang=text|line=no|1=[ERROR][2025-06-07 23:13:15] ...p/_transport.lua:36 "rpc" "lua-language-server" "stderr" "Could not start dynamically linked executable: /home/incogshift/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server\nNixOS cannot run dynamically linked executables intended for generic\nlinux environments out of the box. For more information, see:\nhttps://nix.dev/permalink/stub-ld\n"}} | {{code|lang=text|line=no|1=[ERROR][2025-06-07 23:13:15] ...p/_transport.lua:36 "rpc" "lua-language-server" "stderr" "Could not start dynamically linked executable: /home/incogshift/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server\nNixOS cannot run dynamically linked executables intended for generic\nlinux environments out of the box. For more information, see:\nhttps://nix.dev/permalink/stub-ld\n"}} | ||
<!--T:LUA_LS_SO_REF--> | |||
<translate> | <translate> | ||
A solution for this issue can be found on Stack Overflow<ref name="so-lua-ls-dynlink">Stack Overflow Contributor, "Answer to 'Could not start dynamically linked executable... on NixOS'", Stack Overflow, 2025, Accessed June 2025. https://stackoverflow.com/a/78215911/27134695</ref>. | A solution for this issue can be found on Stack Overflow<ref name="so-lua-ls-dynlink">Stack Overflow Contributor, "Answer to 'Could not start dynamically linked executable... on NixOS'", Stack Overflow, 2025, Accessed June 2025. https://stackoverflow.com/a/78215911/27134695</ref>. | ||