mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-07 10:16:35 +05:30
initial commit
This commit is contained in:
40
modules/home-manager/nvim/old/lua/plugins/alpha.lua
Normal file
40
modules/home-manager/nvim/old/lua/plugins/alpha.lua
Normal 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' },
|
||||
}
|
4
modules/home-manager/nvim/old/lua/plugins/autopair.lua
Normal file
4
modules/home-manager/nvim/old/lua/plugins/autopair.lua
Normal file
@ -0,0 +1,4 @@
|
||||
return {
|
||||
'altermo/ultimate-autopair.nvim',
|
||||
config = true,
|
||||
}
|
11
modules/home-manager/nvim/old/lua/plugins/barbecue.lua
Normal file
11
modules/home-manager/nvim/old/lua/plugins/barbecue.lua
Normal 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,
|
||||
}
|
5
modules/home-manager/nvim/old/lua/plugins/blankline.lua
Normal file
5
modules/home-manager/nvim/old/lua/plugins/blankline.lua
Normal file
@ -0,0 +1,5 @@
|
||||
return {
|
||||
'lukas-reineke/indent-blankline.nvim',
|
||||
main = 'ibl',
|
||||
config = true,
|
||||
}
|
17
modules/home-manager/nvim/old/lua/plugins/bufferline.lua
Normal file
17
modules/home-manager/nvim/old/lua/plugins/bufferline.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
25
modules/home-manager/nvim/old/lua/plugins/colorscheme.lua
Normal file
25
modules/home-manager/nvim/old/lua/plugins/colorscheme.lua
Normal 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,
|
||||
}
|
||||
}
|
50
modules/home-manager/nvim/old/lua/plugins/comment.lua
Normal file
50
modules/home-manager/nvim/old/lua/plugins/comment.lua
Normal 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,
|
||||
}
|
4
modules/home-manager/nvim/old/lua/plugins/dressing.lua
Normal file
4
modules/home-manager/nvim/old/lua/plugins/dressing.lua
Normal file
@ -0,0 +1,4 @@
|
||||
return {
|
||||
'stevearc/dressing.nvim',
|
||||
event = 'VeryLazy',
|
||||
}
|
5
modules/home-manager/nvim/old/lua/plugins/edgy.lua
Normal file
5
modules/home-manager/nvim/old/lua/plugins/edgy.lua
Normal file
@ -0,0 +1,5 @@
|
||||
return {
|
||||
'folke/edgy.nvim',
|
||||
event = 'VeryLazy',
|
||||
opts = {},
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
return {
|
||||
'editorconfig/editorconfig-vim',
|
||||
}
|
38
modules/home-manager/nvim/old/lua/plugins/flash.lua
Normal file
38
modules/home-manager/nvim/old/lua/plugins/flash.lua
Normal 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"
|
||||
},
|
||||
},
|
||||
}
|
16
modules/home-manager/nvim/old/lua/plugins/gen.lua
Normal file
16
modules/home-manager/nvim/old/lua/plugins/gen.lua
Normal 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,
|
||||
}
|
6
modules/home-manager/nvim/old/lua/plugins/gitsigns.lua
Normal file
6
modules/home-manager/nvim/old/lua/plugins/gitsigns.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
'lewis6991/gitsigns.nvim',
|
||||
config = {
|
||||
current_line_blame = true,
|
||||
},
|
||||
}
|
6
modules/home-manager/nvim/old/lua/plugins/lazygit.lua
Normal file
6
modules/home-manager/nvim/old/lua/plugins/lazygit.lua
Normal file
@ -0,0 +1,6 @@
|
||||
return {
|
||||
'kdheepak/lazygit.nvim',
|
||||
keys = {
|
||||
{ '<leader>gg', '<cmd>LazyGit<cr>', desc = 'Git' },
|
||||
},
|
||||
}
|
14
modules/home-manager/nvim/old/lua/plugins/lualine.lua
Normal file
14
modules/home-manager/nvim/old/lua/plugins/lualine.lua
Normal 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
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
return {
|
||||
'iamcco/markdown-preview.nvim',
|
||||
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
|
||||
ft = { 'markdown' },
|
||||
build = function()
|
||||
vim.fn['mkdp#util#install']()
|
||||
end,
|
||||
}
|
31
modules/home-manager/nvim/old/lua/plugins/modes.lua
Normal file
31
modules/home-manager/nvim/old/lua/plugins/modes.lua
Normal 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,
|
||||
}
|
21
modules/home-manager/nvim/old/lua/plugins/neorg.lua
Normal file
21
modules/home-manager/nvim/old/lua/plugins/neorg.lua
Normal 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,
|
||||
}
|
35
modules/home-manager/nvim/old/lua/plugins/neotree.lua
Normal file
35
modules/home-manager/nvim/old/lua/plugins/neotree.lua
Normal 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 = '',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
27
modules/home-manager/nvim/old/lua/plugins/noice.lua
Normal file
27
modules/home-manager/nvim/old/lua/plugins/noice.lua
Normal 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',
|
||||
-- },
|
||||
},
|
||||
}
|
11
modules/home-manager/nvim/old/lua/plugins/nvterm.lua
Normal file
11
modules/home-manager/nvim/old/lua/plugins/nvterm.lua
Normal 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,
|
||||
}
|
4
modules/home-manager/nvim/old/lua/plugins/surround.lua
Normal file
4
modules/home-manager/nvim/old/lua/plugins/surround.lua
Normal file
@ -0,0 +1,4 @@
|
||||
return {
|
||||
'kylechui/nvim-surround',
|
||||
config = true,
|
||||
}
|
20
modules/home-manager/nvim/old/lua/plugins/telescope.lua
Normal file
20
modules/home-manager/nvim/old/lua/plugins/telescope.lua
Normal 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,
|
||||
},
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
return {
|
||||
'folke/todo-comments.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = true,
|
||||
}
|
17
modules/home-manager/nvim/old/lua/plugins/treesitter.lua
Normal file
17
modules/home-manager/nvim/old/lua/plugins/treesitter.lua
Normal 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,
|
||||
}
|
8
modules/home-manager/nvim/old/lua/plugins/treesj.lua
Normal file
8
modules/home-manager/nvim/old/lua/plugins/treesj.lua
Normal file
@ -0,0 +1,8 @@
|
||||
return {
|
||||
'Wansmer/treesj',
|
||||
keys = { '<space>m' },
|
||||
dependencies = { 'nvim-treesitter/nvim-treesitter' },
|
||||
config = function()
|
||||
require('treesj').setup {}
|
||||
end,
|
||||
}
|
1
modules/home-manager/nvim/old/lua/plugins/wakatime.lua
Normal file
1
modules/home-manager/nvim/old/lua/plugins/wakatime.lua
Normal file
@ -0,0 +1 @@
|
||||
return { 'wakatime/vim-wakatime' }
|
8
modules/home-manager/nvim/old/lua/plugins/whichkey.lua
Normal file
8
modules/home-manager/nvim/old/lua/plugins/whichkey.lua
Normal 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,
|
||||
}
|
Reference in New Issue
Block a user