First commit

This commit is contained in:
2024-08-14 03:43:41 +04:00
commit 746fa4ff35
15 changed files with 241 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
return {
"briones-gabriel/darcula-solid.nvim",
dependencies = {
"rktjmp/lush.nvim",
},
lazy = false, -- make sure we load this during startup if it is your main colorscheme
priority = 1000, -- make sure to load this before all the other start plugins
config = function()
vim.cmd([[colorscheme darcula-solid]])
end,
}

43
lua/plugins/lualine.lua Normal file
View File

@@ -0,0 +1,43 @@
return {
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
opts = {
options = {
icons_enabled = true,
theme = "powerline",
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
disabled_filetypes = {
statusline = {},
winbar = {},
},
ignore_focus = {},
always_divide_middle = true,
globalstatus = false,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
},
},
sections = {
lualine_a = { "mode" },
lualine_b = { "branch", "diff", "diagnostics" },
lualine_c = { "filename" },
lualine_x = { "encoding", "filetype" },
lualine_z = { "location" },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { "filename" },
lualine_x = { "location" },
lualine_y = {},
lualine_z = {},
},
tabline = {},
winbar = {},
inactive_winbar = {},
extensions = {},
},
}

View File

@@ -0,0 +1,6 @@
return {
"WhoIsSethDaniel/mason-tool-installer.nvim",
opts = {
ensure_installed = require("config.mason-tools-list"),
},
}

6
lua/plugins/mason.lua Normal file
View File

@@ -0,0 +1,6 @@
return {
"williamboman/mason.nvim",
opts = {
ensure_installed = require("config.mason-tools-list"),
},
}

31
lua/plugins/neo-tree.lua Normal file
View File

@@ -0,0 +1,31 @@
local setup = {
source_selector = {
winbar = true, -- toggle to show selector on winbar
statusline = false, -- toggle to show selector on statusline
show_scrolled_off_parent_node = false, -- this will replace the tabs with the parent path
-- of the top visible node when scrolled down.
sources = {
{ source = "filesystem" },
{ source = "buffers" },
{ source = "git_status" },
},
},
}
return {
{
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
},
config = function()
require("neo-tree").setup(setup)
-- Define key mappings here to ensure they are set after the plugin is loaded
vim.api.nvim_set_keymap("n", "<leader>n", "<Cmd>Neotree toggle<CR>", { noremap = true, silent = true })
end,
keys = "<leader>n", -- Optionally specify here to load the plugin on this keypress
},
}

View File

@@ -0,0 +1,19 @@
return {
"stevearc/conform.nvim",
opts = {},
config = function()
require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
python = { "isort", "ruff_format" },
},
})
vim.api.nvim_set_keymap(
"n",
"<Leader>f",
":lua require('conform').format()<CR>",
{ noremap = true, silent = true }
)
end,
keys = "<leader>f", -- Optionally specify here to load the plugin on this keypress
}

19
lua/plugins/nvim-lint.lua Normal file
View File

@@ -0,0 +1,19 @@
return {
"mfussenegger/nvim-lint",
config = function()
local lint = require("lint")
lint.linters_by_ft = {
python = { "ruff", "mypy" },
}
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function()
lint.try_lint()
end,
})
end,
}

10
lua/plugins/telescope.lua Normal file
View File

@@ -0,0 +1,10 @@
return {
"nvim-telescope/telescope.nvim",
tag = "0.1.8",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("telescope").setup({}) -- Define key mappings here to ensure they are set after the plugin is loaded
vim.api.nvim_set_keymap("n", "<leader><C-f>", "<Cmd>Telescope live_grep<CR>", { noremap = true, silent = true })
end,
keys = "<leader><C-f>", -- Optionally specify here to load the plugin on this keypress
}

View File

@@ -0,0 +1,4 @@
return {
"nvim-treesitter/nvim-treesitter-textobjects",
dependencies = { "nvim-treesitter/nvim-treesitter" },
}

View File

@@ -0,0 +1,31 @@
local langs = {
"lua",
"javascript",
"typescript",
"python",
"go",
"html",
"css",
"scss",
"json",
"php",
"tsx",
"sql",
}
return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = langs,
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end,
},
}