initial commit

This commit is contained in:
2023-12-21 13:05:49 +05:30
commit e63afa54b8
65 changed files with 3589 additions and 0 deletions

View File

@ -0,0 +1,40 @@
-- return {
-- 'goolord/alpha-nvim',
-- dependencies = { 'nvim-tree/nvim-web-devicons' },
-- config = function()
-- require 'alpha'.setup(require 'alpha.themes.startify'.config)
-- end
-- }
return {
'goolord/alpha-nvim',
event = 'VimEnter',
config = function()
local dashboard = require 'alpha.themes.dashboard'
dashboard.section.header.val = {
"██████████████████████████████████████████████████",
"█░░░░░░░░░░░░░░█░░░░░░██░░░░░░█░░░░░░░░██░░░░░░░░█",
"█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀░░██░░▄▀░░█░░▄▀▄▀░░██░░▄▀▄▀░░█",
"█░░░░░░▄▀░░░░░░█░░▄▀░░██░░▄▀░░█░░░░▄▀░░██░░▄▀░░░░█",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░███░░░░▄▀▄▀▄▀░░░░███",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░█████░░▄▀▄▀▄▀░░█████",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░███░░░░▄▀▄▀▄▀░░░░███",
"█████░░▄▀░░█████░░▄▀░░░░░░▄▀░░█░░░░▄▀░░██░░▄▀░░░░█",
"█████░░▄▀░░█████░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀░░██░░▄▀▄▀░░█",
"█████░░░░░░█████░░░░░░░░░░░░░░█░░░░░░░░██░░░░░░░░█",
"██████████████████████████████████████████████████",
}
dashboard.section.header.opts = {
position = 'center',
hl = 'Comment',
}
require('alpha').setup(require('alpha.themes.dashboard').config)
dashboard.section.buttons.val = {
dashboard.button('SPC f f', ' Find File', '<CMD>Telescope find_files<CR>'),
dashboard.button('SPC f r', ' Recent Files', '<CMD>Telescope oldfiles<CR>'),
dashboard.button('SPC f t', ' Find in Files', '<CMD>Telescope live_grep<CR>'),
}
end,
dependencies = { 'nvim-tree/nvim-web-devicons' },
}

View File

@ -0,0 +1,4 @@
return {
'altermo/ultimate-autopair.nvim',
config = true,
}

View File

@ -0,0 +1,11 @@
return {
'utilyre/barbecue.nvim',
dependencies = {
'SmiteshP/nvim-navic',
'nvim-tree/nvim-web-devicons', -- optional dependency
},
config = function()
require('barbecue').setup {}
require('barbecue.ui').toggle(true)
end,
}

View File

@ -0,0 +1,5 @@
return {
'lukas-reineke/indent-blankline.nvim',
main = 'ibl',
config = true,
}

View File

@ -0,0 +1,17 @@
return {
'akinsho/bufferline.nvim',
version = 'v3.*',
dependencies = 'nvim-tree/nvim-web-devicons',
config = {
options = {
offsets = {
{
filetype = 'neo-tree',
text = 'NeoTree',
text_align = 'left',
separator = true,
},
},
},
},
}

View File

@ -0,0 +1,25 @@
return {
{
"EdenEast/nightfox.nvim",
lazy = false,
priority = 1000,
config = function()
require('nightfox').setup {
options = {
transparent = true,
}
}
vim.cmd.colorscheme "carbonfox"
end,
},
{
'olivercederborg/poimandres.nvim',
lazy = false,
priority = 1000,
config = function()
require('poimandres').setup {
disable_background = true,
}
end,
}
}

View File

