add
This commit is contained in:
5
nvim/lua/config/binds.lua
Normal file
5
nvim/lua/config/binds.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
vim.keymap.set('n', 'mn', ':Neotree dir=./', { desc = "Open NeoTree" })
|
||||
vim.keymap.set('n', 'mt', ':ToggleTerm size=15', { desc = "Terminal" })
|
||||
|
||||
|
||||
|
||||
12
nvim/lua/config/lazy.lua
Normal file
12
nvim/lua/config/lazy.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
{ import = "plugins" },
|
||||
},
|
||||
checker = {
|
||||
enabled = true,
|
||||
notify = false,
|
||||
},
|
||||
})
|
||||
|
||||
39
nvim/lua/config/options.lua
Normal file
39
nvim/lua/config/options.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
-- Нумерация строки
|
||||
vim.opt.number = true
|
||||
|
||||
-- Табуляция
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.expandtab = true
|
||||
|
||||
-- Подсветка текущей строки
|
||||
vim.opt.cursorline = true
|
||||
|
||||
-- Прокрутка
|
||||
vim.opt.scrolloff = 5
|
||||
vim.opt.sidescrolloff = 5
|
||||
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars = {
|
||||
tab = '→ ',
|
||||
trail = '·',
|
||||
nbsp = '␣',
|
||||
extends = '❯',
|
||||
precedes = '❮'
|
||||
}
|
||||
vim.opt.fillchars = { eob = " " }
|
||||
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
vim.opt.incsearch = true
|
||||
vim.opt.hlsearch = true
|
||||
vim.opt.wrapscan = true
|
||||
vim.opt.inccommand = "split"
|
||||
|
||||
-- Выкл netrw для nvim-tree
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
vim.g.barbar_auto_setup = false
|
||||
|
||||
9
nvim/lua/plugins/alpha.lua
Normal file
9
nvim/lua/plugins/alpha.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
{
|
||||
'goolord/alpha-nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require'alpha'.setup(require'alpha.themes.startify'.config)
|
||||
end
|
||||
},
|
||||
}
|
||||
8
nvim/lua/plugins/autoclose.lua
Normal file
8
nvim/lua/plugins/autoclose.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
{
|
||||
"m4xshen/autoclose.nvim",
|
||||
config = function()
|
||||
require("autoclose").setup()
|
||||
end
|
||||
},
|
||||
}
|
||||
17
nvim/lua/plugins/barbar.lua
Normal file
17
nvim/lua/plugins/barbar.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
{
|
||||
"romgrk/barbar.nvim",
|
||||
config = function()
|
||||
require('barbar').setup({
|
||||
animation = true,
|
||||
auto_hide = true,
|
||||
tabpages = true,
|
||||
clickable = true,
|
||||
focus_on_close = 'left',
|
||||
highlight_alternate = false,
|
||||
highlight_inactive_file_icons = false,
|
||||
highlight_visible = true,
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
34
nvim/lua/plugins/base16.lua
Normal file
34
nvim/lua/plugins/base16.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
{
|
||||
"RRethy/base16-nvim",
|
||||
config = function()
|
||||
require('base16-colorscheme').setup({
|
||||
base00 = '#1d1d1d',
|
||||
base01 = '#2a2a2a',
|
||||
base02 = '#303030',
|
||||
base03 = '#606060', -- comments 383838
|
||||
base04 = '#9a9996',
|
||||
base05 = '#c0bfbc',
|
||||
base06 = '#deddda',
|
||||
base07 = '#f6f5f4',
|
||||
base08 = '#ed333b',
|
||||
base09 = '#ff7800',
|
||||
base0A = '#ffa348',
|
||||
base0B = '#57e389',
|
||||
base0C = '#5bc8af',
|
||||
base0D = '#62a0ea',
|
||||
base0E = '#dc8add',
|
||||
base0F = '#f66151',
|
||||
})
|
||||
require('base16-colorscheme').with_config({
|
||||
telescope = true,
|
||||
indentblankline = true,
|
||||
notify = true,
|
||||
ts_rainbow = true,
|
||||
cmp = true,
|
||||
illuminate = true,
|
||||
dapui = true,
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
8
nvim/lua/plugins/colorizer.lua
Normal file
8
nvim/lua/plugins/colorizer.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
{
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
config = function()
|
||||
require'colorizer'.setup()
|
||||
end
|
||||
},
|
||||
}
|
||||
9
nvim/lua/plugins/lsp.lua
Normal file
9
nvim/lua/plugins/lsp.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
require'lspconfig'.nil_ls.setup{}
|
||||
end
|
||||
},
|
||||
{ "LuaLS/lua-language-server" }
|
||||
}
|
||||
67
nvim/lua/plugins/lualine.lua
Normal file
67
nvim/lua/plugins/lualine.lua
Normal file
@@ -0,0 +1,67 @@
|
||||
return {
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
globalstatus = true,
|
||||
icons_enabled = true,
|
||||
always_divide_middle = true,
|
||||
theme = 'base16',
|
||||
component_separators = { left = '', right = '', },
|
||||
section_separators = {left = '', right = '', },
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {
|
||||
{
|
||||
"mode",
|
||||
separator = { left = "", right = "" },
|
||||
padding = 1,
|
||||
},
|
||||
},
|
||||
lualine_b = {
|
||||
{
|
||||
"diagnostics",
|
||||
separator = { right = "" },
|
||||
color = { bg = "#404040" },
|
||||
padding = 1.2,
|
||||
sections = {
|
||||
"error",
|
||||
"warn",
|
||||
"hint",
|
||||
},
|
||||
},
|
||||
},
|
||||
lualine_c = {
|
||||
'buffers',
|
||||
'diff'
|
||||
},
|
||||
lualine_x = {
|
||||
'encoding',
|
||||
'progress'
|
||||
},
|
||||
lualine_y = {
|
||||
{
|
||||
'fileformat',
|
||||
separator = { left = "", right = "" },
|
||||
padding = 1.2,
|
||||
},
|
||||
{
|
||||
'hostname',
|
||||
padding = {
|
||||
left = 0.1,
|
||||
right = 1.8,
|
||||
},
|
||||
},
|
||||
{
|
||||
'lsp_status',
|
||||
padding = 2,
|
||||
},
|
||||
},
|
||||
lualine_z = {''},
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
12
nvim/lua/plugins/neotree.lua
Normal file
12
nvim/lua/plugins/neotree.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
lazy = false,
|
||||
},
|
||||
}
|
||||
20
nvim/lua/plugins/noice.lua
Normal file
20
nvim/lua/plugins/noice.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
return {
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"rcarriga/nvim-notify",
|
||||
},
|
||||
config = function()
|
||||
require("noice").setup({
|
||||
notify = {
|
||||
enabled = false,
|
||||
},
|
||||
messages = {
|
||||
enabled = false,
|
||||
},
|
||||
})
|
||||
end
|
||||
},
|
||||
}
|
||||
8
nvim/lua/plugins/telescope.lua
Normal file
8
nvim/lua/plugins/telescope.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
config = function()
|
||||
require('telescope').setup()
|
||||
end
|
||||
},
|
||||
}
|
||||
10
nvim/lua/plugins/toggleterm.lua
Normal file
10
nvim/lua/plugins/toggleterm.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
{
|
||||
"akinsho/toggleterm.nvim",
|
||||
version = "*",
|
||||
config = true,
|
||||
config = function()
|
||||
require('toggleterm').setup()
|
||||
end
|
||||
},
|
||||
}
|
||||
29
nvim/lua/plugins/treesitter.lua
Normal file
29
nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
return {
|
||||
{ "nvim-treesitter/nvim-treesitter",
|
||||
branch = 'master',
|
||||
lazy = false,
|
||||
build = ":TSUpdate",
|
||||
config = function()
|
||||
require'nvim-treesitter.configs'.setup({
|
||||
ensure_installed = {
|
||||
"nix",
|
||||
"yuck",
|
||||
"css",
|
||||
"scss",
|
||||
"javascript",
|
||||
"go",
|
||||
"json",
|
||||
"lua",
|
||||
"c",
|
||||
"cpp",
|
||||
},
|
||||
auto_install = true,
|
||||
ignore_install = {},
|
||||
hightlight = {
|
||||
enable = true,
|
||||
disable = {},
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
3
nvim/lua/plugins/yuck.lua
Normal file
3
nvim/lua/plugins/yuck.lua
Normal file
@@ -0,0 +1,3 @@
|
||||
return {
|
||||
{ "elkowar/yuck.vim" }
|
||||
}
|
||||
Reference in New Issue
Block a user