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,197 @@
local M = {}
M.opt = {
guifont = "FiraCode Nerd Font:h8",
neovide_scale_factor = 0.6,
}
M.colorscheme = "carbonfox"
M.icons = {
VimIcon = "",
ScrollText = "",
GitBranch = "",
GitAdd = "",
GitChange = "",
GitDelete = "",
}
M.heirline = {
separators = {
left = { "", "" },
right = { "", "" },
tab = { "", "" },
},
colors = function(hl)
local get_hlgroup = require("astronvim.utils").get_hlgroup
local comment_fg = get_hlgroup("Comment").fg
hl.git_branch_fg = comment_fg
hl.git_added = comment_fg
hl.git_changed = comment_fg
hl.git_removed = comment_fg
hl.blank_bg = get_hlgroup("Folded").fg
hl.file_info_bg = get_hlgroup("Visual").bg
hl.nav_icon_bg = get_hlgroup("String").fg
hl.nav_fg = hl.nav_icon_bg
hl.folder_icon_bg = get_hlgroup("Error").fg
return hl
end,
attributes = {
mode = { bold = true },
},
icon_highlights = {
file_icon = {
statusline = false,
},
},
}
M.plugins = {
{
"goolord/alpha-nvim",
opts = function(_, opts)
opts.section.header.val = {
"██████████████████████████████████████████████████",
"█░░░░░░░░░░░░░░█░░░░░░██░░░░░░█░░░░░░░░██░░░░░░░░█",
"█░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀░░██░░▄▀░░█░░▄▀▄▀░░██░░▄▀▄▀░░█",
"█░░░░░░▄▀░░░░░░█░░▄▀░░██░░▄▀░░█░░░░▄▀░░██░░▄▀░░░░█",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░███░░░░▄▀▄▀▄▀░░░░███",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░█████░░▄▀▄▀▄▀░░█████",
"█████░░▄▀░░█████░░▄▀░░██░░▄▀░░███░░░░▄▀▄▀▄▀░░░░███",
"█████░░▄▀░░█████░░▄▀░░░░░░▄▀░░█░░░░▄▀░░██░░▄▀░░░░█",
"█████░░▄▀░░█████░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀░░██░░▄▀▄▀░░█",
"█████░░░░░░█████░░░░░░░░░░░░░░█░░░░░░░░██░░░░░░░░█",
"██████████████████████████████████████████████████",
}
end,
},
{ "wakatime/vim-wakatime" },
{ "eandrju/cellular-automaton.nvim", event = "VeryLazy" },
"AstroNvim/astrocommunity",
{ import = "astrocommunity.utility.noice-nvim" },
{ import = "astrocommunity.pack.json" },
{ import = "astrocommunity.pack.tailwindcss" },
{ import = "astrocommunity.pack.bash" },
{ import = "astrocommunity.pack.lua" },
{ import = "astrocommunity.pack.python" },
{ import = "astrocommunity.pack.go" },
{ import = "astrocommunity.pack.nix" },
{ import = "astrocommunity.pack.typescript" },
{ import = "astrocommunity.pack.prisma" },
{ import = "astrocommunity.colorscheme.nightfox-nvim" },
{
"nightfox.nvim",
opts = {
options = {
-- transparent = function()
-- if vim.g.neovide then
-- return false
-- end
-- return true
-- end,
},
},
},
{
"David-Kunz/gen.nvim",
config = function()
require("gen").setup({
model = "zephyr",
display_mode = "float",
show_prompt = true,
show_model = true,
no_auto_close = false,
init = function()
pcall(io.popen, "ollama serve > /dev/null 2>&1 &")
end,
debug = false,
})
end,
},
{
"rebelot/heirline.nvim",
opts = function(_, opts)
local status = require("astronvim.utils.status")
opts.statusline = {
hl = { fg = "fg", bg = "bg" },
status.component.mode({
mode_text = { icon = { kind = "VimIcon", padding = { right = 1, left = 1 } } },
surround = {
separator = "left",
color = function()
return { main = status.hl.mode_bg(), right = "blank_bg" }
end,
},
}),
status.component.builder({
{ provider = "" },
surround = { separator = "left", color = { main = "blank_bg", right = "file_info_bg" } },
}),
status.component.file_info({
file_icon = { padding = { left = 0 } },
filename = { fallback = "Empty" },
padding = { right = 1 },
surround = { separator = "left", condition = false },
}),
status.component.git_branch({ surround = { separator = "none" } }),
status.component.git_diff({ padding = { left = 1 }, surround = { separator = "none" } }),
status.component.fill(),
status.component.lsp({ lsp_client_names = false, surround = { separator = "none", color = "bg" } }),
status.component.fill(),
status.component.diagnostics({ surround = { separator = "right" } }),
status.component.lsp({ lsp_progress = false, surround = { separator = "right" } }),
{
status.component.builder({
{ provider = require("astronvim.utils").get_icon("FolderClosed") },
padding = { right = 1 },
hl = { fg = "bg" },
surround = { separator = "right", color = "folder_icon_bg" },
}),
status.component.file_info({
filename = {
fname = function(nr)
return vim.fn.getcwd(nr)
end,
padding = { left = 1 },
},
file_icon = false,
file_modified = false,
file_read_only = false,
surround = { separator = "none", color = "file_info_bg", condition = false },
}),
},
{
status.component.builder({
{ provider = require("astronvim.utils").get_icon("ScrollText") },
padding = { right = 1 },
hl = { fg = "bg" },
surround = { separator = "right", color = { main = "nav_icon_bg", left = "file_info_bg" } },
}),
status.component.nav({
percentage = { padding = { right = 1 } },
ruler = false,
scrollbar = false,
surround = { separator = "none", color = "file_info_bg" },
}),
},
}
return opts
end,
},
}
M.lsp = {
config = {
lua_ls = function()
return {
settings = {
Lua = {
diagnostics = {
globals = {
"vim",
"require",
},
},
},
},
}
end,
},
}
return M

