diff --git a/; b/; new file mode 100644 index 00000000..899cfd03 --- /dev/null +++ b/; @@ -0,0 +1,4 @@ +{ + "label": "Для розробників", + "position": 8 +} diff --git a/docusaurus.config.js b/docusaurus.config.js index 0d44b34d..b111d1b1 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -28,7 +28,7 @@ const config = { // to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', - locales: ['en', 'de', 'es', 'ua', 'zh-Hans'], + locales: ['en', 'de', 'es', 'uk', 'zh-Hans'], }, presets: [ diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/dev/README.md b/i18n/ua/docusaurus-plugin-content-docs/current/dev/README.md deleted file mode 100644 index e357d73a..00000000 --- a/i18n/ua/docusaurus-plugin-content-docs/current/dev/README.md +++ /dev/null @@ -1,84 +0,0 @@ -# Development of Lunarvim - -## Getting started - -We recommend setting up a symlink to your fork: - -```bash -cd ~/.local/share/lunarvim/ -ln -s ~/dev/Lunarvim ~/.local/share/lunarvim/lvim_dev -``` - -Your output should be something like: - -```bash -$ ls -a -lrwxrwxrwx 1 user user 37 sep 23 14:35 lvim_dev -> /home/user/dev/LunarVim -``` - ---- - -Now switch your lvim to the development setup: - -```bash -cd ~/.local/share/lunarvim/ -mv lvim lvim_back -mv lvim_dev lvim -``` - ---- - -Going back to lvim - -```bash -cd ~/.local/share/lunarvim/ -mv lvim lvim_dev -mv lvim_back lvim -``` - -To test that you can get some output from `lvim` add the following to your `init.lua` file in your fork. - -```lua -print ("it works") -``` - -```bash -lvim -``` - -Now type `:messages`. Happy contributing! - -## Lua + Neovim = :heart: - -To get started, [this guide](https://github.com/nanotee/nvim-lua-guide) covers many points that will get you going with Lua and how Neovim works. - -## Official Documentation - -The [reference manual](https://www.lua.org/manual/5.4/) is the official definition of the Lua language. - -If you don't know about it, [DevDocs](https://devdocs.io/lua~5.4/) combines multiple API documentations in a fast, organized, and searchable interface. - -## Neovim Documentation - -Neovim provides a [standard library](https://neovim.io/doc/user/lua.html) which you should know about. - -It provides many functions that you wish were implemented in Lua's stdlib, for instance `strings.split`. - -It also comes with a [LSP framework](https://neovim.io/doc/user/lsp.html) and [much more](https://neovim.io/doc/user/). - -## Style Guide - -LuaRock [style guide](https://github.com/luarocks/lua-style-guide) is a complete work that deserves a look if you want learn how to write consistent and robust code. - -It is based on many pre-existing guides, provides rationals for all their decisions, and worked successfully in a long-running project. - -## Code Quality - -To ensure code quality and a consistent style, our [CI](https://github.com/Lunarvim/LunarVim/actions) uses the following tools: - -- Lua: - - [Stylua](https://github.com/JohnnyMorganz/StyLua). An opinionated Lua code formatter. - - [Luacheck](https://github.com/mpeterv/luacheck). A tool for linting and static analysis of Lua code. -- Shell - - [Shfmt](https://github.com/mvdan/sh). A shell parser, formatter, and interpreter with bash support. - - [Shellcheck](https://github.com/koalaman/shellcheck). A static analysis tool for shell scripts. diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/dev/_category_.json b/i18n/ua/docusaurus-plugin-content-docs/current/dev/_category_.json deleted file mode 100644 index 27a8f3e7..00000000 --- a/i18n/ua/docusaurus-plugin-content-docs/current/dev/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "For Developers", - "position": 8 -} diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/troubleshooting/README.md b/i18n/ua/docusaurus-plugin-content-docs/current/troubleshooting/README.md deleted file mode 100644 index a5efa19f..00000000 --- a/i18n/ua/docusaurus-plugin-content-docs/current/troubleshooting/README.md +++ /dev/null @@ -1,148 +0,0 @@ -# Installation - -## General - -1. Make sure to check that you have a recent Neovim version with `luajit` support. The output of version information `nvim -v` should include a line for: `LuaJIT`. -2. Make sure all the dependencies listed in [Manual Install](#manual-install) are actually installed on your system. - -## Unable to run `lvim` - -Make sure that `lvim` is available and executable on your path. You can check the results of these commands to verify that - -```shell -which lvim -stat "$(which lvim)" -cat "$(which lvim)" -``` - -If you get errors with any of the above commands, then you need to either fix that manually or reinstall the binary again. - -```shell -cd # this will be in `~/.local/share/lunarvim/lvim` by default -bash utils/installer/install_bin.sh -``` - -## Getting errors after an update - -### Cache issues - -This might be the result of old cache files that need to be reset. LunarVim makes use of [impatient's](https://github.com/lewis6991/impatient.nvim) to optimize the startup procedure and deliver a snappy experience. - -1. while running LunarVim: `:LvimCacheReset` -2. from the CLI: `lvim +LvimCacheReset` - -### Plugin issue - -This could be due to multiple reasons, but most commonly it's a breaking change in some plugin, -or `git` refusing to pull an update to a plugin because it -[can't safely fast-forward the current branch](https://blog.sffc.xyz/post/185195398930/why-you-should-use-git-pull-ff-only-git-is-a). - -The easiest way to solve this is to manually update (a rebase is likely required) the offending plugin, -which should be located in Lazy's package-root at `$LUNARVIM_RUNTIME_DIR/site/pack/lazy`. - -Let's say it's `nvim-cmp` for example - -```vim -:! git -C "$LUNARVIM_RUNTIME_DIR/site/pack/lazy/opt/nvim-cmp" status -``` - -now check which commit is currently checked out - -```vim -:! git -C "$LUNARVIM_RUNTIME_DIR/site/pack/lazy/opt/nvim-cmp" log -1 -``` - -it should match the one in `$LUNARVIM_RUNTIME_DIR/lvim/snapshots/default.json`, but you can always restore the snapshot with `:LvimSyncCorePlugins` - -```vim -:! git -C "$LUNARVIM_RUNTIME_DIR/site/pack/lazy/opt/nvim-cmp" pull --rebase -``` - -### Lazy.nvim failure - -if you have not done any changes to any of the plugins, then you can remove Lazy's package root completely. - -```shell -LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-$HOME/.local/share/lunarvim}" -rm -rf "$LUNARVIM_RUNTIME_DIR/site/pack/lazy" -``` - -now open `lvim`, the plugins should start installing, otherwise run `:Lazy sync`. - -## LunarVim is slow! - -### are you using `fish`? - -> First of all, it is not recommended to set shell to fish in vim. Plenty of vim addons execute fish-incompatible shellscript, so setting it to `/bin/sh` is typically better, especially if you have no good reason to set it to fish. - -```lua -vim.opt.shell = "/bin/sh" -``` - -See [fish-shell/fish-shell#7004](https://github.com/fish-shell/fish-shell/issues/7004) and `:h 'shell'` for more info. - -## Language server XXX does not start for me! - -### Update node - -Some language servers depend on newer versions of node. Update your version of node to the latest. - -### is it overridden? - -This could be due to the fact that the server is [overridden](../configuration/language-features/language-servers.md#server-override) - -```lua ---- is it in this list? -:lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers)) -``` - -If that's the case, then you need to either remove it from that list and re-run `:LvimCacheReset` - -```lua -vim.tbl_map(function(server) - return server ~= "emmet_ls" -end, lvim.lsp.automatic_configuration.skipped_servers) -``` - -or set it up [manually](../configuration/language-features/language-servers.md#server-setup). - -### is it supported by [nvim-lsp-installer](https://github.com/williamboman/nvim-lsp-installer)? - -Any server that does not show up in `LspInstallInfo` needs to be installed manually. - -### is it at least showing up in `:LspInfo`? - -Check out the tips for [debugging nvim-lspconfig](https://github.com/neovim/nvim-lspconfig#debugging). - -## Too many language servers are starting at once! - -Are any of these servers [overridden](../configuration/language-features/language-servers.md#server-override) by default? - -```lua -:lua print(vim.inspect(require("lvim.lsp.config").override)) -``` - -If they are then you are using the syntax prior to [LunarVim#1813](https://github.com/LunarVim/LunarVim/pull/1813). - -```lua --- this is the correct syntax since 3dd60bd -vim.list_extend(lvim.lsp.override, { "jsonls" }) -``` - -```lua --- this the correct syntax since 198577a -vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "jsonls" }) -``` - -## My LunarVim looks ugly! - -- Make sure that you have a terminal that supports 24-bit colors. If not, you might face some issues regarding the default colorscheme, and other colorschemes. - - - For a explainer on what 24-bit colors are, and to test if your terminal supports it, we like this useful repository: https://github.com/termstandard/colors - -- Another issue might be `termguicolors`. If this is the case, we advice you to look at the official neovim docs: - - - What is `termguicolors`? see - -- Another case might be that your `$TERM` variable changes the colors in your terminal. - - For this, we advice you to look and see if anyone else has the same `$TERM` variable as you, and what they did https://github.com/neovim/neovim/issues?q=label%3Atui+color diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/troubleshooting/_category_.json b/i18n/ua/docusaurus-plugin-content-docs/current/troubleshooting/_category_.json deleted file mode 100644 index 402e45a6..00000000 --- a/i18n/ua/docusaurus-plugin-content-docs/current/troubleshooting/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Troubleshooting", - "position": 5 -} diff --git a/i18n/ua/code.json b/i18n/uk/code.json similarity index 100% rename from i18n/ua/code.json rename to i18n/uk/code.json diff --git a/i18n/ua/docusaurus-plugin-content-blog/options.json b/i18n/uk/docusaurus-plugin-content-blog/options.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-blog/options.json rename to i18n/uk/docusaurus-plugin-content-blog/options.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current.json b/i18n/uk/docusaurus-plugin-content-docs/current.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current.json rename to i18n/uk/docusaurus-plugin-content-docs/current.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/beginners-guide.md b/i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/beginners-guide.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/beginners-guide.md rename to i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/beginners-guide.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/keybinds-overview.md b/i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/keybinds-overview.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/keybinds-overview.md rename to i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/keybinds-overview.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/plugins-overview.md b/i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/plugins-overview.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/plugins-overview.md rename to i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/plugins-overview.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/terminology.md b/i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/terminology.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/beginners-guide/terminology.md rename to i18n/uk/docusaurus-plugin-content-docs/current/beginners-guide/terminology.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/community/README.md b/i18n/uk/docusaurus-plugin-content-docs/current/community/README.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/community/README.md rename to i18n/uk/docusaurus-plugin-content-docs/current/community/README.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/community/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/community/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/community/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/community/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/community/meet-the-team.md b/i18n/uk/docusaurus-plugin-content-docs/current/community/meet-the-team.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/community/meet-the-team.md rename to i18n/uk/docusaurus-plugin-content-docs/current/community/meet-the-team.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/README.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/README.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/README.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/README.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/appearance/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/appearance/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/appearance/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/appearance/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/appearance/colorschemes.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/appearance/colorschemes.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/appearance/colorschemes.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/appearance/colorschemes.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/appearance/statusline.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/appearance/statusline.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/appearance/statusline.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/appearance/statusline.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/autocommands.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/autocommands.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/autocommands.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/autocommands.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/ftplugin.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/ftplugin.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/ftplugin.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/ftplugin.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/keybindings.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/keybindings.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/keybindings.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/keybindings.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/custom-snippets.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/custom-snippets.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/custom-snippets.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/custom-snippets.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/language-features.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/language-features.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/language-features.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/language-features.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/language-servers.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/language-servers.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/language-servers.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/language-servers.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/linting-and-formatting.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/linting-and-formatting.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/language-features/linting-and-formatting.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/language-features/linting-and-formatting.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/options.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/options.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/options.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/options.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/plugins/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/plugins/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/plugins/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/plugins/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/configuration/plugins/plugins.md b/i18n/uk/docusaurus-plugin-content-docs/current/configuration/plugins/plugins.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/configuration/plugins/plugins.md rename to i18n/uk/docusaurus-plugin-content-docs/current/configuration/plugins/plugins.md diff --git a/i18n/uk/docusaurus-plugin-content-docs/current/dev/README.md b/i18n/uk/docusaurus-plugin-content-docs/current/dev/README.md new file mode 100644 index 00000000..743e6954 --- /dev/null +++ b/i18n/uk/docusaurus-plugin-content-docs/current/dev/README.md @@ -0,0 +1,85 @@ +# Розробка Lunarvim + +## Початок роботи + +Ми рекомендуємо зробити символьне посилання на ваш форк: + +```bash +cd ~/.local/share/lunarvim/ +ln -s ~/dev/Lunarvim ~/.local/share/lunarvim/lvim_dev +``` + +На виході повинно вийти щось на кшталт: + +```bash +$ ls -a +lrwxrwxrwx 1 user user 37 sep 23 14:35 lvim_dev -> /home/user/dev/LunarVim +``` + +--- + +Тепер переведіть ваш lvim у режим розробки: + +```bash +cd ~/.local/share/lunarvim/ +mv lvim lvim_back +mv lvim_dev lvim +``` + +--- + +Повернімося в lvim + +```bash +cd ~/.local/share/lunarvim/ +mv lvim lvim_dev +mv lvim_back lvim +``` + +Щоб перевірити, що ви можете отримати деякий вивід з `lvim`, додайте наступне до вашого файлу `init.lua` у вашому форку. + + +```lua +print ("it works") +``` + +```bash +lvim +``` + +Тепер введіть `:messages`. Бажаємо гарної розробки! + +## Lua + Neovim = :heart: + +Для початку, [цей посібник](https://github.com/nanotee/nvim-lua-guide) охоплює багато моментів, які допоможуть вам почати роботу з Lua і тим, як працює Neovim. + +## Офіційна документація + +Цей [довідковий посібник](https://www.lua.org/manual/5.4/) є офіційним посібником мови Lua. + +Якщо ви не знаєте про це, [DevDocs](https://devdocs.io/lua~5.4/) об'єднує декілька документацій API у швидкому, організованому інтерфейсі з можливістю пошуку. + +## Документація Neovim + +Neovim надає [стандартну бібліотеку](https://neovim.io/doc/user/lua.html), про яку вам варто знати. + +Вона надає багато функцій, які ви хотіли б реалізувати у stdlib Lua, наприклад `strings.split`. + +Він також постачається з [фреймворком LSP](https://neovim.io/doc/user/lsp.html) та [багато іншого](https://neovim.io/doc/user/). + +## Посібник зі стилів + +LuaRock [посібник зі стилів](https://github.com/luarocks/lua-style-guide) - це повноцінна робота, яка заслуговує на увагу, якщо ви хочете навчитися писати послідовний та надійний код. + +Він базується на багатьох попередніх посібниках, надає обґрунтування всіх своїх рішень і успішно працював у довготривалому проекті. + +## Якість коду + +Для забезпечення якості коду та узгодженого стилю наш [CI](https://github.com/Lunarvim/LunarVim/actions) використовує наступні інструменти: + +- Lua: + - [Stylua](https://github.com/JohnnyMorganz/StyLua). Форматник коду на Lua з власною думкою. + - [Luacheck] (https://github.com/mpeterv/luacheck). Інструмент для лінкування та статичного аналізу Lua коду. +- Оболонка + - [Shfmt](https://github.com/mvdan/sh). Синтаксичний аналізатор, форматувлаьник та інтерпретатор оболонки з підтримкою bash. + - [Shellcheck](https://github.com/koalaman/shellcheck). Інструмент статичного аналізу скриптів командного рядка. diff --git a/i18n/uk/docusaurus-plugin-content-docs/current/dev/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/dev/_category_.json new file mode 100644 index 00000000..899cfd03 --- /dev/null +++ b/i18n/uk/docusaurus-plugin-content-docs/current/dev/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Для розробників", + "position": 8 +} diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/dev/lunarvim_initialization.png b/i18n/uk/docusaurus-plugin-content-docs/current/dev/lunarvim_initialization.png similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/dev/lunarvim_initialization.png rename to i18n/uk/docusaurus-plugin-content-docs/current/dev/lunarvim_initialization.png diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/dev/under-the-hood.md b/i18n/uk/docusaurus-plugin-content-docs/current/dev/under-the-hood.md similarity index 92% rename from i18n/ua/docusaurus-plugin-content-docs/current/dev/under-the-hood.md rename to i18n/uk/docusaurus-plugin-content-docs/current/dev/under-the-hood.md index 2e5a49f8..b5f8e9bc 100644 --- a/i18n/ua/docusaurus-plugin-content-docs/current/dev/under-the-hood.md +++ b/i18n/uk/docusaurus-plugin-content-docs/current/dev/under-the-hood.md @@ -2,13 +2,13 @@ sidebar_position: 2 --- -# Under the Hood +# Під капотом -# Logic from start to window load +# Логіка з початку до завантаження вікна -![LunarVim initialization flowchart](./lunarvim_initialization.png 'LunarVim initialization flowchart') +![Блок-схема ініціалізації LunarVim](./lunarvim_initialization.png 'LunarVim initialization flowchart') -The above chart was made with the following markdown using mermaid markdown +Наведений вище графік був зроблений з наступною націнкою з використанням mermaid markdown Last updated Wed Aug 4 10:04:27 PM CEST 2021 ```mermaid diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/faq.md b/i18n/uk/docusaurus-plugin-content-docs/current/faq.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/faq.md rename to i18n/uk/docusaurus-plugin-content-docs/current/faq.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/features/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/features/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/core-plugins-list.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/core-plugins-list.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/core-plugins-list.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/core-plugins-list.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-frameworks/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-frameworks/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-frameworks/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-frameworks/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-frameworks/angular.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-frameworks/angular.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-frameworks/angular.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-frameworks/angular.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-frameworks/vue.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-frameworks/vue.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-frameworks/vue.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-frameworks/vue.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/ansible.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/ansible.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/ansible.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/ansible.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/c_cpp.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/c_cpp.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/c_cpp.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/c_cpp.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/csharp.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/csharp.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/csharp.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/csharp.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/go.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/go.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/go.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/go.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/hcl.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/hcl.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/hcl.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/hcl.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/java.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/java.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/java.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/java.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/javascript.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/javascript.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/javascript.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/javascript.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/json.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/json.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/json.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/json.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/julia.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/julia.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/julia.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/julia.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/lua.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/lua.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/lua.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/lua.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/powershell.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/powershell.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/powershell.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/powershell.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/python.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/python.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/python.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/python.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/qml.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/qml.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/qml.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/qml.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/ruby.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/ruby.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/ruby.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/ruby.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/rust.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/rust.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/rust.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/rust.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/scala.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/scala.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/scala.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/scala.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/swift.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/swift.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/swift.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/swift.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/terraform.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/terraform.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/terraform.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/terraform.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/typescript.md b/i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/typescript.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/features/supported-languages/typescript.md rename to i18n/uk/docusaurus-plugin-content-docs/current/features/supported-languages/typescript.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/installation/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/installation/_category_.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/installation/_category_.json rename to i18n/uk/docusaurus-plugin-content-docs/current/installation/_category_.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/installation/installation.md b/i18n/uk/docusaurus-plugin-content-docs/current/installation/installation.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/installation/installation.md rename to i18n/uk/docusaurus-plugin-content-docs/current/installation/installation.md diff --git a/i18n/ua/docusaurus-plugin-content-docs/current/installation/post-install.md b/i18n/uk/docusaurus-plugin-content-docs/current/installation/post-install.md similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/current/installation/post-install.md rename to i18n/uk/docusaurus-plugin-content-docs/current/installation/post-install.md diff --git a/i18n/uk/docusaurus-plugin-content-docs/current/troubleshooting/README.md b/i18n/uk/docusaurus-plugin-content-docs/current/troubleshooting/README.md new file mode 100644 index 00000000..0ff210f0 --- /dev/null +++ b/i18n/uk/docusaurus-plugin-content-docs/current/troubleshooting/README.md @@ -0,0 +1,151 @@ +# Установлення + +## General + +1. Make sure to check that you have a recent Neovim version with `luajit` support. The output of version information `nvim -v` should include a line for: `LuaJIT`. +2. Make sure all the dependencies listed in [Manual Install](#manual-install) are actually installed on your system. + +## Unable to run `lvim` + +Make sure that `lvim` is available and executable on your path. You can check the results of these commands to verify that + +```shell +which lvim +stat "$(which lvim)" +cat "$(which lvim)" +``` + +If you get errors with any of the above commands, then you need to either fix that manually or reinstall the binary again. + +```shell +cd # this will be in `~/.local/share/lunarvim/lvim` by default +bash utils/installer/install_bin.sh +``` + +## Getting errors after an update + +### Cache issues + +This might be the result of old cache files that need to be reset. LunarVim makes use of [impatient's](https://github.com/lewis6991/impatient.nvim) to optimize the startup procedure and deliver a snappy experience. + +1. while running LunarVim: `:LvimCacheReset` +2. from the CLI: `lvim +LvimCacheReset` + +### Plugin issue + +This could be due to multiple reasons, but most commonly it's a breaking change in some plugin, +or `git` refusing to pull an update to a plugin because it +[can't safely fast-forward the current branch](https://blog.sffc.xyz/post/185195398930/why-you-should-use-git-pull-ff-only-git-is-a). + +The easiest way to solve this is to manually update (a rebase is likely required) the offending plugin, +which should be located in Lazy's package-root at `$LUNARVIM_RUNTIME_DIR/site/pack/lazy`. + +Let's say it's `nvim-cmp` for example + +```vim +:! git -C "$LUNARVIM_RUNTIME_DIR/site/pack/lazy/opt/nvim-cmp" status +``` + +now check which commit is currently checked out + +```vim +:! git -C "$LUNARVIM_RUNTIME_DIR/site/pack/lazy/opt/nvim-cmp" log -1 +``` + +it should match the one in `$LUNARVIM_RUNTIME_DIR/lvim/snapshots/default.json`, but you can always restore the snapshot with `:LvimSyncCorePlugins` + +```vim +:! git -C "$LUNARVIM_RUNTIME_DIR/site/pack/lazy/opt/nvim-cmp" pull --rebase +``` + +### Помилка з Lazy.nvim + +Якщо ви не вносили жодних змін до жодного з плагінів, ви можете повністю видалити кореневий теку пакунка Lazy. + +```shell +LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-$HOME/.local/share/lunarvim}" +rm -rf "$LUNARVIM_RUNTIME_DIR/site/pack/lazy" +``` + +тепер відкрийте `lvim`, плагіни мають почати встановлюватися, в іншому випадку запустіть `:Lazy sync`. + +## LunarVim повільний! + +### ви використовуєте `fish`? + +> По-перше, не рекомендується взагалі ставити fish як оболонку у Vim. Багато з Vim-плагінів виконують не сумісні з fish команди оболонки, тому ліпше встановити `/bin/sh` зазвичай краще, особливо якщо у вас немає вагомих причин змінювати його на fish. + +```lua +vim.opt.shell = "/bin/sh" +``` + +Дивіться [fish-shell/fish-shell#7004](https://github.com/fish-shell/fish-shell/issues/7004) та `:h 'shell'` для додаткової інформації. + +## Мовний сервер XXX не запускається! + +### Оновіть node + +Певні мовні сервери покладаються на новішу версію node. Оновіть версію node до останньої. + +### чи це перевизначено? + +Це може бути пов'язано з тим, що сервер [перевизначено](../configuration/language-features/language-servers.md#server-override) + +```lua +--- чи він взагалі в списку? +:lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers)) +``` + +Якщо це так, то вам потрібно або видалити його зі списку, або виконати `:LvimCacheReset` повторно + +```lua +vim.tbl_map(function(server) + return server ~= "emmet_ls" +end, lvim.lsp.automatic_configuration.skipped_servers) +``` + +або встановити [вручну](../configuration/language-features/language-servers.md#server-setup). + +### чи він підтримується [nvim-lsp-installer](https://github.com/williamboman/nvim-lsp-installer)? + +Будь-який сервер, який не відображається у `LspInstallInfo`, потрібно встановити вручну. + +### він хоча б показується в `:LspInfo`? + +Перевірте підказки для [налагоджувача nvim-lspconfig](https://github.com/neovim/nvim-lspconfig#debugging). + +## Занадто багато мовних серверів запускається одночасно! + +Чи [перевизначено](../configuration/language-features/language-servers.md#server-override) якийсь з цих серверів за замовчуванням? + +```lua +:lua print(vim.inspect(require("lvim.lsp.config").override)) +``` + +Якщо вони є, то ви використовуєте синтаксис перед [LunarVim#1813](https://github.com/LunarVim/LunarVim/pull/1813). + +```lua +-- this is the correct syntax since 3dd60bd +vim.list_extend(lvim.lsp.override, { "jsonls" }) +``` + +```lua +-- this the correct syntax since 198577a +vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "jsonls" }) +``` + +## Мій LunarVim має жахливий вигляд! + +- Переконайтеся, що ваш термінал підтримує 24-бітові кольори. Якщо ні, ви можете зіткнутися з деякими проблемами, пов'язаними з типовою схемою кольорів та іншими схемами кольорів. + + - Для отримання інформації про те, що таке 24-бітові кольори, а також для перевірки того, чи підтримує їх ваш термінал, скористайтеся цим корисним репозиторієм: https://github.com/termstandard/colors. + +- Іншою проблемою може бути `termguicolors`. Якщо це так, радимо вам звернутися до офіційної документації neovim: + + - Що таке `termguicolors`? див. + +- Іншим випадком може бути те, що ваша змінна `$TERM` змінює кольори у вашому терміналі. + + - Для цього ми радимо вам подивитися, чи є у когось ще така сама змінна `$TERM`, як у вас, і що вони зробили https://github.com/neovim/neovim/issues?q=label%3Atui+color + + diff --git a/i18n/uk/docusaurus-plugin-content-docs/current/troubleshooting/_category_.json b/i18n/uk/docusaurus-plugin-content-docs/current/troubleshooting/_category_.json new file mode 100644 index 00000000..687f952f --- /dev/null +++ b/i18n/uk/docusaurus-plugin-content-docs/current/troubleshooting/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Вирішення проблем", + "position": 5 +} diff --git a/i18n/ua/docusaurus-plugin-content-docs/version-1.2.json b/i18n/uk/docusaurus-plugin-content-docs/version-1.2.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/version-1.2.json rename to i18n/uk/docusaurus-plugin-content-docs/version-1.2.json diff --git a/i18n/ua/docusaurus-plugin-content-docs/version-1.3.json b/i18n/uk/docusaurus-plugin-content-docs/version-1.3.json similarity index 100% rename from i18n/ua/docusaurus-plugin-content-docs/version-1.3.json rename to i18n/uk/docusaurus-plugin-content-docs/version-1.3.json diff --git a/i18n/ua/docusaurus-theme-classic/navbar.json b/i18n/uk/docusaurus-theme-classic/navbar.json similarity index 100% rename from i18n/ua/docusaurus-theme-classic/navbar.json rename to i18n/uk/docusaurus-theme-classic/navbar.json