@ -0,0 +1,50 @@
return {
'numToStr/Comment.nvim',
config = function()
local comment = require 'Comment'
comment.setup {
---Add a space b/w comment and the line
padding = true,
---Whether the cursor should stay at its position
sticky = true,
---Lines to be ignored while (un)comment
ignore = nil,
---LHS of toggle mappings in NORMAL mode
toggler = {
---Line-comment toggle keymap
line = 'gcc',
---Block-comment toggle keymap
block = 'gbc',
},
---LHS of operator-pending mappings in NORMAL and VISUAL mode
opleader = {
---Line-comment keymap
line = 'gc',
---Block-comment keymap
block = 'gb',
},
---LHS of extra mappings
extra = {
---Add comment on the line above
above = 'gcO',
---Add comment on the line below
below = 'gco',
---Add comment at the end of line
eol = 'gcA',
},
---Enable keybindings
---NOTE: If given `false` then the plugin won't create any mappings
mappings = {
---Operator-pending mapping; `gcc` `gbc` `gc[count]{motion}` `gb[count]{motion}`
basic = true,
---Extra mapping; `gco`, `gcO`, `gcA`
extra = true,
},
---Function to call before (un)comment
pre_hook = nil,
---Function to call after (un)comment
post_hook = nil,
}
end,
}

View File

@ -0,0 +1,4 @@
return {
'stevearc/dressing.nvim',
event = 'VeryLazy',
}

View File

@ -0,0 +1,5 @@
return {
'folke/edgy.nvim',
event = 'VeryLazy',
opts = {},
}

View File

@ -0,0 +1,3 @@
return {
'editorconfig/editorconfig-vim',
}

View File

@ -0,0 +1,38 @@
return {
'folke/flash.nvim',
event = 'VeryLazy',
---@type Flash.Config
opts = {},
-- stylua: ignore
keys = {
{ "s", mode = { "n", "o", "x" }, function() require("flash").jump() end, desc = "Flash" },
{
"S",
mode = { "n", "o", "x" },
function() require("flash").treesitter() end,
desc =
"Flash Treesitter"
},
{
"r",
mode = "o",
function() require("flash").remote() end,
desc =
"Remote Flash"
},
{
"R",
mode = { "o", "x" },
function() require("flash").treesitter_search() end,
desc =
"Treesitter Search"
},
{
"<c-s>",
mode = { "c" },
function() require("flash").toggle() end,
desc =
"Toggle Flash Search"
},
},
}

View File

@ -0,0 +1,16 @@
return {
'David-Kunz/gen.nvim',
config = function()
vim.keymap.set('v', '<leader>ai', ':Gen<CR>')
vim.keymap.set('n', '<leader>ai', ':Gen<CR>')
require('gen').setup({
model = "zephyr",
display_mode = "float",
show_prompt = true,
show_model = true,
no_auto_close = false,
init = function(options) pcall(io.popen, "ollama serve > /dev/null 2>&1 &") end,
debug = false
})
end,
}

View File

@ -0,0 +1,6 @@
return {
'lewis6991/gitsigns.nvim',
config = {
current_line_blame = true,
},
}

View File

@ -0,0 +1,6 @@
return {
'kdheepak/lazygit.nvim',
keys = {
{ '<leader>gg', '<cmd>LazyGit<cr>', desc = 'Git' },
},
}

View File

@ -0,0 +1,14 @@
return {
"nvim-lualine/lualine.nvim",
lazy = false,
config = function()
local theme = require("lualine.themes.carbonfox")
require("lualine").setup({
options = {
theme = theme,
globalstatus = true,
},
})
end
}

View File

@ -0,0 +1,8 @@
return {
'iamcco/markdown-preview.nvim',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = function()
vim.fn['mkdp#util#install']()
end,
}

View File

@ -0,0 +1,31 @@
return {
'mvllow/modes.nvim',
-- config = function()
-- local colors = require('catppuccin.palettes').get_palette()
-- require('modes').setup {
-- colors = {
-- copy = colors.peach,
-- delete = colors.red,
-- insert = colors.blue,
-- visual = colors.lavender,
-- },
-- -- Set opacity for cursorline and number background
-- line_opacity = 0.15,
-- -- Enable cursor highlights
-- set_cursor = true,
-- -- Enable cursorline initially, and disable cursorline for inactive windows
-- -- or ignored filetypes
-- set_cursorline = true,
-- -- Enable line number highlights to match cursorline
-- set_number = true,
-- -- Disable modes highlights in specified filetypes
-- -- Please PR commonly ignored filetypes
-- ignore_filetypes = { 'NvimTree', 'TelescopePrompt' },
-- }
-- end,
}