View File

@ -0,0 +1,18 @@
return {
n = {
["<C-=>"] = {
function()
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor + 0.1
end,
desc = "Zoom In (Neovide)",
},
["<C-->"] = {
function()
vim.g.neovide_scale_factor = vim.g.neovide_scale_factor - 0.1
end,
desc = "Zoom Out (Neovide)",
},
["<leader>ai"] = { ":Gen<CR>", desc = "Run Ollama" },
["<leader>fml"] = { ":CellularAutomaton make_it_rain<CR>", desc = "FML" },
},
}

View File

@ -0,0 +1,8 @@
return {
g = {
-- neovide_background_color = "#0f0f0f",
},
opt = {
guifont = "FiraCode Nerd Font:h12",
},
}

View File

@ -0,0 +1,68 @@
{ inputs, pkgs, ... }: {
xdg.configFile = {
"nvim".source = inputs.astronvim;
"astronvim".source = ./astronvim;
};
programs = {
neovim = {
enable = true;
defaultEditor = true;
viAlias = false;
vimAlias = true;
withPython3 = true;
withNodeJs = true;
};
};
home = {
packages = with pkgs; [
gcc
neovide
#-- python
nodePackages.pyright # python language server
python311Packages.black # python formatter
#-- nix
nil
rnix-lsp
statix # Lints and suggestions for the nix programming language
deadnix # Find and remove unused code in .nix source files
alejandra # Nix Code Formatter
#-- golang
go
gomodifytags
iferr # generate error handling code for go
impl # generate function implementation for go
gotools # contains tools like: godoc, goimports, etc.
gopls # go language server
delve # go debugger
#-- lua
stylua
lua-language-server
luarocks
#-- bash
nodePackages.bash-language-server
shellcheck
shfmt
#-- javascript/typescript --#
nodePackages.typescript
nodePackages.typescript-language-server
#-- Misc
hadolint # Dockerfile linter
tree-sitter # common language parser/highlighter
nodePackages.prettier # common code formatter
#-- Optional Requirements:
gdu # disk usage analyzer, required by AstroNvim
ripgrep # fast search tool, required by AstroNvim's '<leader>fw'(<leader> is space key)
];
};
}

View File

@ -0,0 +1,22 @@
require 'options'
require 'keymaps'
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
}
end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup {
import = 'plugins',
dev = {
path = '~/dev',
fallback = true,
},
}

View File

