Compare commits
21 Commits
|
@ -0,0 +1,3 @@
|
|||
node_modules
|
||||
package.json
|
||||
package-lock.json
|
27
README.md
27
README.md
|
@ -1,3 +1,26 @@
|
|||
# nvim
|
||||
# NVIM by MIRZAEV
|
||||
My settings, keymaps and plugins for NeoVim 😼<br>
|
||||
<small><i>The installer only works with [fish](https://fishshell.com/) and [ubuntu](https://ubuntu.com/)</i></small>
|
||||
|
||||
My settings, keymaps and plugins for NeoVim
|
||||
# Install
|
||||
|
||||
### Send these commands
|
||||
1. `cd ~/.config`
|
||||
2. `git clone https://git.svoboda.works/mirzaev/nvim`
|
||||
3. `cd nvim`
|
||||
4. `./install.sh -u`
|
||||
|
||||
### Open nvim and then
|
||||
1. `:PackerSync`
|
||||
2. `:PackerSync` (yeah, again)
|
||||
3. `:TSInstall fish php html css javascript` (add your languages here)
|
||||
4. `:COQdeps`
|
||||
|
||||
<small><b>Have fun!</b></small>
|
||||
|
||||
# Installer screenshots
|
||||

|
||||

|
||||
|
||||
# NVIM screenshots
|
||||
later
|
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
After Width: | Height: | Size: 73 KiB |
372
install.sh
372
install.sh
|
@ -1,10 +1,30 @@
|
|||
#!/usr/bin/fish
|
||||
#!/usr/bin/env fish
|
||||
|
||||
# Initializing the flags
|
||||
set -l options (fish_opt -s v -l verbose)
|
||||
set options $options (fish_opt -s f -l force)
|
||||
set options $options (fish_opt -s u -l update)
|
||||
set options $options (fish_opt -s h -l help)
|
||||
|
||||
# Initializing settings
|
||||
set NODEJS_VERSION 23
|
||||
set NVIM_WIKI_INSTALLATION "https://github.com/neovim/neovim/wiki/Installing-Neovim/921fe8c40c34dd1f3fb35d5b48c484db1b8ae94b"
|
||||
|
||||
# Reading the flags
|
||||
argparse $options -- $argv
|
||||
|
||||
# Initializing the buffer of output
|
||||
set -l output (if set -q _flag_verbose; echo '/dev/tty'; else; echo '/dev/null'; end)
|
||||
|
||||
# Инициализация текста сообщений в зависимости от установленного языка в оболочке
|
||||
if test (string match -ri "ru" "$LANG")
|
||||
function print -a TYPE PARAM1 PARAM2 -d "Текст сообщений"
|
||||
switch $TYPE
|
||||
case PACKER_INSTALL
|
||||
function print -a TYPE PARAM1 PARAM2 -d "Текст сообщений"
|
||||
switch $TYPE
|
||||
case HELP
|
||||
set_color -b red yellow; echo -n "[mirzaev/nvim] "; set_color brcyan; echo -n "[ИНФОРМАЦИЯ] "; set_color -o white; echo "Формат: install.sh [флаги]"; echo; set_color normal; set_color yellow; echo -n " -u "; set_color cyan; echo -n "--update "; set_color -d white; echo "Обновить все зависимости"; set_color normal; set_color yellow; echo -n " -f "; set_color cyan; echo -n "--force "; set_color -d white; echo "Не просить подтверждения"; set_color normal; set_color yellow; echo -n " -v "; set_color cyan; echo -n "--verbose "; set_color -d white; echo "Подключить TTY к буферу вывода"; set_color normal; set_color yellow; echo -n " -h "; set_color cyan; echo -n "--help "; set_color -d white; echo "Прислать это сообщение"; echo; set_color normal; set_color white; echo -n "Этот установщик работает только для "; set_color yellow; echo -n "fish "; set_color white; echo -n "и "; set_color red; echo -n "ubuntu";
|
||||
case NVIM_NOT_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color red; echo -n "[ОШИБКА] "; set_color white; echo "NeoVim не установлен";
|
||||
case PACKER_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[ЗАДАЧА] "; set_color white; echo "Установить Packer? (\"wbthomason/packer.nvim\") (y/N) ";
|
||||
case PACKER_EXISTS
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[ЗАДАЧА] "; set_color white; echo "Packer уже установлен. Переустановить? (y/N) ";
|
||||
|
@ -38,11 +58,31 @@ if test (string match -ri "ru" "$LANG")
|
|||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[ЗАДАЧА] "; set_color white; echo "Установить форматировщик для NGINX? (\"vasilevich/nginxbeautifier\") (y/N) ";
|
||||
case FORMATTER_NGINX_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[РАБОТА] "; set_color white; echo "Установлен форматировщик для NGINX (\"vasilevich/nginxbeautifier\")";
|
||||
case FORMATTER_PRETTIER_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[ЗАДАЧА] "; set_color white; echo "Установить форматировщик Prettier? (\"prettier/vim-prettier\") (y/N) ";
|
||||
case FORMATTER_PRETTIER_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[РАБОТА] "; set_color white; echo "Установлен форматировщик Prettier (\"prettier/vim-prettier\")";
|
||||
case FONT_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[ЗАДАЧА] "; set_color white; echo "Установить шрифт "(set_color cyan)"FiraCode"(set_color white)"? (y/N) ";
|
||||
case FONT_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[РАБОТА] "; set_color white; echo "Установлен шрифт "(set_color cyan)"FiraCode"(set_color white)" (выбери его в настройках твоего эмулятора терминала)";
|
||||
case FONTS
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color magenta; echo -n "[ДАННЫЕ] "; set_color white; echo "Шрифты для GNOME эмулятора терминала: https://www.nerdfonts.com/font-downloads (моя рекомендация - "(set_color cyan)"FiraCode"(set_color white)")";
|
||||
case FONT_PATCH
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[ЗАДАЧА] "; set_color white; echo "Пропатчить шрифт для иконок? (\"nvim-tree/nvim-web-devicons\") (y/N) ";
|
||||
case FONT_CHOOSE
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[ЗАДАЧА] "; set_color white; echo "Путь до шрифта";
|
||||
case FONT_PATCHED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[РАБОТА] "; set_color white; echo "Пропатчен шрифт для иконок (\"nvim-tree/nvim-web-devicons\")";
|
||||
end
|
||||
end
|
||||
else
|
||||
function print -a TYPE PARAM1 PARAM2 -d "Messages text"
|
||||
switch $TYPE
|
||||
switch $TYPE
|
||||
case HELP
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color brcyan; echo -n "[INFORMATION] "; set_color -o white; echo "Format: install.sh [flags]"; echo; set_color normal; set_color yellow; echo -n " -u "; set_color cyan; echo -n "--update "; set_color -d white; echo "Update all dependencies"; set_color normal; set_color yellow; echo -n " -f "; set_color cyan; echo -n "--force "; set_color -d white; echo "Do not ask for confirmations"; set_color normal; set_color yellow; echo -n " -v "; set_color cyan; echo -n "--verbose "; set_color -d white; echo "Connect TTY to the output buffer"; set_color normal; set_color yellow; echo -n " -h "; set_color cyan; echo -n "--help "; set_color -d white; echo "Send this message"; set_color normal; set_color white; echo; echo -n "This installer only works with "; set_color yellow; echo -n "fish "; set_color white; echo -n "and "; set_color red; echo "ubuntu";
|
||||
case NVIM_NOT_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color red; echo -n "[ERROR] "; set_color white; echo "NeoVim is not installed";
|
||||
case PACKER_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install Packer? (\"wbthomason/packer.nvim\") (y/N) ";
|
||||
case PACKER_EXISTS
|
||||
|
@ -64,11 +104,11 @@ else
|
|||
case LSP_CSSMODULES_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install the LSP-server for CSS (formatter)? (\"antonk52/cssmodules-language-server\") (y/N) ";
|
||||
case LSP_CSSMODULES_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Install the LSP-server for CSS (formatter) (\"antonk52/cssmodules-language-server\")";
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Installed the LSP-server for CSS (formatter) (\"antonk52/cssmodules-language-server\")";
|
||||
case LSP_DENO_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install the LSP-server for JavaScript и PostScript? (\"denoland/deno\") (y/N) ";
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install the LSP-server for JavaScript and PostScript? (\"denoland/deno\") (y/N) ";
|
||||
case LSP_DENO_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Installed the LSP-server for JavaScript и PostScript (\"denoland/deno\")";
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Installed the LSP-server for JavaScript and PostScript (\"denoland/deno\")";
|
||||
case LSP_LUA_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install the LSP-server for Lua? (\"luals/lua-language-server\") (y/N) ";
|
||||
case LSP_LUA_INSTALLED
|
||||
|
@ -77,136 +117,328 @@ else
|
|||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install the formatter for NGINX? (\"vasilevich/nginxbeautifier\") (y/N) ";
|
||||
case FORMATTER_NGINX_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Installed the formatter for NGINX (\"vasilevich/nginxbeautifier\")";
|
||||
case FORMATTER_PRETTIER_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install the formatter Prettier? (\"prettier/vim-prettier\") (y/N) ";
|
||||
case FORMATTER_PRETTIER_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Installed the formatter Prettier (\"prettier/vim-prettier\")";
|
||||
case FONT_INSTALL
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install "(set_color cyan)"FiraCode"(set_color white)" font? (y/N) ";
|
||||
case FONT_INSTALLED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Installed "(set_color cyan)"FiraCode"(set_color white)" font (select it in your terminal emulator settings)";
|
||||
case FONTS
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color magenta; echo -n "[INFO] "; set_color white; echo "Fonts for GNOME terminal emulator: https://www.nerdfonts.com/font-downloads (my recommendation - "(set_color cyan)"FiraCode"(set_color white)") ";
|
||||
case FONT_PATCH
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Patch your font for icons? (\"nvim-tree/nvim-web-devicons\") (y/N) ";
|
||||
case FONT_CHOOSE
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Path to the font";
|
||||
case FONT_PATCHED
|
||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Pathed the font for icons (\"nvim-tree/nvim-web-devicons\")";
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print PACKER_INSTALL")
|
||||
bind -e y
|
||||
if set -q _flag_help
|
||||
# Sending the message
|
||||
print HELP
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
# Exit (success)
|
||||
return 0
|
||||
end
|
||||
|
||||
if not type -q nvim
|
||||
# Sending the message
|
||||
print NVIM_NOT_INSTALLED
|
||||
echo $NVIM_WIKI_INSTALLATION
|
||||
|
||||
# Exit (fail)
|
||||
return 1
|
||||
end
|
||||
|
||||
if set -q _flag_update
|
||||
begin
|
||||
# Downloading and installing fnm (for NodeJS)
|
||||
curl -o- https://fnm.vercel.app/install | bash
|
||||
|
||||
# Initializing fnm
|
||||
source /home/mirzaev/.config/fish/conf.d/fnm.fish
|
||||
|
||||
# Downloadind and installing Node.js:
|
||||
fnm install $NODEJS_VERSION
|
||||
|
||||
# need to rewrite in future (бляяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяя)
|
||||
sudo apt install -y npm python3-venv python3-pip rubygems ruby-dev pkg-config
|
||||
python3 -m ~/.local/bin/pip install --upgrade pip
|
||||
fish_add_path ~/.local/bin
|
||||
~/.local/bin/pip install --upgrade pynvim
|
||||
sudo gem install neovim
|
||||
|
||||
# Install NeoVim module for NPM
|
||||
npm i -g neovim
|
||||
end &> $output
|
||||
end
|
||||
|
||||
# Initializing the virtual environment for Python packages
|
||||
python3 -m venv ~/.local --system-site-packages
|
||||
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print PACKER_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
if test -d ~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
# Найден репозиторий "wbthomason/packer.nvim"
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print PACKER_EXISTS")
|
||||
bind -e y
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print PACKER_EXISTS")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Запрошена переустановка
|
||||
|
||||
# Деинициализация старого репозитория
|
||||
rm -rf ~/.local/share/nvim/site/pack/packer/start/packer.nvim 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Деинициализация старого репозитория
|
||||
rm -rf ~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
|
||||
# Инициализация репозитория
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim 1> /dev/null 2> /dev/null
|
||||
# Инициализация репозитория
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
end &> $output
|
||||
|
||||
print PACKER_INSTALLED
|
||||
end
|
||||
else
|
||||
# Не найден репозиторий "wbthomason/packer.nvim"
|
||||
|
||||
# Инициализация репозитория
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Инициализация репозитория
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
end &> $output
|
||||
|
||||
print PACKER_INSTALLED
|
||||
end
|
||||
end
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_INTELEPHENSE_INSTALL")
|
||||
bind -e y
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_INTELEPHENSE_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Запрошена установка "bmewburn/vscode-intelephense"
|
||||
|
||||
# Установка
|
||||
npm i intelephense 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Установка
|
||||
npm i -g intelephense
|
||||
end &> $output
|
||||
|
||||
print LSP_INTELEPHENSE_INSTALLED
|
||||
end
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_VSCODE-LANGSERVERS_INSTALL")
|
||||
bind -e y
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_VSCODE-LANGSERVERS_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Запрошена установка "hrsh7th/vscode-langservers-extracted"
|
||||
|
||||
# Установка
|
||||
npm i vscode-langservers-extracted 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Установка
|
||||
npm i -g vscode-langservers-extracted
|
||||
end &> $output
|
||||
|
||||
print LSP_VSCODE-LANGSERVERS_INSTALLED
|
||||
end
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_EMMET_INSTALL")
|
||||
bind -e y
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_EMMET_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Запрошена установка "aca/emmet-ls"
|
||||
|
||||
# Установка
|
||||
npm i emmet-ls 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Установка
|
||||
npm i -g emmet-ls
|
||||
end &> $output
|
||||
|
||||
print LSP_EMMET_INSTALLED
|
||||
end
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_CSSMODULES_INSTALL")
|
||||
bind -e y
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_CSSMODULES_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Запрошена установка "antonk52/cssmodules-language-server"
|
||||
|
||||
# Установка
|
||||
npm i cssmodules-language-server 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Установка
|
||||
npm i -g cssmodules-language-server
|
||||
end &> $output
|
||||
|
||||
print LSP_CSSMODULES_INSTALLED
|
||||
end
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_DENO_INSTALL")
|
||||
bind -e y
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_DENO_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Запрошена установка "denoland/deno"
|
||||
|
||||
# Установка
|
||||
curl -fsSL https://deno.land/install.sh | sh 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Установка
|
||||
curl -fsSL https://deno.land/install.sh | sh
|
||||
end &> $output
|
||||
|
||||
# TODO доделать нормально
|
||||
set -g DENO_INSTALL "$HOME/.deno"
|
||||
fish_add_path $DENO_INSTALL/bin
|
||||
|
||||
print LSP_DENO_INSTALLED
|
||||
end
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_LUA_INSTALL")
|
||||
bind -e y
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print LSP_LUA_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Запрошена установка "luals/lua-language-server"
|
||||
|
||||
# Установка
|
||||
cd ~/
|
||||
git clone https://github.com/LuaLS/lua-language-server 1> /dev/null 2> /dev/null
|
||||
cd lua-language-server
|
||||
fish ./make.sh 1> /dev/null 2> /dev/null
|
||||
fish_add_path $(realpath ./)/bin 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Установка
|
||||
sudo apt install ninja-build -y
|
||||
cd ~/
|
||||
rm -rf lua-language-server
|
||||
git clone https://github.com/LuaLS/lua-language-server
|
||||
cd lua-language-server
|
||||
bash ./make.sh
|
||||
fish_add_path $HOME/lua-language-server/bin
|
||||
end &> $output
|
||||
|
||||
print LSP_LUA_INSTALLED
|
||||
end
|
||||
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print FORMATTER_NGINX_INSTALL")
|
||||
bind -e y
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print FORMATTER_NGINX_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if test (string match -ri 'y' "$RESPONSE")
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Запрошена установка "vasilevich/nginxbeautifier"
|
||||
|
||||
# Установка
|
||||
npm i nginxbeautifier 1> /dev/null 2> /dev/null
|
||||
begin
|
||||
# Установка
|
||||
npm i -g nginxbeautifier
|
||||
end &> $output
|
||||
|
||||
print FORMATTER_NGINX_INSTALLED
|
||||
end
|
||||
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print FORMATTER_PRETTIER_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Accepted installation of "prettier/vim-prettier"
|
||||
|
||||
begin
|
||||
npm i prettier
|
||||
npm i -g prettier
|
||||
end &> $output
|
||||
|
||||
print FORMATTER_PRETTIER_INSTALLED
|
||||
end
|
||||
|
||||
print FONTS
|
||||
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print FONT_INSTALL")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Accepted installation of the FiraCode font
|
||||
|
||||
begin
|
||||
mkdir -p ~/.local/share/fonts/FiraCode
|
||||
cd ~/.local/share/fonts/FiraCode
|
||||
wget "https://github.com/ryanoasis/nerd-fonts/releases/download/v3.1.1/FiraCode.zip"
|
||||
unzip -o FiraCode.zip
|
||||
rm FiraCode.zip
|
||||
sudo apt install fontconfig
|
||||
fc-cache -f -v
|
||||
end &> $output
|
||||
|
||||
print FONT_INSTALLED
|
||||
|
||||
if type -q dconf
|
||||
# GNOME
|
||||
|
||||
# if (set -q _flag_force or string match (lsb_release -i | grep -Po '[^\s]*$') Ubuntu))
|
||||
# sudo apt-get install dconf
|
||||
# end
|
||||
end
|
||||
|
||||
# dconf write /apps/gnome-terminal/profiles/Default/font FiraCodeNerdFontMono-Medium.ttf
|
||||
# gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_system_font --type=boolean false
|
||||
# gconftool-2 --set /apps/gnome-terminal/profiles/Default/font --type string FiraCodeNerdFontMono-Medium.ttf
|
||||
else
|
||||
# Denied installation of the FiraCode font
|
||||
|
||||
if not set -q _flag_force
|
||||
# Installation request
|
||||
set RESPONSE (read -n 1 -p "print FONT_PATCH")
|
||||
bind -e y
|
||||
end
|
||||
|
||||
if set -q _flag_force; or test (string match -ri 'y' "$RESPONSE")
|
||||
# Accepted to patching the font
|
||||
|
||||
begin
|
||||
cd ~/
|
||||
wget "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FontPatcher.zip"
|
||||
unzip -o FontPatcher.zip -d font_patcher
|
||||
cd font_patcher
|
||||
|
||||
#if not type -q python && type -q python3
|
||||
if not type -q python
|
||||
# alias python=python3
|
||||
sudo apt install python-is-python3 -y
|
||||
end
|
||||
|
||||
sudo apt install fontforge python3-fontforge -y
|
||||
|
||||
end &> $output
|
||||
|
||||
# Initializing path to the font
|
||||
set FONT (read -p "print FONT_CHOOSE")
|
||||
|
||||
begin
|
||||
./font-patcher $FONT
|
||||
end &> $output
|
||||
|
||||
print FONT_PATCHED
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
-- Quick compilation with GCC and running
|
||||
vim.keymap.set('n', 'co', '<cmd>:!gcc -o test % && ./test', {noremap = true})
|
|
@ -1,6 +1,6 @@
|
|||
--[[ nvim-neo-tree/neo-tree ]]
|
||||
-- Открыть интерфейс с древовидным отображением файлов
|
||||
vim.keymap.set({ 'n', 'i', 'v', 't' }, '<f1>', '<cmd>NeoTreeRevealToggle<cr>', { noremap = true })
|
||||
vim.keymap.set({ 'n', 'i', 'v', 't' }, '<f1>', '<cmd>Neotree toggle<cr>', { noremap = true })
|
||||
|
||||
|
||||
-- [[ folke/trouble.nvim ]]
|
||||
|
@ -30,6 +30,7 @@ vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, { noremap = true, sil
|
|||
lspconfig_on_attach = function(client, bufnr)
|
||||
-- Активация завершения
|
||||
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||
-- vim.keymap.set({ 'n', 'v', 't' }, 'F', function() vim.lsp.buf.format { async = true } end, { noremap = true, silent = true, buffer = bufnr })
|
||||
|
||||
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, { noremap = true, silent = true, buffer = bufnr })
|
||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { noremap = true, silent = true, buffer = bufnr })
|
||||
|
@ -54,19 +55,18 @@ vim.keymap.set({ 'n', 'v', 't' }, 'F', function()
|
|||
vim.api.nvim_exec('w', false)
|
||||
vim.api.nvim_exec('! nginxbeautifier -i %', false)
|
||||
vim.api.nvim_exec('redraw', false)
|
||||
elseif (vim.lsp.buf.server_ready()) then
|
||||
-- LSP-server is ready
|
||||
elseif (not (vim.diff(vim.inspect(vim.lsp.buf_get_clients()), '{}') == '')) then
|
||||
-- LSP-server clients is ready
|
||||
|
||||
vim.lsp.buf.format { async = true }
|
||||
else
|
||||
-- LSP-server not found
|
||||
-- LSP-server clients not found
|
||||
|
||||
vim.api.nvim_exec('PrettierAsync', false)
|
||||
end
|
||||
end,
|
||||
{ noremap = true, silent = true, buffer = bufnr })
|
||||
|
||||
|
||||
--[[ lewis6991/gitsigns.nvim ]]
|
||||
-- Инициализация только после того, как LSP-сервер подключится к текущему буферу
|
||||
gitsigns_on_attach = function(bufnr)
|
||||
|
|
|
@ -1,46 +1,95 @@
|
|||
require('fidget').setup({
|
||||
text = {
|
||||
spinner = "pipe", -- animation shown when tasks are ongoing
|
||||
done = "✔", -- character shown when all tasks are complete
|
||||
commenced = "Started", -- message shown when task starts
|
||||
completed = "Completed", -- message shown when task completes
|
||||
},
|
||||
align = {
|
||||
bottom = true, -- align fidgets along bottom edge of buffer
|
||||
right = true, -- align fidgets along right edge of buffer
|
||||
},
|
||||
timer = {
|
||||
spinner_rate = 125, -- frame rate of spinner animation, in ms
|
||||
fidget_decay = 2000, -- how long to keep around empty fidget, in ms
|
||||
task_decay = 1000, -- how long to keep around completed task, in ms
|
||||
},
|
||||
window = {
|
||||
relative = "win", -- where to anchor, either "win" or "editor"
|
||||
blend = 100, -- &winblend for the window
|
||||
zindex = nil, -- the zindex value for the window
|
||||
border = "none", -- style of border for the fidget window
|
||||
},
|
||||
fmt = {
|
||||
leftpad = true, -- right-justify text in fidget box
|
||||
stack_upwards = true, -- list of tasks grows upwards
|
||||
max_width = 0, -- maximum width of the fidget box
|
||||
fidget = -- function to format fidget title
|
||||
function(fidget_name, spinner)
|
||||
return string.format("%s %s", spinner, fidget_name)
|
||||
end,
|
||||
task = -- function to format each task line
|
||||
function(task_name, message, percentage)
|
||||
return string.format(
|
||||
"%s%s [%s]",
|
||||
message,
|
||||
percentage and string.format(" (%s%%)", percentage) or "",
|
||||
task_name
|
||||
)
|
||||
end,
|
||||
},
|
||||
sources = {},
|
||||
debug = {
|
||||
logging = false, -- whether to enable logging, for debugging
|
||||
strict = false, -- whether to interpret LSP strictly
|
||||
}
|
||||
-- Options related to LSP progress subsystem
|
||||
progress = {
|
||||
poll_rate = 0, -- How and when to poll for progress messages
|
||||
suppress_on_insert = false, -- Suppress new messages while in insert mode
|
||||
ignore_done_already = false, -- Ignore new tasks that are already complete
|
||||
ignore_empty_message = false, -- Ignore new tasks that don't contain a message
|
||||
clear_on_detach = -- Clear notification group when LSP server detaches
|
||||
function(client_id)
|
||||
local client = vim.lsp.get_client_by_id(client_id)
|
||||
return client and client.name or nil
|
||||
end,
|
||||
notification_group = -- How to get a progress message's notification group key
|
||||
function(msg) return msg.lsp_client.name end,
|
||||
ignore = {}, -- List of LSP servers to ignore
|
||||
-- Options related to how LSP progress messages are displayed as notifications
|
||||
display = {
|
||||
render_limit = 16, -- How many LSP messages to show at once
|
||||
done_ttl = 3, -- How long a message should persist after completion
|
||||
done_icon = "✔", -- Icon shown when all LSP progress tasks are complete
|
||||
done_style = "Constant", -- Highlight group for completed LSP tasks
|
||||
progress_ttl = math.huge, -- How long a message should persist when in progress
|
||||
progress_icon = -- Icon shown when LSP progress tasks are in progress
|
||||
{ pattern = "dots", period = 1 },
|
||||
progress_style = -- Highlight group for in-progress LSP tasks
|
||||
"WarningMsg",
|
||||
group_style = "Title", -- Highlight group for group name (LSP server name)
|
||||
icon_style = "Question", -- Highlight group for group icons
|
||||
priority = 30, -- Ordering priority for LSP notification group
|
||||
skip_history = true, -- Whether progress notifications should be omitted from history
|
||||
format_message = -- How to format a progress message
|
||||
require("fidget.progress.display").default_format_message,
|
||||
format_annote = -- How to format a progress annotation
|
||||
function(msg) return msg.title end,
|
||||
format_group_name = -- How to format a progress notification group's name
|
||||
function(group) return tostring(group) end,
|
||||
overrides = { -- Override options from the default notification config
|
||||
rust_analyzer = { name = "rust-analyzer" },
|
||||
},
|
||||
},
|
||||
-- Options related to Neovim's built-in LSP client
|
||||
lsp = {
|
||||
progress_ringbuf_size = 0, -- Configure the nvim's LSP progress ring buffer size
|
||||
},
|
||||
},
|
||||
-- Options related to notification subsystem
|
||||
notification = {
|
||||
poll_rate = 10, -- How frequently to update and render notifications
|
||||
filter = vim.log.levels.INFO, -- Minimum notifications level
|
||||
history_size = 128, -- Number of removed messages to retain in history
|
||||
override_vim_notify = false, -- Automatically override vim.notify() with Fidget
|
||||
configs = -- How to configure notification groups when instantiated
|
||||
{ default = require("fidget.notification").default_config },
|
||||
redirect = -- Conditionally redirect notifications to another backend
|
||||
function(msg, level, opts)
|
||||
if opts and opts.on_open then
|
||||
return require("fidget.integration.nvim-notify").delegate(msg, level, opts)
|
||||
end
|
||||
end,
|
||||
-- Options related to how notifications are rendered as text
|
||||
view = {
|
||||
stack_upwards = true, -- Display notification items from bottom to top
|
||||
icon_separator = " ", -- Separator between group name and icon
|
||||
group_separator = "---", -- Separator between notification groups
|
||||
group_separator_hl = -- Highlight group used for group separator
|
||||
"Comment",
|
||||
},
|
||||
-- Options related to the notification window and buffer
|
||||
window = {
|
||||
normal_hl = "Comment", -- Base highlight group in the notification window
|
||||
winblend = 100, -- Background color opacity in the notification window
|
||||
border = "none", -- Border around the notification window
|
||||
zindex = 45, -- Stacking priority of the notification window
|
||||
max_width = 0, -- Maximum width of the notification window
|
||||
max_height = 0, -- Maximum height of the notification window
|
||||
x_padding = 1, -- Padding from right edge of window boundary
|
||||
y_padding = 0, -- Padding from bottom edge of window boundary
|
||||
align = "bottom", -- How to align the notification window
|
||||
relative = "editor", -- What the notification window position is relative to
|
||||
},
|
||||
},
|
||||
-- Options related to integrating with other plugins
|
||||
integration = {
|
||||
["nvim-tree"] = {
|
||||
enable = true, -- Integrate with nvim-tree/nvim-tree.lua (if installed)
|
||||
},
|
||||
},
|
||||
-- Options related to logging
|
||||
logger = {
|
||||
level = vim.log.levels.WARN, -- Minimum logging level
|
||||
float_precision = 0.01, -- Limit the number of decimals displayed for floats
|
||||
path = -- Where Fidget writes its logs to
|
||||
string.format("%s/fidget.nvim.log", vim.fn.stdpath("cache")),
|
||||
}
|
||||
})
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
require('nvim-web-devicons').setup {
|
||||
override = {},
|
||||
color_icons = true,
|
||||
default = false
|
||||
default = true,
|
||||
strict = true
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ return require('packer').startup(function(use)
|
|||
-- Интерфейс строки буфера файлов
|
||||
use {
|
||||
'akinsho/bufferline.nvim',
|
||||
tag = "v3.*",
|
||||
-- tag = "v3.*",
|
||||
requires = 'nvim-tree/nvim-web-devicons',
|
||||
config = function() require('plugins/bufferline') end
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ return require('packer').startup(function(use)
|
|||
-- Интерфейс древовидной структуры файлов
|
||||
use {
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
branch = 'v2.x',
|
||||
-- branch = 'v2.x',
|
||||
requires = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'kyazdani42/nvim-web-devicons',
|
||||
|
@ -137,7 +137,7 @@ return require('packer').startup(function(use)
|
|||
-- Интерфейс для поиска
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.1',
|
||||
-- tag = '0.1.1',
|
||||
config = function() require('plugins/telescope') end
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ return require('packer').startup(function(use)
|
|||
run = 'composer install'
|
||||
}
|
||||
|
||||
-- Аналог LSP-сервера для поддержки оболочки fish
|
||||
-- LSP-сервер для Fish Shell
|
||||
use 'dag/vim-fish'
|
||||
|
||||
-- Цветовая тема
|
||||
|
@ -179,9 +179,10 @@ return require('packer').startup(function(use)
|
|||
use 'chr4/nginx.vim'
|
||||
|
||||
-- Форматировщик Prettier
|
||||
use {
|
||||
'prettier/vim-prettier',
|
||||
run = 'yarn install --frozen-lockfile --production',
|
||||
config = function() require('plugins/vim-prettier') end
|
||||
}
|
||||
use {
|
||||
'prettier/vim-prettier',
|
||||
branch = 'master',
|
||||
-- run = 'sudo npm i -g',
|
||||
run = 'yarn install --frozen-lockfile --production'
|
||||
}
|
||||
end)
|
||||
|
|
|
@ -5,7 +5,7 @@ vim.opt.clipboard = 'unnamedplus'
|
|||
--vim.opt.completeopt = 'menuone,noselect'
|
||||
|
||||
-- Не автокомментировать новые линии при переходе на новую строку
|
||||
--vim.cmd('autocmd BufEnter * set fo-=c fo-=r fo-=o')
|
||||
vim.cmd('autocmd BufEnter * set fo-=c fo-=r fo-=o')
|
||||
|
||||
-- Нумерация строк
|
||||
vim.opt.number = true
|
||||
|
@ -26,7 +26,9 @@ vim.opt_local.wrap = true
|
|||
vim.opt_local.cursorcolumn = true
|
||||
|
||||
-- Выбор цветовой темы
|
||||
vim.cmd.colorscheme('default')
|
||||
-- vim.cmd.colorscheme('default')
|
||||
-- vim.cmd.colorscheme('koehler')
|
||||
vim.cmd.colorscheme('vim')
|
||||
|
||||
-- Добавление ru_RU (переключать через <c-^>)
|
||||
vim.opt.keymap = 'russian-jcukenwin'
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
!.gitignore
|
||||
packer_compiled.lua
|
|
@ -1,372 +0,0 @@
|
|||
-- Automatically generated packer.nvim plugin loader code
|
||||
|
||||
if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
|
||||
vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_command('packadd packer.nvim')
|
||||
|
||||
local no_errors, error_msg = pcall(function()
|
||||
|
||||
_G._packer = _G._packer or {}
|
||||
_G._packer.inside_compile = true
|
||||
|
||||
local time
|
||||
local profile_info
|
||||
local should_profile = false
|
||||
if should_profile then
|
||||
local hrtime = vim.loop.hrtime
|
||||
profile_info = {}
|
||||
time = function(chunk, start)
|
||||
if start then
|
||||
profile_info[chunk] = hrtime()
|
||||
else
|
||||
profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
|
||||
end
|
||||
end
|
||||
else
|
||||
time = function(chunk, start) end
|
||||
end
|
||||
|
||||
local function save_profiles(threshold)
|
||||
local sorted_times = {}
|
||||
for chunk_name, time_taken in pairs(profile_info) do
|
||||
sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
|
||||
end
|
||||
table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
|
||||
local results = {}
|
||||
for i, elem in ipairs(sorted_times) do
|
||||
if not threshold or threshold and elem[2] > threshold then
|
||||
results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
|
||||
end
|
||||
end
|
||||
if threshold then
|
||||
table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)')
|
||||
end
|
||||
|
||||
_G._packer.profile_output = results
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], true)
|
||||
local package_path_str = "/home/mirzaev/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/mirzaev/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/mirzaev/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/mirzaev/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||
local install_cpath_pattern = "/home/mirzaev/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
||||
if not string.find(package.path, package_path_str, 1, true) then
|
||||
package.path = package.path .. ';' .. package_path_str
|
||||
end
|
||||
|
||||
if not string.find(package.cpath, install_cpath_pattern, 1, true) then
|
||||
package.cpath = package.cpath .. ';' .. install_cpath_pattern
|
||||
end
|
||||
|
||||
time([[Luarocks path setup]], false)
|
||||
time([[try_loadstring definition]], true)
|
||||
local function try_loadstring(s, component, name)
|
||||
local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
|
||||
if not success then
|
||||
vim.schedule(function()
|
||||
vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
|
||||
end)
|
||||
end
|
||||
return result
|
||||
end
|
||||
|
||||
time([[try_loadstring definition]], false)
|
||||
time([[Defining packer_plugins]], true)
|
||||
_G.packer_plugins = {
|
||||
["bufferline.nvim"] = {
|
||||
config = { "\27LJ\2\n2\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\23plugins/bufferline\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/bufferline.nvim",
|
||||
url = "https://github.com/akinsho/bufferline.nvim"
|
||||
},
|
||||
["coq.artifacts"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/coq.artifacts",
|
||||
url = "https://github.com/ms-jpq/coq.artifacts"
|
||||
},
|
||||
["coq.thirdparty"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/coq.thirdparty",
|
||||
url = "https://github.com/ms-jpq/coq.thirdparty"
|
||||
},
|
||||
coq_nvim = {
|
||||
after = { "nvim-lspconfig" },
|
||||
config = { "\27LJ\2\n+\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\16plugins/coq\frequire\0" },
|
||||
loaded = true,
|
||||
only_config = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/coq_nvim",
|
||||
url = "https://github.com/ms-jpq/coq_nvim"
|
||||
},
|
||||
["diaglist.nvim"] = {
|
||||
config = { "\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21plugins/diaglist\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/diaglist.nvim",
|
||||
url = "https://github.com/onsails/diaglist.nvim"
|
||||
},
|
||||
["fidget.nvim"] = {
|
||||
config = { "\27LJ\2\n.\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\19plugins/fidget\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/fidget.nvim",
|
||||
url = "https://github.com/j-hui/fidget.nvim"
|
||||
},
|
||||
["gitsigns.nvim"] = {
|
||||
config = { "\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21plugins/gitsigns\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
|
||||
url = "https://github.com/lewis6991/gitsigns.nvim"
|
||||
},
|
||||
kommentary = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/kommentary",
|
||||
url = "https://github.com/b3nj5m1n/kommentary"
|
||||
},
|
||||
["lsp-colors.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/lsp-colors.nvim",
|
||||
url = "https://github.com/folke/lsp-colors.nvim"
|
||||
},
|
||||
["lspkind-nvim"] = {
|
||||
config = { "\27LJ\2\n/\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\20plugins/lspkind\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/lspkind-nvim",
|
||||
url = "https://github.com/onsails/lspkind-nvim"
|
||||
},
|
||||
["lualine-lsp-progress"] = {
|
||||
config = { "\27LJ\2\n<\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0!plugins/lualine-lsp-progress\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/lualine-lsp-progress",
|
||||
url = "https://github.com/arkav/lualine-lsp-progress"
|
||||
},
|
||||
["lualine.nvim"] = {
|
||||
config = { "\27LJ\2\n/\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\20plugins/lualine\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||
url = "https://github.com/nvim-lualine/lualine.nvim"
|
||||
},
|
||||
["lush.nvim"] = {
|
||||
config = { "\27LJ\2\n,\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\17plugins/lush\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/lush.nvim",
|
||||
url = "https://github.com/rktjmp/lush.nvim"
|
||||
},
|
||||
["neo-tree.nvim"] = {
|
||||
config = { "\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21plugins/neo-tree\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/neo-tree.nvim",
|
||||
url = "https://github.com/nvim-neo-tree/neo-tree.nvim"
|
||||
},
|
||||
["nginx.vim"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/nginx.vim",
|
||||
url = "https://github.com/chr4/nginx.vim"
|
||||
},
|
||||
["nui.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/nui.nvim",
|
||||
url = "https://github.com/MunifTanjim/nui.nvim"
|
||||
},
|
||||
["nvim-autopairs"] = {
|
||||
config = { "\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/autopairs\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
|
||||
url = "https://github.com/windwp/nvim-autopairs"
|
||||
},
|
||||
["nvim-dap"] = {
|
||||
config = { "\27LJ\2\n+\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\16plugins/dap\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-dap",
|
||||
url = "https://github.com/mfussenegger/nvim-dap"
|
||||
},
|
||||
["nvim-lint"] = {
|
||||
config = { "\27LJ\2\n,\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\17plugins/lint\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-lint",
|
||||
url = "https://github.com/mfussenegger/nvim-lint"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
config = { "\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/lspconfig\frequire\0" },
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = false,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/opt/nvim-lspconfig",
|
||||
url = "https://github.com/neovim/nvim-lspconfig"
|
||||
},
|
||||
["nvim-treesitter"] = {
|
||||
config = { "\27LJ\2\n2\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\23plugins/treesitter\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
config = { "\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins/nvim-web-devicons\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||
url = "https://github.com/nvim-tree/nvim-web-devicons"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||
url = "https://github.com/wbthomason/packer.nvim"
|
||||
},
|
||||
phpctags = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/phpctags",
|
||||
url = "https://github.com/vim-php/phpctags"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
||||
},
|
||||
["symbols-outline.nvim"] = {
|
||||
config = { "\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins/symbols-outline\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim",
|
||||
url = "https://github.com/simrat39/symbols-outline.nvim"
|
||||
},
|
||||
tagbar = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/tagbar",
|
||||
url = "https://github.com/preservim/tagbar"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
config = { "\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/telescope\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
||||
},
|
||||
["trouble.nvim"] = {
|
||||
config = { "\27LJ\2\n/\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\20plugins/trouble\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/trouble.nvim",
|
||||
url = "https://github.com/folke/trouble.nvim"
|
||||
},
|
||||
["vim-fish"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-fish",
|
||||
url = "https://github.com/dag/vim-fish"
|
||||
},
|
||||
["vim-fugitive"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-fugitive",
|
||||
url = "https://github.com/tpope/vim-fugitive"
|
||||
},
|
||||
["vim-prettier"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-prettier",
|
||||
url = "https://github.com/prettier/vim-prettier"
|
||||
},
|
||||
["vim-signify"] = {
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-signify",
|
||||
url = "https://github.com/mhinz/vim-signify"
|
||||
},
|
||||
["vim-test"] = {
|
||||
config = { "\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21plugins/vim-test\frequire\0" },
|
||||
loaded = true,
|
||||
path = "/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-test",
|
||||
url = "https://github.com/vim-test/vim-test"
|
||||
}
|
||||
}
|
||||
|
||||
time([[Defining packer_plugins]], false)
|
||||
-- Config for: neo-tree.nvim
|
||||
time([[Config for neo-tree.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21plugins/neo-tree\frequire\0", "config", "neo-tree.nvim")
|
||||
time([[Config for neo-tree.nvim]], false)
|
||||
-- Config for: fidget.nvim
|
||||
time([[Config for fidget.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n.\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\19plugins/fidget\frequire\0", "config", "fidget.nvim")
|
||||
time([[Config for fidget.nvim]], false)
|
||||
-- Config for: nvim-treesitter
|
||||
time([[Config for nvim-treesitter]], true)
|
||||
try_loadstring("\27LJ\2\n2\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\23plugins/treesitter\frequire\0", "config", "nvim-treesitter")
|
||||
time([[Config for nvim-treesitter]], false)
|
||||
-- Config for: gitsigns.nvim
|
||||
time([[Config for gitsigns.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21plugins/gitsigns\frequire\0", "config", "gitsigns.nvim")
|
||||
time([[Config for gitsigns.nvim]], false)
|
||||
-- Config for: telescope.nvim
|
||||
time([[Config for telescope.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/telescope\frequire\0", "config", "telescope.nvim")
|
||||
time([[Config for telescope.nvim]], false)
|
||||
-- Config for: nvim-autopairs
|
||||
time([[Config for nvim-autopairs]], true)
|
||||
try_loadstring("\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/autopairs\frequire\0", "config", "nvim-autopairs")
|
||||
time([[Config for nvim-autopairs]], false)
|
||||
-- Config for: vim-test
|
||||
time([[Config for vim-test]], true)
|
||||
try_loadstring("\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21plugins/vim-test\frequire\0", "config", "vim-test")
|
||||
time([[Config for vim-test]], false)
|
||||
-- Config for: nvim-dap
|
||||
time([[Config for nvim-dap]], true)
|
||||
try_loadstring("\27LJ\2\n+\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\16plugins/dap\frequire\0", "config", "nvim-dap")
|
||||
time([[Config for nvim-dap]], false)
|
||||
-- Config for: lspkind-nvim
|
||||
time([[Config for lspkind-nvim]], true)
|
||||
try_loadstring("\27LJ\2\n/\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\20plugins/lspkind\frequire\0", "config", "lspkind-nvim")
|
||||
time([[Config for lspkind-nvim]], false)
|
||||
-- Config for: symbols-outline.nvim
|
||||
time([[Config for symbols-outline.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n7\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\28plugins/symbols-outline\frequire\0", "config", "symbols-outline.nvim")
|
||||
time([[Config for symbols-outline.nvim]], false)
|
||||
-- Config for: lualine-lsp-progress
|
||||
time([[Config for lualine-lsp-progress]], true)
|
||||
try_loadstring("\27LJ\2\n<\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0!plugins/lualine-lsp-progress\frequire\0", "config", "lualine-lsp-progress")
|
||||
time([[Config for lualine-lsp-progress]], false)
|
||||
-- Config for: diaglist.nvim
|
||||
time([[Config for diaglist.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21plugins/diaglist\frequire\0", "config", "diaglist.nvim")
|
||||
time([[Config for diaglist.nvim]], false)
|
||||
-- Config for: lualine.nvim
|
||||
time([[Config for lualine.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n/\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\20plugins/lualine\frequire\0", "config", "lualine.nvim")
|
||||
time([[Config for lualine.nvim]], false)
|
||||
-- Config for: lush.nvim
|
||||
time([[Config for lush.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n,\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\17plugins/lush\frequire\0", "config", "lush.nvim")
|
||||
time([[Config for lush.nvim]], false)
|
||||
-- Config for: coq_nvim
|
||||
time([[Config for coq_nvim]], true)
|
||||
try_loadstring("\27LJ\2\n+\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\16plugins/coq\frequire\0", "config", "coq_nvim")
|
||||
time([[Config for coq_nvim]], false)
|
||||
-- Config for: nvim-lint
|
||||
time([[Config for nvim-lint]], true)
|
||||
try_loadstring("\27LJ\2\n,\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\17plugins/lint\frequire\0", "config", "nvim-lint")
|
||||
time([[Config for nvim-lint]], false)
|
||||
-- Config for: nvim-web-devicons
|
||||
time([[Config for nvim-web-devicons]], true)
|
||||
try_loadstring("\27LJ\2\n9\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\30plugins/nvim-web-devicons\frequire\0", "config", "nvim-web-devicons")
|
||||
time([[Config for nvim-web-devicons]], false)
|
||||
-- Config for: trouble.nvim
|
||||
time([[Config for trouble.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n/\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\20plugins/trouble\frequire\0", "config", "trouble.nvim")
|
||||
time([[Config for trouble.nvim]], false)
|
||||
-- Config for: bufferline.nvim
|
||||
time([[Config for bufferline.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n2\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\23plugins/bufferline\frequire\0", "config", "bufferline.nvim")
|
||||
time([[Config for bufferline.nvim]], false)
|
||||
-- Load plugins in order defined by `after`
|
||||
time([[Sequenced loading]], true)
|
||||
vim.cmd [[ packadd nvim-lspconfig ]]
|
||||
|
||||
-- Config for: nvim-lspconfig
|
||||
try_loadstring("\27LJ\2\n1\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\22plugins/lspconfig\frequire\0", "config", "nvim-lspconfig")
|
||||
|
||||
time([[Sequenced loading]], false)
|
||||
|
||||
_G._packer.inside_compile = false
|
||||
if _G._packer.needs_bufread == true then
|
||||
vim.cmd("doautocmd BufRead")
|
||||
end
|
||||
_G._packer.needs_bufread = false
|
||||
|
||||
if should_profile then save_profiles() end
|
||||
|
||||
end)
|
||||
|
||||
if not no_errors then
|
||||
error_msg = error_msg:gsub('"', '\\"')
|
||||
vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
|
||||
end
|
Loading…
Reference in New Issue