View File

@ -0,0 +1,21 @@
return {
"nvim-neorg/neorg",
build = ":Neorg sync-parsers",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("neorg").setup {
load = {
["core.defaults"] = {},
["core.concealer"] = {},
["core.dirman"] = {
config = {
workspaces = {
snippets = string.format("%s/Projects/notes/snippets", os.getenv("HOME"))
},
default_workspace = "snippets",
},
}
},
}
end,
}

View File

@ -0,0 +1,35 @@
return {
'nvim-neo-tree/neo-tree.nvim',
lazy = false,
cmd = 'Neotree',
branch = 'v3.x',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons',
'MunifTanjim/nui.nvim',
},
config = {
filesystem = {
follow_current_file = { enabled = true },
hijack_netrw_behavior = 'open_default',
filtered_items = { visible = true },
use_libuv_file_watcher = true,
},
git_status = {
symbols = {
-- Change type
added = '', -- or "✚", but this is redundant info if you use git_status_colors on the name
modified = '', -- or "", but this is redundant info if you use git_status_colors on the name
deleted = '', -- this can only be used in the git_status source
renamed = '󰁕', -- this can only be used in the git_status source
-- Status type
untracked = '',
ignored = '',
unstaged = '󰄱',
staged = '',
conflict = '',
},
},
},
}

View File

@ -0,0 +1,27 @@
return {
'folke/noice.nvim',
lazy = false,
dependencies = {
'MunifTanjim/nui.nvim',
'rcarriga/nvim-notify',
},
config = {
lsp = {
override = {
['vim.lsp.util.convert_input_to_markdown_lines'] = true,
['vim.lsp.util.stylize_markdown'] = true,
['cmp.entry.get_documentation'] = true,
},
},
presets = {
-- bottom_search = true, -- use a classic bottom cmdline for search
-- command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = true, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
-- cmdline = {
-- view = 'cmdline',
-- },
},
}

View File

@ -0,0 +1,11 @@
return {
'NvChad/nvterm',
keys = {
{ '<leader>ot', '<cmd>lua require("nvterm.terminal").toggle "horizontal"<cr>', desc = 'Toggle Terminal' },
},
config = function()
require('nvterm').setup {}
vim.cmd [[ tnoremap <Esc> <C-\><C-n> ]]
end,
}

View File

@ -0,0 +1,4 @@
return {
'kylechui/nvim-surround',
config = true,
}

View File

@ -0,0 +1,20 @@
return {
{
'nvim-telescope/telescope.nvim',
tag = '0.1.3',
lazy = true,
keys = {
{ '<leader>ff', '<cmd>Telescope find_files<CR>', desc = 'Find Files' },
{ '<leader>ft', '<cmd>Telescope live_grep<CR>', desc = 'Search Text in Files' },
{ '<leader>fb', '<cmd>Telescope buffers<CR>', desc = 'List Buffers' },
{ '<M-x>', '<cmd>Telescope commands<CR>', desc = 'Run Command' },
},
dependencies = { 'nvim-lua/plenary.nvim' },
},
{
'nvim-telescope/telescope-media-files.nvim',
config = function()
require('telescope').load_extension 'media_files'
end,
},
}

View File

@ -0,0 +1,5 @@
return {
'folke/todo-comments.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
config = true,
}

View File

@ -0,0 +1,17 @@
return {
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
config = function()
require('nvim-treesitter.configs').setup {
ensure_installed = { 'lua', 'nix' },
sync_install = false,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
}
end,
}

View File

@ -0,0 +1,8 @@
return {
'Wansmer/treesj',
keys = { '<space>m' },
dependencies = { 'nvim-treesitter/nvim-treesitter' },
config = function()
require('treesj').setup {}
end,
}

View File

@ -0,0 +1 @@
return { 'wakatime/vim-wakatime' }

View File

@ -0,0 +1,8 @@
return {
'folke/which-key.nvim',
config = function()
vim.o.timeout = true
vim.o.timeoutlen = 300
require('which-key').setup {}
end,
}