@ -0,0 +1,38 @@
{
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
"alpha-nvim": { "branch": "main", "commit": "234822140b265ec4ba3203e3e0be0e0bb826dff5" },
"barbecue.nvim": { "branch": "main", "commit": "d38a2a023dfb1073dd0e8fee0c9be08855d3688f" },
"bufferline.nvim": { "branch": "main", "commit": "243893ba9d5d1049dd451a25cab32ec7f8f67bcf" },
"dressing.nvim": { "branch": "master", "commit": "fe3071330a0720ce3695ac915820c8134b22d1b0" },
"edgy.nvim": { "branch": "main", "commit": "8355be45610afdf79a0bab32b91ee297997455b4" },
"editorconfig-vim": { "branch": "master", "commit": "0d54ea863089fb13be423b4aed6cca35f3a5d778" },
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
"gen.nvim": { "branch": "main", "commit": "049ec32f337fac6573221cde4f1dd88fa0b31390" },
"gitsigns.nvim": { "branch": "main", "commit": "5fc573f2d2a49aec74dd6dc977e8b137429d1897" },
"indent-blankline.nvim": { "branch": "master", "commit": "29be0919b91fb59eca9e90690d76014233392bef" },
"lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" },
"lazygit.nvim": { "branch": "main", "commit": "de35012036d43bca03628d40d083f7c02a4cda3f" },
"lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" },
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
"modes.nvim": { "branch": "main", "commit": "5357fda0f4a21d73611496087a0d3b6d7b4f9384" },
"neo-tree.nvim": { "branch": "main", "commit": "230ff118613fa07138ba579b89d13ec2201530b9" },
"neorg": { "branch": "main", "commit": "3f531c362d07d52c4956520e3798e9cfb5aeabdf" },
"nightfox.nvim": { "branch": "main", "commit": "eb82712f86319272f4b7b9dbb4ec6df650e6987f" },
"noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" },
"nui.nvim": { "branch": "main", "commit": "c0c8e347ceac53030f5c1ece1c5a5b6a17a25b32" },
"nvim-navic": { "branch": "master", "commit": "0ffa7ffe6588f3417e680439872f5049e38a24db" },
"nvim-notify": { "branch": "master", "commit": "e4a2022f4fec2d5ebc79afa612f96d8b11c627b3" },
"nvim-surround": { "branch": "main", "commit": "0855a89e00a5822c3a482a82e5223fcf2e9ede13" },
"nvim-treesitter": { "branch": "master", "commit": "649d137371e9214d30b20565e0574824fa3a3670" },
"nvim-web-devicons": { "branch": "master", "commit": "cdbcca210cf3655aa9b31ebf2422763ecd85ee5c" },
"nvterm": { "branch": "main", "commit": "3e43be1d0ca60cc5e2dfc2d289b06577e7e57e98" },
"plenary.nvim": { "branch": "master", "commit": "c47e1a21d235a422034012935febd2d078d77ac6" },
"poimandres.nvim": { "branch": "main", "commit": "77635055e686ae3c8a519198006ff0b43b6b2eae" },
"telescope-media-files.nvim": { "branch": "master", "commit": "0826c7a730bc4d36068f7c85cf4c5b3fd9fb570a" },
"telescope.nvim": { "branch": "master", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" },
"todo-comments.nvim": { "branch": "main", "commit": "4a6737a8d70fe1ac55c64dfa47fcb189ca431872" },
"treesj": { "branch": "main", "commit": "1d6e89f4790aa04eaae38fa9460a3ee191961c96" },
"ultimate-autopair.nvim": { "branch": "v0.6", "commit": "6fd0d6aa976a97dd6f1bed4d46be1b437613a52f" },
"vim-wakatime": { "branch": "master", "commit": "87c6861ea81700ec4a6a27c81413cf07cb2c883c" },
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
}

View File

