initial commit

This commit is contained in:
Ifrahim Ansari 2026-02-15 11:10:32 -05:00
commit 6491e91ec5
37 changed files with 1116 additions and 0 deletions

View file

@ -0,0 +1,21 @@
return {
"stevearc/conform.nvim",
opts = {
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
},
formatters_by_ft = {
nginx = { "nginx-config-formatter" },
kdl = { "kdlfmt" },
lua = { "stylua" },
-- Conform will run multiple formatters sequentially
python = { "isort", "black" },
-- You can customize some of the format options for the filetype (:help conform.format)
rust = { "rustfmt", lsp_format = "fallback" },
-- Conform will run the first available formatter
javascript = { "prettierd", "prettier", stop_after_first = true },
},
},
}

View file

@ -0,0 +1,6 @@
return {
"sphamba/smear-cursor.nvim",
opts = {
legacy_computing_symbols_support = true,
},
}

View file

@ -0,0 +1,11 @@
return {
'sainnhe/everforest',
lazy = false,
priority = 1000,
config = function()
-- Optionally configure and load the colorscheme
-- directly inside the plugin declaration.
vim.g.everforest_enable_italic = true
vim.cmd.colorscheme('everforest')
end
}

View file

@ -0,0 +1,17 @@
local highlight = { "CursorColumn", "Whitespace" }
return {
"lukas-reineke/indent-blankline.nvim",
main = "ibl",
opts = {
indent = {
highlight = { "CursorColumn", "Whitespace" },
char = "",
},
whitespace = {
highlight = { "CursorColumn", "Whitespace" },
remove_blankline_trail = false,
},
scope = { enabled = false },
},
}

View file

@ -0,0 +1,20 @@
return {
"kdheepak/lazygit.nvim",
lazy = false,
cmd = {
"LazyGit",
"LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
-- optional for floating window border decoration
dependencies = {
"nvim-lua/plenary.nvim",
},
-- setting the keybinding for LazyGit with 'keys' is recommended in
-- order to load the plugin when the command is run for the first time
keys = {
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" },
},
}

View file

@ -0,0 +1,4 @@
return {
"mason-org/mason.nvim",
opts = {},
}

45
nvim/lua/plugins/mini.lua Normal file
View file

@ -0,0 +1,45 @@
return {
"nvim-mini/mini.nvim",
version = "*",
lazy = false,
keys = {
{ "<leader>ff", "<CMD>Pick files<CR>", { silent = true } },
{ "<leader>fb", "<CMD>Pick buffers<CR>", { silent = true } },
},
config = function()
require("mini.basics").setup({
options = {
basic = true,
extra_ui = true,
win_borders = "auto",
},
-- Mappings. Set field to `false` to disable.
mappings = {
basic = true,
option_toggle_prefix = [[\]],
windows = true,
move_with_alt = false,
},
-- Autocommands. Set field to `false` to disable
autocommands = {
basic = true,
relnum_in_visual_mode = true,
},
-- Whether to disable showing non-error feedback
silent = true,
})
require("mini.cmdline").setup()
require("mini.completion").setup()
require("mini.icons").setup()
require("mini.diff").setup()
require("mini.git").setup()
require("mini.pairs").setup()
require("mini.surround").setup()
require("mini.statusline").setup()
require("mini.tabline").setup()
require("mini.pick").setup()
require("mini.notify").setup()
end,
}

View file

@ -0,0 +1 @@
return { "https://github.com/neovim/nvim-lspconfig" }

View file

@ -0,0 +1,3 @@
return {
"windwp/nvim-ts-autotag"
}

14
nvim/lua/plugins/oil.lua Normal file
View file

@ -0,0 +1,14 @@
return {
"stevearc/oil.nvim",
keys = {
{ "-", "<CMD>Oil<CR>", { silent = true } },
},
opts = {
delete_to_trash = true,
skip_confirm_for_simple_edits = true,
prompt_save_on_select_new_entry = false,
watch_for_changes = true,
},
dependencies = { { "nvim-mini/mini.icons", opts = {} } },
lazy = false,
}

View file

@ -0,0 +1,27 @@
return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate",
opts = {
install_dir = vim.fn.stdpath("data") .. "/site",
},
config = function()
-- Install specified languages for Treesitter
require("nvim-treesitter").install({ "rust", "javascript", "python", "fish", "ssh_config" }):wait(300000)
-- Enable Treesitter highlighting for specified file types
vim.api.nvim_create_autocmd("FileType", {
pattern = { "javascript", "rust", "python", "lua" },
callback = function()
vim.treesitter.start() -- Start Treesitter highlighting
end,
})
-- Set up Treesitter-based folding
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.wo.foldmethod = "expr"
-- Enable Treesitter-based indentation
vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,
}

View file

@ -0,0 +1,3 @@
return {
"tamton-aquib/zone.nvim",
}