transition from specresurs
This commit is contained in:
parent
45eefc9403
commit
68c1b808d4
31
install.sh
31
install.sh
|
@ -1,7 +1,9 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
# need to rewrite in future
|
# need to rewrite in future
|
||||||
sudo apt install npm python3-venv ruby-dev -y
|
sudo apt install -y npm python3-venv ruby-dev pkg-config
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
|
fish_add_path ~/.local/bin
|
||||||
pip3 install --upgrade pynvim
|
pip3 install --upgrade pynvim
|
||||||
sudo gem install neovim
|
sudo gem install neovim
|
||||||
|
|
||||||
|
@ -51,11 +53,11 @@ if test (string match -ri "ru" "$LANG")
|
||||||
case FORMATTER_PRETTIER_INSTALLED
|
case FORMATTER_PRETTIER_INSTALLED
|
||||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[РАБОТА] "; set_color white; echo "Установлен форматировщик Prettier (\"prettier/vim-prettier\")";
|
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[РАБОТА] "; set_color white; echo "Установлен форматировщик Prettier (\"prettier/vim-prettier\")";
|
||||||
case FONT_INSTALL
|
case FONT_INSTALL
|
||||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[ЗАДАЧА] "; set_color white; echo "Установить шрифт "; set_color cyan; echo "FiraCode"; set_color white; echo " ? (y/N) ";
|
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
|
case FONT_INSTALLED
|
||||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[РАБОТА] "; set_color white; echo "Установлен шрифт "; set_color cyan; echo "FiraCode"; set_color white; echo " (выбери его в настройках твоего эмулятора терминала)";
|
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
|
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; echo "FiraCode"; set_color white; echo ")";
|
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
|
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) ";
|
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
|
case FONT_CHOOSE
|
||||||
|
@ -106,11 +108,11 @@ else
|
||||||
case FORMATTER_PRETTIER_INSTALLED
|
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\")";
|
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
|
case FONT_INSTALL
|
||||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color blue; echo -n "[TASK] "; set_color white; echo "Install "; set_color cyan; echo "FiraCode"; set_color white; echo " font ? (y/N) ";
|
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
|
case FONT_INSTALLED
|
||||||
set_color yellow; echo -n "[mirzaev/nvim] "; set_color green; echo -n "[WORK] "; set_color white; echo "Installed "; set_color cyan; echo "FiraCode"; set_color white; echo " font (select it in your terminal emulator settings)";
|
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
|
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; echo "FiraCode"; set_color white; echo ")";
|
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
|
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) ";
|
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
|
case FONT_CHOOSE
|
||||||
|
@ -164,7 +166,7 @@ if test (string match -ri 'y' "$RESPONSE")
|
||||||
# Запрошена установка "bmewburn/vscode-intelephense"
|
# Запрошена установка "bmewburn/vscode-intelephense"
|
||||||
|
|
||||||
# Установка
|
# Установка
|
||||||
npm i intelephense 1> /dev/null 2> /dev/null
|
sudo npm i -g intelephense 1> /dev/null 2> /dev/null
|
||||||
|
|
||||||
print LSP_INTELEPHENSE_INSTALLED
|
print LSP_INTELEPHENSE_INSTALLED
|
||||||
end
|
end
|
||||||
|
@ -177,7 +179,7 @@ if test (string match -ri 'y' "$RESPONSE")
|
||||||
# Запрошена установка "hrsh7th/vscode-langservers-extracted"
|
# Запрошена установка "hrsh7th/vscode-langservers-extracted"
|
||||||
|
|
||||||
# Установка
|
# Установка
|
||||||
npm i vscode-langservers-extracted 1> /dev/null 2> /dev/null
|
sudo npm i -g vscode-langservers-extracted 1> /dev/null 2> /dev/null
|
||||||
|
|
||||||
print LSP_VSCODE-LANGSERVERS_INSTALLED
|
print LSP_VSCODE-LANGSERVERS_INSTALLED
|
||||||
end
|
end
|
||||||
|
@ -190,7 +192,7 @@ if test (string match -ri 'y' "$RESPONSE")
|
||||||
# Запрошена установка "aca/emmet-ls"
|
# Запрошена установка "aca/emmet-ls"
|
||||||
|
|
||||||
# Установка
|
# Установка
|
||||||
npm i emmet-ls 1> /dev/null 2> /dev/null
|
sudo npm i -g emmet-ls 1> /dev/null 2> /dev/null
|
||||||
|
|
||||||
print LSP_EMMET_INSTALLED
|
print LSP_EMMET_INSTALLED
|
||||||
end
|
end
|
||||||
|
@ -203,7 +205,7 @@ if test (string match -ri 'y' "$RESPONSE")
|
||||||
# Запрошена установка "antonk52/cssmodules-language-server"
|
# Запрошена установка "antonk52/cssmodules-language-server"
|
||||||
|
|
||||||
# Установка
|
# Установка
|
||||||
npm i cssmodules-language-server 1> /dev/null 2> /dev/null
|
sudo npm i -g cssmodules-language-server 1> /dev/null 2> /dev/null
|
||||||
|
|
||||||
print LSP_CSSMODULES_INSTALLED
|
print LSP_CSSMODULES_INSTALLED
|
||||||
end
|
end
|
||||||
|
@ -252,7 +254,7 @@ if test (string match -ri 'y' "$RESPONSE")
|
||||||
# Запрошена установка "vasilevich/nginxbeautifier"
|
# Запрошена установка "vasilevich/nginxbeautifier"
|
||||||
|
|
||||||
# Установка
|
# Установка
|
||||||
npm i nginxbeautifier 1> /dev/null 2> /dev/null
|
sudo npm i -g nginxbeautifier 1> /dev/null 2> /dev/null
|
||||||
|
|
||||||
print FORMATTER_NGINX_INSTALLED
|
print FORMATTER_NGINX_INSTALLED
|
||||||
end
|
end
|
||||||
|
@ -265,7 +267,8 @@ if test (string match -ri 'y' "$RESPONSE")
|
||||||
# Accepted installation of "prettier/vim-prettier"
|
# Accepted installation of "prettier/vim-prettier"
|
||||||
|
|
||||||
npm i prettier 1> /dev/null 2> /dev/null
|
npm i prettier 1> /dev/null 2> /dev/null
|
||||||
G
|
sudo npm i -g prettier 1> /dev/null 2> /dev/null
|
||||||
|
|
||||||
print FORMATTER_PRETTIER_INSTALLED
|
print FORMATTER_PRETTIER_INSTALLED
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -286,7 +289,7 @@ if test (string match -ri 'y' "$RESPONSE")
|
||||||
|
|
||||||
print FONT_INSTALLED
|
print FONT_INSTALLED
|
||||||
|
|
||||||
if (type -q dconf)
|
if type -q dconf
|
||||||
# GNOME
|
# GNOME
|
||||||
|
|
||||||
# if (string match (lsb_release -i | grep -Po '[^\s]*$') Ubuntu))
|
# if (string match (lsb_release -i | grep -Po '[^\s]*$') Ubuntu))
|
||||||
|
|
|
@ -30,6 +30,7 @@ vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist, { noremap = true, sil
|
||||||
lspconfig_on_attach = function(client, bufnr)
|
lspconfig_on_attach = function(client, bufnr)
|
||||||
-- Активация завершения
|
-- Активация завершения
|
||||||
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
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.declaration, { noremap = true, silent = true, buffer = bufnr })
|
||||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { noremap = true, silent = true, buffer = bufnr })
|
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { noremap = true, silent = true, buffer = bufnr })
|
||||||
|
|
|
@ -71,7 +71,7 @@ return require('packer').startup(function(use)
|
||||||
-- Интерфейс строки буфера файлов
|
-- Интерфейс строки буфера файлов
|
||||||
use {
|
use {
|
||||||
'akinsho/bufferline.nvim',
|
'akinsho/bufferline.nvim',
|
||||||
tag = "v3.*",
|
-- tag = "v3.*",
|
||||||
requires = 'nvim-tree/nvim-web-devicons',
|
requires = 'nvim-tree/nvim-web-devicons',
|
||||||
config = function() require('plugins/bufferline') end
|
config = function() require('plugins/bufferline') end
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ return require('packer').startup(function(use)
|
||||||
-- Интерфейс древовидной структуры файлов
|
-- Интерфейс древовидной структуры файлов
|
||||||
use {
|
use {
|
||||||
'nvim-neo-tree/neo-tree.nvim',
|
'nvim-neo-tree/neo-tree.nvim',
|
||||||
branch = 'v2.x',
|
-- branch = 'v2.x',
|
||||||
requires = {
|
requires = {
|
||||||
'nvim-lua/plenary.nvim',
|
'nvim-lua/plenary.nvim',
|
||||||
'kyazdani42/nvim-web-devicons',
|
'kyazdani42/nvim-web-devicons',
|
||||||
|
@ -137,7 +137,7 @@ return require('packer').startup(function(use)
|
||||||
-- Интерфейс для поиска
|
-- Интерфейс для поиска
|
||||||
use {
|
use {
|
||||||
'nvim-telescope/telescope.nvim',
|
'nvim-telescope/telescope.nvim',
|
||||||
tag = '0.1.1',
|
-- tag = '0.1.1',
|
||||||
config = function() require('plugins/telescope') end
|
config = function() require('plugins/telescope') end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,6 +181,8 @@ return require('packer').startup(function(use)
|
||||||
-- Форматировщик Prettier
|
-- Форматировщик Prettier
|
||||||
use {
|
use {
|
||||||
'prettier/vim-prettier',
|
'prettier/vim-prettier',
|
||||||
|
branch = 'master',
|
||||||
|
-- run = 'sudo npm i -g',
|
||||||
run = 'yarn install --frozen-lockfile --production'
|
run = 'yarn install --frozen-lockfile --production'
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -26,7 +26,9 @@ vim.opt_local.wrap = true
|
||||||
vim.opt_local.cursorcolumn = 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-^>)
|
-- Добавление ru_RU (переключать через <c-^>)
|
||||||
vim.opt.keymap = 'russian-jcukenwin'
|
vim.opt.keymap = 'russian-jcukenwin'
|
||||||
|
|
Loading…
Reference in New Issue