@ -0,0 +1,455 @@
[1700985363] warming up the model with an empty run
[1700985363] Available slots:
[1700985363] -> Slot 0 - max context: 2048
[1700985363]
llama server listening at http://127.0.0.1:61351
[1700985363] all slots are idle and system prompt is empty, clear the KV cache
[1700985366] slot 0 is processing [task id: 0]
[1700985366] slot 0 : kv cache rm - [0, end)
[1700985368] sampled token: 7638: 'Why'
[1700985368] sampled token: 949: ' don'
[1700985368] sampled token: 28742: '''
[1700985368] sampled token: 28707: 't'
[1700985368] sampled token: 15067: ' scientists'
[1700985368] sampled token: 4893: ' trust'
[1700985368] sampled token: 24221: ' atoms'
[1700985369] sampled token: 28804: '?'
[1700985369] sampled token: 13: '
'
[1700985369] sampled token: 17098: 'Because'
[1700985369] sampled token: 590: ' they'
[1700985369] sampled token: 1038: ' make'
[1700985369] sampled token: 582: ' up'
[1700985369] sampled token: 2905: ' everything'
[1700985369] sampled token: 28808: '!'
[1700985370] sampled token: 2: ''
[1700985370]
[1700985370] print_timings: prompt eval time = 1314.44 ms / 26 tokens ( 50.56 ms per token, 19.78 tokens per second)
[1700985370] print_timings: eval time = 1844.71 ms / 15 runs ( 122.98 ms per token, 8.13 tokens per second)
[1700985370] print_timings: total time = 3159.15 ms
[1700985370] slot 0 released (42 tokens in cache)
[1700985370] slot 0 released (42 tokens in cache)
[1700985383] slot 0 is processing [task id: 2]
[1700985383] slot 0 : kv cache rm - [0, end)
[1700985386] sampled token: 7638: 'Why'
[1700985386] sampled token: 863: ' did'
[1700985387] sampled token: 272: ' the'
[1700985387] sampled token: 752: ' sc'
[1700985387] sampled token: 492: 'are'
[1700985387] sampled token: 28717: 'c'
[1700985387] sampled token: 671: 'row'
[1700985387] sampled token: 3108: ' win'
[1700985387] sampled token: 396: ' an'
[1700985388] sampled token: 7619: ' award'
[1700985388] sampled token: 28804: '?'
[1700985388] sampled token: 13: '
'
[1700985388] sampled token: 13: '
'
[1700985388] sampled token: 17098: 'Because'
[1700985388] sampled token: 400: ' he'
[1700985388] sampled token: 403: ' was'
[1700985389] sampled token: 17329: ' outstanding'
[1700985389] sampled token: 297: ' in'
[1700985389] sampled token: 516: ' his'
[1700985389] sampled token: 1834: ' field'
[1700985389] sampled token: 28808: '!'
[1700985389] sampled token: 325: ' ('
[1700985390] sampled token: 28753: 'P'
[1700985390] sampled token: 370: 'un'
[1700985390] sampled token: 8926: ' intended'
[1700985390] sampled token: 28731: ')'
[1700985390] sampled token: 28705: ' '
[1700985390] sampled token: 243: '<27>'
[1700985390] sampled token: 162: '<27>'
[1700985391] sampled token: 143: '<27>'
[1700985391] sampled token: 193: '<27>'
[1700985391] sampled token: 2: ''
[1700985391]
[1700985391] print_timings: prompt eval time = 2971.95 ms / 33 tokens ( 90.06 ms per token, 11.10 tokens per second)
[1700985391] print_timings: eval time = 4589.20 ms / 31 runs ( 148.04 ms per token, 6.75 tokens per second)
[1700985391] print_timings: total time = 7561.15 ms
[1700985391] slot 0 released (62 tokens in cache)
[1700985391] slot 0 released (62 tokens in cache)
[1700985439] slot 0 is processing [task id: 4]
[1700985439] slot 0 : kv cache rm - [0, end)
[1700985443] sampled token: 15423: 'Here'
[1700985443] sampled token: 28742: '''
[1700985443] sampled token: 28713: 's'
[1700985443] sampled token: 396: ' an'
[1700985443] sampled token: 21733: ' enhanced'
[1700985443] sampled token: 2751: ' version'
[1700985444] sampled token: 302: ' of'
[1700985444] sampled token: 272: ' the'
[1700985444] sampled token: 2696: ' code'
[1700985444] sampled token: 369: ' that'
[1700985444] sampled token: 23468: ' formats'
[1700985444] sampled token: 272: ' the'
[1700985444] sampled token: 3825: ' output'
[1700985445] sampled token: 297: ' in'
[1700985445] sampled token: 393: ' L'
[1700985445] sampled token: 3772: 'ua'
[1700985445] sampled token: 25227: ' syntax'
[1700985445] sampled token: 28747: ':'
[1700985445] sampled token: 13: '
'
[1700985445] sampled token: 13: '
'
[1700985446] sampled token: 13940: '``'
[1700985446] sampled token: 28832: '`'
[1700985446] sampled token: 20487: 'lua'
[1700985446] sampled token: 13: '
'
[1700985446] sampled token: 376: '--'
[1700985446] sampled token: 16693: ' Example'
[1700985446] sampled token: 11753: ' usage'
[1700985447] sampled token: 28747: ':'
[1700985447] sampled token: 17449: ' ./'
[1700985447] sampled token: 3220: 'run'
[1700985447] sampled token: 28723: '.'
[1700985447] sampled token: 811: 'sh'
[1700985447] sampled token: 28705: ' '
[1700985447] sampled token: 28740: '1'
[1700985448] sampled token: 28734: '0'
[1700985448] sampled token: 28705: ' '
[1700985448] sampled token: 28750: '2'
[1700985448] sampled token: 28734: '0'
[1700985448] sampled token: 13: '
'
[1700985448] sampled token: 376: '--'
[1700985448] sampled token: 851: ' This'
[1700985449] sampled token: 6767: ' script'
[1700985449] sampled token: 4347: ' takes'
[1700985449] sampled token: 989: ' two'
[1700985449] sampled token: 6614: ' arguments'
[1700985449] sampled token: 14030: ' representing'
[1700985449] sampled token: 5551: ' numbers'
[1700985449] sampled token: 28725: ','
[1700985449] sampled token: 304: ' and'
[1700985450] sampled token: 4900: ' calcul'
[1700985450] sampled token: 1002: 'ates'
[1700985450] sampled token: 652: ' their'
[1700985450] sampled token: 2648: ' sum'
[1700985450] sampled token: 304: ' and'
[1700985450] sampled token: 5133: ' difference'
[1700985450] sampled token: 13: '
'
[1700985451] sampled token: 13: '
'
[1700985451] sampled token: 3959: 'local'
[1700985451] sampled token: 1629: ' arg'
[1700985451] sampled token: 28740: '1'
[1700985451] sampled token: 327: ' ='
[1700985451] sampled token: 6339: ' ton'
[1700985451] sampled token: 1031: 'umber'
[1700985452] sampled token: 28732: '('
[1700985452] sampled token: 926: 'arg'
[1700985452] sampled token: 28792: '['
[1700985452] sampled token: 28740: '1'
[1700985452] sampled token: 2803: '])'
[1700985452] sampled token: 1939: ' --'
[1700985452] sampled token: 19468: ' Parse'
[1700985452] sampled token: 907: ' first'
[1700985453] sampled token: 5270: ' argument'
[1700985453] sampled token: 390: ' as'
[1700985453] sampled token: 264: ' a'
[1700985453] sampled token: 1474: ' number'
[1700985453] sampled token: 13: '
'
[1700985453] sampled token: 3959: 'local'
[1700985453] sampled token: 1629: ' arg'
[1700985454] sampled token: 28750: '2'
[1700985454] sampled token: 327: ' ='
[1700985454] sampled token: 6339: ' ton'
[1700985454] sampled token: 1031: 'umber'
[1700985454] sampled token: 28732: '('
[1700985454] sampled token: 926: 'arg'
[1700985454] sampled token: 28792: '['
[1700985455] sampled token: 28750: '2'
[1700985455] sampled token: 2803: '])'
[1700985455] sampled token: 1939: ' --'
[1700985455] sampled token: 19468: ' Parse'
[1700985455] sampled token: 1676: ' second'
[1700985455] sampled token: 5270: ' argument'
[1700985455] sampled token: 390: ' as'
[1700985456] sampled token: 264: ' a'
[1700985456] sampled token: 1474: ' number'
[1700985456] sampled token: 13: '
'
[1700985456] sampled token: 13: '
'
[1700985456] sampled token: 335: 'if'
[1700985456] sampled token: 1629: ' arg'
[1700985456] sampled token: 28740: '1'
[1700985457] sampled token: 859: ' =='
[1700985457] sampled token: 2346: ' nil'
[1700985457] sampled token: 442: ' or'
[1700985457] sampled token: 1629: ' arg'
[1700985457] sampled token: 28750: '2'
[1700985457] sampled token: 859: ' =='
[1700985457] sampled token: 2346: ' nil'
[1700985457] sampled token: 868: ' then'
[1700985458] sampled token: 13: '
'
[1700985458] sampled token: 28705: ' '
[1700985458] sampled token: 2682: ' print'
[1700985458] sampled token: 618: '("'
[1700985458] sampled token: 16200: 'Usage'
[1700985458] sampled token: 28747: ':'
[1700985458] sampled token: 345: ' "'
[1700985459] sampled token: 8072: ' ..'
[1700985459] sampled token: 10852: ' Arg'
[1700985459] sampled token: 28728: 'v'
[1700985459] sampled token: 28792: '['
[1700985459] sampled token: 28734: '0'
[1700985459] sampled token: 28793: ']'
[1700985459] sampled token: 8072: ' ..'
[1700985460] sampled token: 345: ' "'
[1700985460] sampled token: 733: ' ['
[1700985460] sampled token: 4810: 'number'
[1700985460] sampled token: 28793: ']'
[1700985460] sampled token: 733: ' ['
[1700985460] sampled token: 4810: 'number'
[1700985460] sampled token: 28793: ']'
[1700985461] sampled token: 1243: '")'
[1700985461] sampled token: 13: '
'
[1700985461] sampled token: 28705: ' '
[1700985461] sampled token: 3497: ' os'
[1700985461] sampled token: 28723: '.'
[1700985461] sampled token: 9427: 'exit'
[1700985461] sampled token: 470: '()'
[1700985461] sampled token: 13: '
'
[1700985462] sampled token: 416: 'end'
[1700985462] sampled token: 13: '
'
[1700985462] sampled token: 13: '
'
[1700985462] sampled token: 376: '--'
[1700985462] sampled token: 2984: ' Cal'
[1700985462] sampled token: 16914: 'culate'
[1700985462] sampled token: 2648: ' sum'
[1700985463] sampled token: 304: ' and'
[1700985463] sampled token: 5133: ' difference'
[1700985463] sampled token: 302: ' of'
[1700985463] sampled token: 272: ' the'
[1700985463] sampled token: 6614: ' arguments'
[1700985463] sampled token: 13: '
'
[1700985463] sampled token: 3959: 'local'
[1700985464] sampled token: 2648: ' sum'
[1700985464] sampled token: 327: ' ='
[1700985464] sampled token: 1629: ' arg'
[1700985464] sampled token: 28740: '1'
[1700985464] sampled token: 648: ' +'
[1700985464] sampled token: 1629: ' arg'
[1700985464] sampled token: 28750: '2'
[1700985464] sampled token: 13: '
'
[1700985465] sampled token: 3959: 'local'
[1700985465] sampled token: 2800: ' diff'
[1700985465] sampled token: 327: ' ='
[1700985465] sampled token: 1629: ' arg'
[1700985465] sampled token: 28740: '1'
[1700985465] slot 0 released (214 tokens in cache)
[1700985523] slot 0 is processing [task id: 6]
[1700985523] slot 0 : kv cache rm - [0, end)
[1700985542] sampled token: 1551: 'To'
[1700985542] sampled token: 3825: ' output'
[1700985543] sampled token: 272: ' the'
[1700985543] sampled token: 1204: ' result'
[1700985543] sampled token: 297: ' in'
[1700985543] sampled token: 272: ' the'
[1700985543] sampled token: 6140: ' specified'
[1700985543] sampled token: 5032: ' format'
[1700985543] sampled token: 28725: ','
[1700985543] sampled token: 368: ' you'
[1700985544] sampled token: 541: ' can'
[1700985544] sampled token: 9239: ' modify'
[1700985544] sampled token: 272: ' the'
[1700985544] sampled token: 2696: ' code'
[1700985544] sampled token: 390: ' as'
[1700985544] sampled token: 6104: ' follows'
[1700985544] sampled token: 28747: ':'
[1700985545] sampled token: 13: '
'
[1700985545] sampled token: 13: '
'
[1700985545] sampled token: 13940: '``'
[1700985545] sampled token: 28832: '`'
[1700985545] sampled token: 20487: 'lua'
[1700985545] sampled token: 13: '
'
[1700985545] sampled token: 376: '--'
[1700985546] sampled token: 28808: '!'
[1700985546] sampled token: 28748: '/'
[1700985546] sampled token: 16785: 'usr'
[1700985546] sampled token: 28748: '/'
[1700985546] sampled token: 5721: 'bin'
[1700985546] sampled token: 28748: '/'
[1700985546] sampled token: 4227: 'env'
[1700985547] sampled token: 305: ' l'
[1700985547] sampled token: 3772: 'ua'
[1700985547] sampled token: 13: '
'
[1700985547] sampled token: 376: '--'
[1700985547] sampled token: 7043: ' Start'
[1700985547] sampled token: 302: ' of'
[1700985547] sampled token: 2188: ' user'
[1700985548] sampled token: 7427: ' configuration'
[1700985548] sampled token: 13: '
'
[1700985548] sampled token: 13: '
'
[1700985548] sampled token: 376: '--'
[1700985548] sampled token: 11924: ' Load'
[1700985548] sampled token: 2877: ' options'
[1700985548] sampled token: 304: ' and'
[1700985548] sampled token: 945: ' ke'
[1700985549] sampled token: 1082: 'ym'
[1700985549] sampled token: 1882: 'aps'
[1700985549] sampled token: 13: '
'
[1700985549] sampled token: 6351: 'require'
[1700985549] sampled token: 464: ' ''
[1700985549] sampled token: 3538: 'options'
[1700985549] sampled token: 28742: '''
[1700985550] sampled token: 13: '
'
[1700985550] sampled token: 6351: 'require'
[1700985550] sampled token: 464: ' ''
[1700985550] sampled token: 405: 'ke'
[1700985550] sampled token: 1082: 'ym'
[1700985550] sampled token: 1882: 'aps'
[1700985550] sampled token: 28742: '''
[1700985551] sampled token: 13: '
'
[1700985551] sampled token: 13: '
'
[1700985551] sampled token: 376: '--'
[1700985551] sampled token: 3286: ' Set'
[1700985551] sampled token: 582: ' up'
[1700985551] sampled token: 17898: ' lazy'
[1700985551] sampled token: 28723: '.'
[1700985552] sampled token: 16885: 'nv'
[1700985552] sampled token: 321: 'im'
[1700985552] sampled token: 13: '
'
[1700985552] sampled token: 3959: 'local'
[1700985552] sampled token: 543: ' la'
[1700985552] sampled token: 28764: 'z'
[1700985552] sampled token: 1416: 'yp'
[1700985553] sampled token: 498: 'ath'
[1700985553] sampled token: 327: ' ='
[1700985553] sampled token: 363: ' v'
[1700985553] sampled token: 321: 'im'
[1700985553] sampled token: 28723: '.'
[1700985553] sampled token: 5642: 'fn'
[1700985553] sampled token: 28723: '.'
[1700985554] sampled token: 3719: 'std'
[1700985554] sampled token: 1740: 'path'
[1700985554] sampled token: 464: ' ''
[1700985554] sampled token: 1056: 'data'
[1700985554] sampled token: 28742: '''
[1700985554] sampled token: 8072: ' ..'
[1700985554] sampled token: 7377: ' '/'
[1700985555] sampled token: 28714: 'l'
[1700985555] sampled token: 13478: 'azy'
[1700985555] sampled token: 28748: '/'
[1700985555] sampled token: 28714: 'l'
[1700985555] sampled token: 13478: 'azy'
[1700985555] sampled token: 28723: '.'
[1700985555] sampled token: 16885: 'nv'
[1700985556] sampled token: 321: 'im'
[1700985556] sampled token: 28742: '''
[1700985556] sampled token: 13: '
'
[1700985556] sampled token: 335: 'if'
[1700985556] sampled token: 459: ' not'
[1700985556] sampled token: 363: ' v'
[1700985556] sampled token: 321: 'im'
[1700985557] sampled token: 28723: '.'
[1700985557] sampled token: 9374: 'loop'
[1700985557] sampled token: 28723: '.'
[1700985557] sampled token: 2547: 'fs'
[1700985557] sampled token: 28730: '_'
[1700985557] sampled token: 5975: 'stat'
[1700985557] sampled token: 28732: '('
[1700985557] sampled token: 28714: 'l'
[1700985558] sampled token: 941: 'az'
[1700985558] sampled token: 1416: 'yp'
[1700985558] sampled token: 498: 'ath'
[1700985558] sampled token: 28731: ')'
[1700985558] sampled token: 868: ' then'
[1700985558] sampled token: 13: '
'
[1700985558] sampled token: 259: ' '
[1700985559] sampled token: 363: ' v'
[1700985559] sampled token: 321: 'im'
[1700985559] sampled token: 28723: '.'
[1700985559] sampled token: 5642: 'fn'
[1700985559] sampled token: 28723: '.'
[1700985559] sampled token: 6574: 'system'
[1700985559] sampled token: 371: ' {'
[1700985560] sampled token: 13: '
'
[1700985560] sampled token: 355: ' '
[1700985560] sampled token: 464: ' ''
[1700985560] sampled token: 12854: 'git'
[1700985560] sampled token: 647: '','
[1700985560] sampled token: 13: '
'
[1700985560] sampled token: 355: ' '
[1700985561] sampled token: 464: ' ''
[1700985561] sampled token: 10519: 'clone'
[1700985561] sampled token: 647: '','
[1700985561] sampled token: 13: '
'
[1700985561] sampled token: 355: ' '
[1700985561] sampled token: 464: ' ''
[1700985561] sampled token: 376: '--'
[1700985562] sampled token: 4650: 'filter'
[1700985562] sampled token: 28746: '='
[1700985562] sampled token: 17678: 'blob'
[1700985562] sampled token: 28747: ':'
[1700985562] sampled token: 8607: 'none'
[1700985562] sampled token: 647: '','
[1700985562] sampled token: 13: '
'
[1700985562] sampled token: 355: ' '
[1700985563] sampled token: 464: ' ''
[1700985563] sampled token: 3887: 'https'
[1700985563] sampled token: 1508: '://'
[1700985563] sampled token: 6222: 'github'
[1700985563] sampled token: 28723: '.'
[1700985563] sampled token: 675: 'com'
[1700985563] sampled token: 28748: '/'
[1700985564] sampled token: 5880: 'fol'
[1700985564] sampled token: 405: 'ke'
[1700985564] sampled token: 28748: '/'
[1700985564] sampled token: 28714: 'l'
[1700985564] sampled token: 13478: 'azy'
[1700985564] sampled token: 28723: '.'
[1700985564] sampled token: 16885: 'nv'
[1700985565] sampled token: 321: 'im'
[1700985565] sampled token: 28723: '.'
[1700985565] sampled token: 12854: 'git'
[1700985565] sampled token: 647: '','
[1700985565] sampled token: 13: '
'
[1700985565] sampled token: 355: ' '
[1700985565] sampled token: 464: ' ''
[1700985566] sampled token: 376: '--'
[1700985566] sampled token: 19175: 'branch'
[1700985566] sampled token: 28746: '='
[1700985566] sampled token: 17588: 'stable'
[1700985566] sampled token: 647: '','
[1700985566] sampled token: 1939: ' --'
[1700985566] sampled token: 7345: ' latest'
[1700985567] sampled token: 11311: ' stable'
[1700985567] sampled token: 5614: ' release'
[1700985567] sampled token: 13: '
'
[1700985567] slot 0 released (416 tokens in cache)

