init commit

This commit is contained in:
Aditya Gupta
2026-06-19 16:51:18 +05:30
commit 16434d2dbc
14 changed files with 380 additions and 0 deletions

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

@@ -0,0 +1,21 @@
-- ================================================================================================
-- TITLE : lualine.nvim
-- LINKS :
-- > github : https://github.com/nvim-lualine/lualine.nvim
-- ABOUT : A blazing fast and easy to configure Neovim statusline written in Lua.
-- ================================================================================================
return {
"nvim-lualine/lualine.nvim",
config = function()
require("lualine").setup({
options = {
-- theme = "melange",
icons_enabled = true,
section_separators = { left = "", right = "" },
component_separators = "|",
},
})
end,
dependencies = { "nvim-tree/nvim-web-devicons" },
}

13
lua/plugins/mini-nvim.lua Normal file
View File

@@ -0,0 +1,13 @@
return {
{"nvim-mini/mini.ai", version = "*", opts = {}},
{"nvim-mini/mini.comment", version = "*", opts = {}},
{"nvim-mini/mini.move", version = "*", opts = {}},
{"nvim-mini/mini.cursorword", version = "*", opts= {}},
{ 'nvim-mini/mini.bracketed', version = '*' },
{ 'nvim-mini/mini.surround', version = '*' },
{ 'nvim-mini/mini.pairs', version = '*' },
{ 'nvim-mini/mini.indentscope', version = '*' },
{ 'nvim-mini/mini.trailspace', version = '*' },
{ 'nvim-mini/mini.tabline', version = '*' },
}

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

@@ -0,0 +1,19 @@
return {
"nvim-tree/nvim-tree.lua",
version = "*",
lazy = false,
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
-- vim.cmd([[hi NvimTreeNormal guibg=NONE ctermbd=NONE]])
require("nvim-tree").setup {
filters= {
dotfiles = false,
},
view = {
adaptive_size = true,
}
}
end,
}

View File

@@ -0,0 +1 @@
return { 'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release --target install' }

View File

@@ -0,0 +1,8 @@
return {
'nvim-telescope/telescope.nvim', version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
-- optional but recommended
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
}
}

View File

@@ -0,0 +1,61 @@
return {
"nvim-treesitter/nvim-treesitter",
branch = "main",
build = ":TSUpdate",
event = { "BufReadPost", "BufNewFile" },
lazy = false,
config = function()
local treesitter = require("nvim-treesitter")
treesitter.setup({})
local ensure_installed = {
"lua",
"python",
"bash",
"typescript",
"javascript",
"html",
"css",
"json",
"yaml",
"go",
"markdown",
"dockerfile",
"markdown_inline",
"c",
"cpp",
"vue",
"rust",
"java",
"regex",
"svelte",
"tsx",
"xml",
"astro"
}
local config = require("nvim-treesitter.config")
local already_installed = config.get_installed()
local parsers_to_install = {}
for _, parser in ipairs(ensure_installed) do
if not vim.tbl_contains(already_installed, parser) then
table.insert(parsers_to_install, parser)
end
end
if #parsers_to_install > 0 then
treesitter.install(parsers_to_install)
end
local group = vim.api.nvim_create_augroup("TreeSitterConfig", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
group = group,
callback = function(args)
if vim.list_contains(treesitter.get_installed(), vim.treesitter.language.get_lang(args.match)) then
vim.treesitter.start(args.buf)
end
end,
})
end,
}

View File

@@ -0,0 +1,3 @@
return {"nvim-tree/nvim-web-devicons", opts={}}