Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bce2815847 | |||
| eb72445d5c |
37
install.sh
37
install.sh
@@ -166,16 +166,51 @@ if set -q _flag_update
|
||||
fnm install $NODEJS_VERSION
|
||||
|
||||
# need to rewrite in the future (бляяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяяя)
|
||||
sudo apt install -y npm python3-venv python3-pip rubygems ruby-dev pkg-config lua5.4 luarocks
|
||||
sudo apt install -y npm universal-ctags python3-venv python3-pip rubygems ruby-dev pkg-config lua5.4 luarocks
|
||||
python3 -m pip install --upgrade pip
|
||||
pip install --upgrade pynvim
|
||||
sudo gem install neovim
|
||||
|
||||
# Install NeoVim module for NPM
|
||||
npm i -g neovim
|
||||
npm i -g tree-sitter-cli
|
||||
npm i -g yarn
|
||||
end &> $output
|
||||
end
|
||||
|
||||
sudo apt install -y build-essential flex bison libisl-dev texinfo texlive
|
||||
|
||||
# mkdir ~/src
|
||||
|
||||
# cd ~/src
|
||||
# wget https://ftp.gnu.org/gnu/binutils/binutils-2.45.1.tar.xz
|
||||
# tar -xf binutils-2.45.1.tar.xz
|
||||
# cd binutils-2.45.1
|
||||
# mkdir build
|
||||
# cd build
|
||||
# ../configure --prefix=/usr/local --target=x86_64-elf --program-prefix=x86_64-elf-
|
||||
# make all
|
||||
# sudo make install
|
||||
|
||||
# cd ~/src
|
||||
# wget http://ftp.gnu.org/gnu/gcc/gcc-14.1.0/gcc-14.1.0.tar.gz
|
||||
# tar -xf gcc-14.1.0.tar.gz
|
||||
# cd gcc-14.1.0
|
||||
# mkdir build
|
||||
# cd build
|
||||
# ../configure -v --build=$(uname -m)-linux-gnu --host=$(uname -m)-linux-gnu --target=$(uname -m)-linux-gnu --prefix=/usr/local/gcc-14.1.0 --enable-checking=release --enable-languages=c,c++ --disable-multilib --program-suffix=-14.1.0
|
||||
# make
|
||||
# sudo make install
|
||||
# sudo update-alternatives --install /usr/bin/g++ g++ /usr/local/gcc-14.1.0/bin/g++-14.1.0 14
|
||||
# sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/gcc-14.1.0/bin/gcc-14.1.0 14
|
||||
|
||||
# # git clone git://sourceware.org/git/glibc.git
|
||||
# git clone https://github.com/bminor/glibc
|
||||
# cd glibc
|
||||
# mkdir build
|
||||
# cd build
|
||||
# ../configure --disable-sanity-checks
|
||||
|
||||
# Initializing the virtual environment for Python packages
|
||||
python3 -m venv ~/.local --system-site-packages
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"coq.thirdparty": { "branch": "3p", "commit": "2bd969a2bcd2624f9c260b1000957c7e665e308e" },
|
||||
"coq_nvim": { "branch": "coq", "commit": "d8b71757358038fa151fb45c493c3a1e8c3629a3" },
|
||||
"diaglist.nvim": { "branch": "master", "commit": "8aba9fcf62cc60e1d5ce941faedecc399d9a1e8b" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "e32b672d8fd343f9d6a76944fedb8c61d7d8111a" },
|
||||
"fidget.nvim": { "branch": "main", "commit": "64463022a1f2ff1318ab22a2ea4125ed9313a483" },
|
||||
"flexoki": { "branch": "main", "commit": "079554c242a86be5d1a95598c7c6368d6eedd7a3" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "5813e4878748805f1518cee7abb50fd7205a3a48" },
|
||||
"jsctags": { "branch": "master", "commit": "22d3fb848c429d4704dc3a8946bc3a4423a8e4a4" },
|
||||
@@ -19,23 +19,23 @@
|
||||
"nginx.vim": { "branch": "master", "commit": "cffaec54f0c7f9518de053634413a20e90eac825" },
|
||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "c2a0dd0d931d0fb07665e1fedb1ea688da3b80b4" },
|
||||
"nvim-dap": { "branch": "master", "commit": "5860c7c501eb428d3137ee22c522828d20cca0b3" },
|
||||
"nvim-dap": { "branch": "master", "commit": "818cd8787a77a97703eb1d9090543a374f79a9ac" },
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "cf91d5e2d07c72903d052f5207511bf7ecdb7122" },
|
||||
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
|
||||
"nvim-lint": { "branch": "master", "commit": "c47b71d146a0b638f46672e6704c322369385df6" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "c4f67bf85b01a57e3c130352c0a0e453ab8cd5b9" },
|
||||
"nvim-lint": { "branch": "master", "commit": "8a6aae10d15069c952428fa6bebf82c2d164b502" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "5eeb45c8c469b84777a5bd8796b698c8a1c780a7" },
|
||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||
"nvim-treesitter": { "branch": "main", "commit": "4fc09bee78e91bf4ba471cdab4bf9dfa37fde51c" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" },
|
||||
"nvim-treesitter": { "branch": "main", "commit": "6e42d823ce0a5a76180c473c119c7677738a09d1" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "6788013bb9cb784e606ada44206b0e755e4323d7" },
|
||||
"phpctags": { "branch": "master", "commit": "5ed731eb86227d416977b0a1fd06e77e58363818" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"reticle.nvim": { "branch": "main", "commit": "66bfa2b1c28fd71bb8ae4e871e0cd9e9c509ea86" },
|
||||
"tagbar": { "branch": "master", "commit": "7bfffca1f121afb7a9e38747500bf5270e006bb1" },
|
||||
"telescope-dap.nvim": { "branch": "master", "commit": "783366bd6c1e7fa0a5c59c07db37f49c805a28df" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "3d757e586ff0bfc85bdb7b46c9d3d932147a0cde" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "e709d31454ee6e6157f0537f861f797bd44c0bad" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
|
||||
"vim-fish": { "branch": "master", "commit": "50b95cbbcd09c046121367d49039710e9dc9c15f" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },
|
||||
"vim-signify": { "branch": "master", "commit": "9ec7989ef5f92c5073de26abb46fc6a998b75ef8" },
|
||||
"vim-test": { "branch": "master", "commit": "1eeb12774a0f251571700ccf68da27789b2f0852" }
|
||||
"vim-test": { "branch": "master", "commit": "aa619692ff48a3cf3e6bdb893765039488d4e5f3" }
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
{
|
||||
"workspace.library": [
|
||||
"/home/mirzaev/.config/nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/bufferline.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/coq.artifacts",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/coq.thirdparty",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/coq_nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/diaglist.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/fidget.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/gitsigns.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/kommentary",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/lsp-colors.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/lspkind-nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/lualine-lsp-progress",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/lush.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/neo-tree.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/nginx.vim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/nui.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-dap",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-lint",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/phpctags",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/tagbar",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/trouble.nvim",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-fish",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-fugitive",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-prettier",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-signify",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/start/vim-test",
|
||||
"/home/mirzaev/.local/share/nvim/site/pack/packer/opt/nvim-lspconfig",
|
||||
"/snap/nvim/2789/usr/share/nvim/runtime",
|
||||
"/snap/nvim/2789/usr/share/nvim/runtime/pack/dist/opt/matchit",
|
||||
"${3rd}/luassert/library",
|
||||
"${3rd}/luv/library"
|
||||
]
|
||||
}
|
||||
@@ -6,7 +6,7 @@ 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 (not (vim.diff(vim.inspect(vim.lsp.buf_get_clients()), '{}') == '')) then
|
||||
elseif (not (vim.diff(vim.inspect(vim.lsp.get_clients()), '{}') == '')) then
|
||||
-- LSP-server clients is ready
|
||||
|
||||
vim.lsp.buf.format { async = true }
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
-- Offset
|
||||
vim.keymap.set({'i', 'v', 't'}, '<tab>', '>', {noremap = true, silent = true})
|
||||
vim.keymap.set({'i', 'v', 't'}, '<s-tab>', '<', {noremap = true, silent = true})
|
||||
vim.keymap.set({'i'}, '<tab>', '<cmd>><cr>', {noremap = true, silent = true})
|
||||
vim.keymap.set({'i'}, '<s-tab>', '<cmd><<cr>', {noremap = true, silent = true})
|
||||
vim.keymap.set({'v', 't'}, '<tab>', '>', {noremap = true, silent = true})
|
||||
vim.keymap.set({'v', 't'}, '<s-tab>', '<', {noremap = true, silent = true})
|
||||
|
||||
-- Disabling arrows
|
||||
vim.keymap.set({'n', 'i', 'v', 't'}, '<left>', '', {noremap = true, silent = true})
|
||||
|
||||
@@ -1,3 +1,32 @@
|
||||
-- stylua: ignore
|
||||
local colors = {
|
||||
blue = '#80a0ff',
|
||||
cyan = '#79dac8',
|
||||
black = '#080808',
|
||||
white = '#c6c6c6',
|
||||
red = '#ff5189',
|
||||
violet = '#d183e8',
|
||||
grey = '#303030',
|
||||
}
|
||||
|
||||
local bubbles_theme = {
|
||||
normal = {
|
||||
a = { fg = colors.black, bg = colors.violet },
|
||||
b = { fg = colors.white, bg = colors.grey },
|
||||
c = { fg = colors.white },
|
||||
},
|
||||
|
||||
insert = { a = { fg = colors.black, bg = colors.blue } },
|
||||
visual = { a = { fg = colors.black, bg = colors.cyan } },
|
||||
replace = { a = { fg = colors.black, bg = colors.red } },
|
||||
|
||||
inactive = {
|
||||
a = { fg = colors.white, bg = colors.black },
|
||||
b = { fg = colors.white, bg = colors.black },
|
||||
c = { fg = colors.white },
|
||||
},
|
||||
}
|
||||
|
||||
-- A blazing fast and easy to configure
|
||||
-- neovim statusline plugin written in pure lua
|
||||
-- @todo навести порядок
|
||||
@@ -16,7 +45,9 @@ return {
|
||||
-- A Git wrapper so awesome, it should be illegal
|
||||
{ 'tpope/vim-fugitive' }
|
||||
},
|
||||
opts = {
|
||||
config = function()
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'auto',
|
||||
component_separators = { left = '', right = ''},
|
||||
@@ -49,21 +80,11 @@ return {
|
||||
}
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {
|
||||
'mode',
|
||||
icons_enabled = true,
|
||||
icon = nil,
|
||||
separator = nil,
|
||||
cond = nil,
|
||||
color = nil,
|
||||
--type = var(g:coc_status/bo:modifiable),
|
||||
padding = 1,
|
||||
fmt = nil,
|
||||
on_click = nil,
|
||||
},
|
||||
lualine_a = {'mode'},
|
||||
lualine_b = {'branch', 'diff'},
|
||||
lualine_c = {'filename', 'lsp_progress'},
|
||||
lualine_x = { FugitiveStatusline, 'encoding', 'fileformat', 'filetype'},
|
||||
lualine_x = { 'encoding', 'fileformat', 'filetype'},
|
||||
-- lualine_x = { FugitiveStatusline, 'encoding', 'fileformat', 'filetype'},
|
||||
-- lualine_x = { FugitiveHead, 'encoding', 'fileformat', 'filetype'},
|
||||
lualine_y = {'progress'},
|
||||
lualine_z = {'location'}
|
||||
@@ -84,22 +105,24 @@ return {
|
||||
'nvim-dap-ui',
|
||||
'trouble',
|
||||
'neo-tree'
|
||||
},
|
||||
-- config = function()
|
||||
-- local trouble = require("trouble")
|
||||
-- local symbols = trouble.statusline({
|
||||
-- mode = "lsp_document_symbols",
|
||||
-- groups = {},
|
||||
-- title = false,
|
||||
-- filter = { range = true },
|
||||
-- format = "{kind_icon}{symbol.name:Normal}",
|
||||
-- -- The following line is needed to fix the background color
|
||||
-- -- Set it to the lualine section you want to use
|
||||
-- hl_group = "lualine_c_normal",
|
||||
-- })
|
||||
-- table.insert(opts.sections.lualine_c, {
|
||||
-- symbols.get,
|
||||
-- cond = symbols.has,
|
||||
-- })
|
||||
-- end
|
||||
}
|
||||
}
|
||||
--[[ config = function()
|
||||
local trouble = require("trouble")
|
||||
local symbols = trouble.statusline({
|
||||
mode = "lsp_document_symbols",
|
||||
groups = {},
|
||||
title = false,
|
||||
filter = { range = true },
|
||||
format = "{kind_icon}{symbol.name:Normal}",
|
||||
-- The following line is needed to fix the background color
|
||||
-- Set it to the lualine section you want to use
|
||||
hl_group = "lualine_c_normal",
|
||||
})
|
||||
table.insert(opts.sections.lualine_c, {
|
||||
symbols.get,
|
||||
cond = symbols.has,
|
||||
})
|
||||
end ]]
|
||||
end
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ return {
|
||||
lazy = false,
|
||||
priority = 110,
|
||||
opts = {
|
||||
override = {},
|
||||
color_icons = true,
|
||||
default = true,
|
||||
strict = true
|
||||
|
||||
@@ -4,5 +4,73 @@ return {
|
||||
'tummetott/reticle.nvim',
|
||||
enabled = true,
|
||||
lazy = true,
|
||||
event = 'VeryLazy'
|
||||
event = 'VeryLazy',
|
||||
opts = {
|
||||
-- Enable/Disable the cursorline and/or cursorcolumn at startup
|
||||
on_startup = {
|
||||
cursorline = true,
|
||||
cursorcolumn = false,
|
||||
},
|
||||
|
||||
-- Disable the cursorline and cursorcolumn in insert mode
|
||||
disable_in_insert = false,
|
||||
|
||||
-- Disable the cursorline and cursorcolumn in diff mode
|
||||
disable_in_diff = false,
|
||||
|
||||
-- By default, nvim highlights the cursorline number only when the
|
||||
-- cursorline setting is active. Enabling this setting ensures that the
|
||||
-- cursorline number in every window is always highlighted, regardless of
|
||||
-- the cursorline setting. See: ':h cursorlineopt'
|
||||
always_highlight_number = false,
|
||||
|
||||
-- Cursorline and/or cursorcolumn are set to be displayed exclusively in
|
||||
-- the active window, thus following your active window. This setting is
|
||||
-- overruled by the following settings concerning special filetypes.
|
||||
follow = {
|
||||
cursorline = true,
|
||||
cursorcolumn = true,
|
||||
},
|
||||
|
||||
-- Specify filetypes where the cursorline and/or cursorcolumn are always
|
||||
-- enabled, regardless of the global setting.
|
||||
always = {
|
||||
cursorline = {},
|
||||
cursorcolumn = {},
|
||||
},
|
||||
|
||||
-- Specify filetypes where the cursorline and/or cursorcolumn are always
|
||||
-- enabled when the window is focused, regardless of the global setting.
|
||||
on_focus = {
|
||||
cursorline = {},
|
||||
cursorcolumn = {},
|
||||
},
|
||||
|
||||
-- Define filetypes which are ignored by the plugin
|
||||
ignore = {
|
||||
cursorline = {
|
||||
'DressingInput',
|
||||
'FTerm',
|
||||
'NvimSeparator',
|
||||
'NvimTree',
|
||||
'neo-tree',
|
||||
'TelescopePrompt',
|
||||
'Trouble',
|
||||
},
|
||||
cursorcolumn = {
|
||||
'neo-tree',
|
||||
},
|
||||
},
|
||||
|
||||
-- Specify filetypes where the cursorline and/or cursorcolumn should be
|
||||
-- explicitly disabled. Typically, you would include these filetypes in
|
||||
-- the 'ignored' table. However, there are situations where plugins enable
|
||||
-- cursorline/cursorcolumn without offering a configuration option for
|
||||
-- disabling them. By adding these filetypes to the 'never' table, you
|
||||
-- can override the plugin's settings and turn off these features.
|
||||
never = {
|
||||
cursorline = {},
|
||||
cursorcolumn = {},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,10 +5,10 @@ return {
|
||||
enabled = true,
|
||||
lazy = true,
|
||||
keys = {
|
||||
{ '<c-f>', '<cmd>Telescope find_files', mode = { 'n', 'i', 'v', 't' }, desc = 'Telescope find', noremap = true, silent = true },
|
||||
{ '<c-F>', '<cmd>Telescope live_grep', mode = { 'n', 'i', 'v', 't' }, desc = 'Telescope grep', noremap = true, silent = true },
|
||||
{ '<leader><s-tab>', '<cmd>Telescope buffers', mode = { 'n', 'i', 'v', 't' }, desc = 'Telescope buffers', noremap = true, silent = true },
|
||||
{ '<leader>?', '<cmd>Telescope help_tags', mode = { 'n', 'i', 'v', 't' }, desc = 'Telescope help', noremap = true, silent = true },
|
||||
{ '<c-f>', '<cmd>Telescope find_files<cr>', mode = { 'n', 'i', 'v', 't' }, desc = 'Telescope find', noremap = true, silent = true },
|
||||
{ '<c-g>', '<cmd>Telescope live_grep<cr>', mode = { 'n', 'i', 'v', 't' }, desc = 'Telescope grep', noremap = true, silent = true },
|
||||
{ '<leader><s-tab>', '<cmd>Telescope buffers<cr>', mode = { 'n', 'i', 'v', 't' }, desc = 'Telescope buffers', noremap = true, silent = true },
|
||||
{ '<leader>?', '<cmd>Telescope help_tags<cr>', mode = { 'n', 'i', 'v', 't' }, desc = 'Telescope help', noremap = true, silent = true },
|
||||
},
|
||||
dependencies = {
|
||||
-- Functions for Telescope
|
||||
|
||||
@@ -4,11 +4,16 @@
|
||||
return {
|
||||
'folke/trouble.nvim',
|
||||
enabled = true,
|
||||
lazy = true,
|
||||
lazy = false,
|
||||
cmd = 'Trouble',
|
||||
keys = {
|
||||
{ '<f3>', '<cmd>Trouble diagnostics toggle<cr>', mode = { 'n', 'i', 'v', 't' }, desc = 'Diagnostics (Trouble)', noremap = true, silent = true },
|
||||
},
|
||||
opts = {},
|
||||
config = function() end
|
||||
dependencies = {
|
||||
-- Nvim Treesitter configurations and abstraction layer
|
||||
{ 'nvim-treesitter/nvim-treesitter' },
|
||||
|
||||
-- Provides Nerd Font icons (glyphs) for use by neovim plugins
|
||||
{ 'nvim-tree/nvim-web-devicons' }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user