View File

@ -0,0 +1,32 @@
local keymap = vim.keymap
local opts = { noremap = true, silent = true }
local function defaultOpts(desc)
if desc == nil then
return { noremap = true, silent = true }
else
return { noremap = true, silent = true, desc = desc }
end
end
-- Buffer Navigation
keymap.set("n", "<leader>bn", "bnext", defaultOpts("Next Buffer"))
keymap.set("n", "<leader>bp", "bprevious", defaultOpts("Prev Buffer"))
keymap.set("n", "<leader>bb", "e #", defaultOpts("Switch Buffer"))
-- Directory Navigation
keymap.set("n", "<leader>of", ":Neotree toggle<CR>", defaultOpts("Neotree"))
-- Pane and Window Navigation
keymap.set("n", "<C-h>", "<C-w>h", defaultOpts("Navigate Left"))
keymap.set("n", "<C-j>", "<C-w>j", defaultOpts("Navigate Down"))
keymap.set("n", "<C-k>", "<C-w>k", defaultOpts("Navigate Up"))
keymap.set("n", "<C-l>", "<C-w>l", defaultOpts("Navigate Right"))
-- Window Management
keymap.set("n", "<leader>sv", ":vsplit<CR>", defaultOpts("Split Vertically"))
keymap.set("n", "<leader>sh", ":split<CR>", defaultOpts("Split Horizontally"))
-- Comments
vim.api.nvim_set_keymap("n", "<C-/>", "gcc", { noremap = false })
vim.api.nvim_set_keymap("v", "<C-/>", "gcc", { noremap = false })

View File

@ -0,0 +1,39 @@
-- Global
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- Settings
vim.opt.nu = true
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.wrap = false
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv 'HOME' .. '/.vim/undodir'
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.smartcase = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.signcolumn = 'yes'
vim.opt.isfname:append '@-@'
vim.opt.updatetime = 50
vim.opt.clipboard = 'unnamedplus'
vim.opt.spelllang = 'en_us'
vim.opt.spell = true
vim.opt.laststatus = 3
vim.opt.mouse:append("a")
vim.opt.number = true
vim.opt.relativenumber = true
-- Neovide
if vim.g.neovide then
vim.o.guifont = 'JetBrains Mono Nerd Font:h14'
vim.g.neovide_cursor_vfx_mode = 'railgun'
end

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,
}