Compare commits

...
18 Commits
Author SHA1 Message Date
venus 60478e6c0d feat: codecompanion integration with hermes, codex, and openai models directly 2026-10-10 19:50:46 -05:00
venus af1747c027 feat: added hermes as the preffered sidekick agent and added a variable for preffered agent 2026-10-07 16:26:59 -05:00
venus 25406f947f feat: added matugen and base16 for noctalia theme integration 2026-10-07 16:26:06 -05:00
venus 012ad82939 fixed a python issue 2026-09-26 22:25:32 -05:00
venus 56270124fb added bracey plugin for live web updating based on buffer for full live
preview
2026-09-10 16:33:24 -05:00
venus 6a146f4542 added vimtex and changed some plugins for rendering faster 2026-09-10 16:26:03 -05:00
venus 6a9b380f0c added support for images in buffer to help with vimtex 2026-09-05 17:00:38 -05:00
venus acd9f63ad6 added more keybinds 2026-08-14 05:16:20 -05:00
venus b040eeb6f0 added a keybind to open the prompts panel 2026-08-14 04:55:53 -05:00
venus 81eee03b79 removed antigravity, related keybind, and removed old codecompanion keybinds 2026-08-14 04:42:07 -05:00
venus 8d840a4e29 replaced codecompanion with sidekick for better gemini support, added a
few keybinds, need to add more
2026-08-14 04:38:54 -05:00
venus 84fa3b8363 added an antigravity plugin and custom keybind for integrated support 2026-08-14 04:08:16 -05:00
venus 999891e3a2 changed fold method to expression for code based auto folding 2026-08-14 03:52:18 -05:00
venus f55b90e55b added obsidian plugin 2026-08-14 03:49:32 -05:00
venus 9adc20950f added obsidian plugin, still not fully functional 2026-07-28 07:53:24 -05:00
venus 634d9250e5 added some keybinds and obsidian support 2026-07-28 07:52:57 -05:00
venus 04b57e60e6 implemented copilot integration as ghost text and simplified some
keyboard shortcuts
2026-07-24 07:24:45 -05:00
venus d04ef25170 added some keybinds for telescope. Still working on
codecompanion
2026-06-19 13:59:12 -05:00
20 changed files with 672 additions and 247 deletions
+8 -4
View File
@@ -15,9 +15,12 @@ require("lazy").setup({
{ import = "plugins" }, { import = "plugins" },
-- import the following list of plugins -- this is where i put plugins with minial settings -- import the following list of plugins -- this is where i put plugins with minial settings
{ {
'ThePrimeagen/vim-be-good',
"xiyaowong/transparent.nvim",
"karb94/neoscroll.nvim", --Smooth Scrolling "karb94/neoscroll.nvim", --Smooth Scrolling
-- 'paretje/nvim-man', -- man page syntax highlighting -- 'paretje/nvim-man', -- man page syntax highlighting
'fei6409/log-highlight.nvim', -- generic log syntax highlighting 'fei6409/log-highlight.nvim', -- generic log syntax highlighting
'mikevskater/nvim-colorpicker', --Color picking tool
'stevearc/conform.nvim', --auto formats certain text 'stevearc/conform.nvim', --auto formats certain text
'tpope/vim-commentary', -- commenting lines with shortcut 'tpope/vim-commentary', -- commenting lines with shortcut
'vigoux/ltex-ls.nvim', -- grammer checking 'vigoux/ltex-ls.nvim', -- grammer checking
@@ -25,24 +28,25 @@ require("lazy").setup({
-- 'vimpostor/vim-tpipeline', -- integrate with tmux status-line -- 'vimpostor/vim-tpipeline', -- integrate with tmux status-line
'kshenoy/vim-signature', -- tag lines 'kshenoy/vim-signature', -- tag lines
'mg979/vim-visual-multi', -- work on multiple lines at once 'mg979/vim-visual-multi', -- work on multiple lines at once
'obsidian-nvim/obsidian.nvim', -- Obsidian lsp plugin
'0xm4n/resize.nvim', -- adds commands to resize panes '0xm4n/resize.nvim', -- adds commands to resize panes
'nvim-tree/nvim-web-devicons', -- nerdfont! 'nvim-tree/nvim-web-devicons', -- nerdfont!
'TamaMcGlinn/vim-termhere', --simple terminal QOL 'TamaMcGlinn/vim-termhere', --simple terminal QOL
'smjonas/inc-rename.nvim', --lsp plugin for renaming variable
'basola21/PDFview', -- rendering pdfs in nvim 'basola21/PDFview', -- rendering pdfs in nvim
'rcarriga/nvim-notify', -- notification manager 'rcarriga/nvim-notify', -- notification manager
-- { 'jokajak/keyseer.nvim', version = '*' }, -- keybinds visualizer
{ 'turbio/bracey.vim', build = "npm install --prefix server"},
{ 'smjonas/inc-rename.nvim', config = true }, --lsp plugin for renaming variable
{ "m4xshen/hardtime.nvim", lazy = false, dependencies = { "MunifTanjim/nui.nvim" }}, --annoying { "m4xshen/hardtime.nvim", lazy = false, dependencies = { "MunifTanjim/nui.nvim" }}, --annoying
{ "nvzone/typr", dependencies = "nvzone/volt", cmd = { "Typr", "TyprStats" }, }, --typing practice { "nvzone/typr", dependencies = "nvzone/volt", cmd = { "Typr", "TyprStats" }, }, --typing practice
{ 'norcalli/nvim-colorizer.lua', config = function() require('colorizer').setup{"*"} end,}, -- preview colors { 'norcalli/nvim-colorizer.lua', config = function() require('colorizer').setup{"*"} end,}, -- preview colors
{ 'edluffy/hologram.nvim', auto_display = true,}, --image viewer -- { 'edluffy/hologram.nvim', auto_display = true,}, -- image viewer (replaced by 3rd/image.nvim)
{ "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart { "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart
{ 'akinsho/toggleterm.nvim', version = "*", config = true}, -- terminal toggling and commands { 'akinsho/toggleterm.nvim', version = "*", config = true}, -- terminal toggling and commands
{ 'nvim-java/nvim-java', config = function() require('java').setup() vim.lsp.enable('jdtls') end, }, --java QOL { 'nvim-java/nvim-java', config = function() require('java').setup() vim.lsp.enable('jdtls') end, }, --java QOL
-- disable matugen if not using noctalia shell -- disable matugen if not using noctalia shell
{ 'RRethy/base16-nvim', config = function() require('matugen').setup() end,}, --colorshceme for noctalia integration { 'RRethy/base16-nvim', config = function() require('matugen').setup() end,}, --colorshceme for noctalia integration
{ "lervag/vimtex", lazy = false, init = function() vim.g.vimtex_view_method = "zathura" end }, -- for latex editing -- { "lervag/vimtex", lazy = false, init = function() vim.g.vimtex_view_method = "zathura" end }, -- for latex editing
{ 'windwp/nvim-autopairs', event = "InsertEnter", config = true }, { 'windwp/nvim-autopairs', event = "InsertEnter", config = true },
{ "folke/ts-comments.nvim", event = "VeryLazy", }, -- qol for commenting { "folke/ts-comments.nvim", event = "VeryLazy", }, -- qol for commenting
{ "marcinjahn/gemini-cli.nvim", cmd = "Gemini", dependencies = { "folke/snacks.nvim", }, config = true, }, { "marcinjahn/gemini-cli.nvim", cmd = "Gemini", dependencies = { "folke/snacks.nvim", }, config = true, },
+113
View File
@@ -0,0 +1,113 @@
let SessionLoad = 1
let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-1 siso=-1
let v:this_session=expand("<sfile>:p")
doautoall SessionLoadPre
silent only
silent tabonly
cd ~/.config/nvim
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
let s:shortmess_save = &shortmess
set shortmess+=aoO
badd +35 lua/keybinds.lua
badd +27 lua/custom-functions.lua
argglobal
%argdel
$argadd lua/keybinds.lua
edit lua/keybinds.lua
let s:save_splitbelow = &splitbelow
let s:save_splitright = &splitright
set splitbelow splitright
wincmd _ | wincmd |
vsplit
wincmd _ | wincmd |
vsplit
2wincmd h
wincmd w
wincmd w
let &splitbelow = s:save_splitbelow
let &splitright = s:save_splitright
wincmd t
let s:save_winminheight = &winminheight
let s:save_winminwidth = &winminwidth
set winminheight=0
set winheight=1
set winminwidth=0
set winwidth=1
exe 'vert 1resize ' . ((&columns * 30 + 106) / 212)
exe 'vert 2resize ' . ((&columns * 90 + 106) / 212)
exe 'vert 3resize ' . ((&columns * 90 + 106) / 212)
argglobal
enew
file NvimTree_1
balt lua/keybinds.lua
setlocal foldmethod=manual
setlocal foldexpr=0
setlocal foldmarker={{{,}}}
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal nofoldenable
wincmd w
argglobal
balt lua/custom-functions.lua
setlocal foldmethod=marker
setlocal foldexpr=v:lua.vim.treesitter.foldexpr()
setlocal foldmarker={{{,}}}
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal foldenable
let s:l = 35 - ((12 * winheight(0) + 24) / 48)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 35
normal! 0136|
wincmd w
argglobal
if bufexists(fnamemodify("term://~/.config/nvim//1942532:/usr/bin/zsh;\#toggleterm\#1", ":p")) | buffer term://~/.config/nvim//1942532:/usr/bin/zsh;\#toggleterm\#1 | else | edit term://~/.config/nvim//1942532:/usr/bin/zsh;\#toggleterm\#1 | endif
if &buftype ==# 'terminal'
silent file term://~/.config/nvim//1942532:/usr/bin/zsh;\#toggleterm\#1
endif
balt lua/keybinds.lua
setlocal foldmethod=marker
setlocal foldexpr=0
setlocal foldmarker={{{,}}}
setlocal foldignore=#
setlocal foldlevel=0
setlocal foldminlines=1
setlocal foldnestmax=20
setlocal nofoldenable
let s:l = 3 - ((2 * winheight(0) + 24) / 48)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 3
normal! 033|
wincmd w
exe 'vert 1resize ' . ((&columns * 30 + 106) / 212)
exe 'vert 2resize ' . ((&columns * 90 + 106) / 212)
exe 'vert 3resize ' . ((&columns * 90 + 106) / 212)
tabnext 1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf
endif
unlet! s:wipebuf
set winheight=1 winwidth=20
let &shortmess = s:shortmess_save
let &winminheight = s:save_winminheight
let &winminwidth = s:save_winminwidth
let s:sx = expand("<sfile>:p:r")."x.vim"
if filereadable(s:sx)
exe "source " . fnameescape(s:sx)
endif
let &g:so = s:so_save | let &g:siso = s:siso_save
set hlsearch
nohlsearch
doautoall SessionLoadPost
unlet SessionLoad
" vim: set ft=vim :
-66
View File
@@ -1,66 +0,0 @@
{
"PDFview": { "branch": "main", "commit": "972dfcce5c0de578865649940f44bf57a700498d" },
"base16-nvim": { "branch": "master", "commit": "23e5128eb5f629c29532c24a1e733cbe019f05bb" },
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"codecompanion.nvim": { "branch": "main", "commit": "6cbbcb4503430644f04ea5f087c8e2ea4cdc6f6e" },
"conform.nvim": { "branch": "master", "commit": "619363c30309d29ffa631e67c8183f2a72caa373" },
"dashboard-nvim": { "branch": "master", "commit": "f787e3462c2ee2b6117b17c1aa4ddf66cb6f57fe" },
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
"fd": { "branch": "master", "commit": "f7d4d717c287a7834f8721efc0fa91c51d92afee" },
"fzf-lua": { "branch": "main", "commit": "988416cc782dfe28bff3f0da9b8c943b236cd86a" },
"gemini-cli.nvim": { "branch": "main", "commit": "c9fd62adda823628f5131a939d9c56ef7a898600" },
"gitsigns.nvim": { "branch": "main", "commit": "25050e4ed39e628282831d4cbecb1850454ce915" },
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
"hardtime.nvim": { "branch": "main", "commit": "b4e431934af1fe224a3a801f632c008278cb7628" },
"hex.nvim": { "branch": "master", "commit": "b46e63356a69e8d6f046c38a9708d55d17f15038" },
"hologram.nvim": { "branch": "main", "commit": "f5194f71ec1578d91b2e3119ff08e574e2eab542" },
"hyprlang-to-lua.nvim": { "branch": "main", "commit": "477430d9f379736bc2260086eb63517bb585b5d8" },
"inc-rename.nvim": { "branch": "main", "commit": "0074b551a17338ccdcd299bd86687cc651bcb33d" },
"jq.nvim": { "branch": "main", "commit": "70e12681b1026ba7c06c691fd815eed0e2244b81" },
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
"lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" },
"log-highlight.nvim": { "branch": "main", "commit": "b2e00cfd41ca94338265a595f3f3f423d9f9322e" },
"ltex-ls.nvim": { "branch": "main", "commit": "968eac261279d88d7f1ed556aa2dbc535a7489fe" },
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "0a695750d747db1e7e70bcf0267ef8951c95fc83" },
"mason.nvim": { "branch": "main", "commit": "16ba83bfc8a25f52bb545134f5bee082b195c460" },
"mini.nvim": { "branch": "main", "commit": "cbae4fa396bbf9c802b3d2dc2e9c5362e8fb9468" },
"mini.pick": { "branch": "main", "commit": "34fdef3b0966974378c4f39e3ddb54ffc628fbe9" },
"neogit": { "branch": "master", "commit": "99326a1310fb2d616b455d2fd16d01bf00682f06" },
"neoscroll.nvim": { "branch": "master", "commit": "c8d29979cb0cb3a2437a8e0ae683fd82f340d3b8" },
"nui-components.nvim": { "branch": "main", "commit": "1654dd709f13874089eefc80d82e0eb667f7fdfb" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-autopairs": { "branch": "master", "commit": "7b9923abad60b903ece7c52940e1321d39eccc79" },
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
"nvim-dap": { "branch": "master", "commit": "531771530d4f82ad2d21e436e3cc052d68d7aebb" },
"nvim-java": { "branch": "main", "commit": "602a5f7fa92f9c1d425a2159133ff9de86842f0a" },
"nvim-lspconfig": { "branch": "master", "commit": "229b79051b380377664edc4cbd534930154921a1" },
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
"nvim-tree.lua": { "branch": "master", "commit": "07f541fcaa4a5ae019598240362449ab7e9812b3" },
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
"nvim-web-devicons": { "branch": "master", "commit": "dfbfaa967a6f7ec50789bead7ef87e336c1fa63c" },
"obsidian.nvim": { "branch": "main", "commit": "239af7e896d1857d0a644253d2c7e571d38529a5" },
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
"remote-nvim.nvim": { "branch": "main", "commit": "9992c2fb8bf4f11aca2c8be8db286b506f92efcb" },
"render-markdown.nvim": { "branch": "main", "commit": "5adf0895310c1904e5abfaad40a2baad7fe44a07" },
"resize.nvim": { "branch": "main", "commit": "0b8943ef2ce54e65b9e56974e94dee593b28e7b5" },
"ripgrep": { "branch": "master", "commit": "48a6ad93f152dc848f1883ceb3bf2c7baab6738c" },
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
"spring-boot.nvim": { "branch": "main", "commit": "218c0c26c14d99feca778e4d13f5ec3e8b1b60f0" },
"sudo.nvim": { "branch": "main", "commit": "10c211716f0f0149ea91732bc12338ade76d4af8" },
"telescope.nvim": { "branch": "master", "commit": "e69b434b968a33815e2f02a5c7bd7b8dd4c7d4b2" },
"themery.nvim": { "branch": "main", "commit": "bfa58f4b279d21cb515b28023e1b68ec908584b2" },
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
"ts-comments.nvim": { "branch": "main", "commit": "123a9fb12e7229342f807ec9e6de478b1102b041" },
"typr": { "branch": "main", "commit": "584e4ef34dea25a4035627794322f315b22d1253" },
"vim-commentary": { "branch": "master", "commit": "64a654ef4a20db1727938338310209b6a63f60c9" },
"vim-signature": { "branch": "master", "commit": "6bc3dd1294a22e897f0dcf8dd72b85f350e306bc" },
"vim-termhere": { "branch": "main", "commit": "b66d429dd48b74802f09fd059bc499c253372a1c" },
"vim-visual-multi": { "branch": "master", "commit": "a6975e7c1ee157615bbc80fc25e4392f71c344d4" },
"vimtex": { "branch": "master", "commit": "24e229914182ff301496a3e2c4214b28c4928d3f" },
"volt": { "branch": "main", "commit": "620de1321f275ec9d80028c68d1b88b409c0c8b1" },
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
}
+17
View File
@@ -11,6 +11,8 @@ end
local kitty_group = vim.api.nvim_create_augroup("KittyOpacity", { clear = true }) local kitty_group = vim.api.nvim_create_augroup("KittyOpacity", { clear = true })
vim.api.nvim_create_autocmd("VimEnter", { vim.api.nvim_create_autocmd("VimEnter", {
vim.api.nvim_set_hl(0, "Normal", { bg = "NONE", ctermbg = "NONE" }),
vim.api.nvim_set_hl(0, "NormalNC", { bg = "NONE", ctermbg = "NONE" }),
group = kitty_group, group = kitty_group,
callback = function() callback = function()
set_kitty_opacity(nvim_opacity) set_kitty_opacity(nvim_opacity)
@@ -24,3 +26,18 @@ vim.api.nvim_create_autocmd("VimLeave", {
end, end,
}) })
vim.api.nvim_create_autocmd('TextYankPost', {
desc = 'Highlight when yanking (copying) text',
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
callback = function()
vim.hl.on_yank()
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = { "toggleterm", "NvimTree", "help", "dashboard" },
callback = function()
vim.b.miniindentscope_disable = true
end,
})
+4
View File
@@ -3,6 +3,7 @@ require('lspconfig')
local lsp_servers = { local lsp_servers = {
'clangd', 'clangd',
'pyright', 'pyright',
'bashls',
'lua_ls', 'lua_ls',
} }
for _, server in ipairs(lsp_servers) do for _, server in ipairs(lsp_servers) do
@@ -24,6 +25,9 @@ for _, server in ipairs(lsp_servers) do
}, },
} }
end end
if server == 'bashls' then
config.filetypes = { 'sh', 'bash', 'zsh' }
end
-- Apply the config and enable -- Apply the config and enable
vim.lsp.config(server, config) vim.lsp.config(server, config)
+18
View File
@@ -16,6 +16,24 @@ function C.RunCommand(Command)
end, 50) end, 50)
return "" return ""
end end
-- Save current layout snapshot
-- vim.keymap.set("n", "<leader>ss", function()
function C.saveSnapshot()
vim.cmd("mksession! " .. vim.fn.stdpath("config") .. "/layout_snap.vim")
print("Layout snapshot saved.")
end
-- Restore layout snapshot
-- vim.keymap.set("n", "<leader>sr", function()
function C.returnSnapshot()
local path = vim.fn.stdpath("config") .. "/layout_snap.vim"
if vim.fn.filereadable(path) == 1 then
vim.cmd("source " .. path)
print("Layout snapshot restored.")
else
print("No layout snapshot found.")
end
end
return C return C
+50 -26
View File
@@ -9,13 +9,17 @@ vim.cmd('silent! tmapclear') -- Clears Terminal maps
-- ========================================== -- ==========================================
-- Define your current keymaps below this line -- Define your current keymaps below this line
-- ========================================== -- ==========================================
vim.keymap.set('n', '<leader>w', ':w<CR>')
package.loaded["custom-functions"] = nil package.loaded["custom-functions"] = nil
local utils = require("custom-functions") local utils = require("custom-functions")
-- move betwwen buffer easier -- move betwwen buffers and tabs easier
vim.keymap.set('n','<Tab>' ,':bnext<CR>') vim.keymap.set('n','<Tab>' ,':bnext<CR>')
vim.keymap.set('n','<S-Tab>' ,':bprev<CR>') vim.keymap.set('n','<S-Tab>' ,':bprev<CR>')
vim.keymap.set('n','<C-Tab>' ,':tabNext<CR>') --TODO fix these
vim.keymap.set('n','<C-S-Tab>' ,':tabprevious<CR>')
vim.keymap.set('n','<leader>tx' ,':tabclose<CR>')
vim.keymap.set('n','<leader>tn' ,':tabnew<CR>')
vim.keymap.set('n','<leader>bx' ,':bdelete<CR>')
vim.keymap.set('n','<leader>x' ,':bdelete<CR>') vim.keymap.set('n','<leader>x' ,':bdelete<CR>')
-- resizing pains with resize.lua shortcut -- resizing pains with resize.lua shortcut
vim.keymap.set('n','<M-Left>' ,"<cmd>lua require('resize').ResizeLeft()<CR>") vim.keymap.set('n','<M-Left>' ,"<cmd>lua require('resize').ResizeLeft()<CR>")
@@ -25,14 +29,36 @@ vim.keymap.set('n','<M-Down>' ,"<cmd>lua require('resize').ResizeDown()<CR>")
-- terminal interface shortcuts -- terminal interface shortcuts
vim.keymap.set('n','<Esc>' ,'<cmd>nohlsearch<CR>') vim.keymap.set('n','<Esc>' ,'<cmd>nohlsearch<CR>')
vim.keymap.set('t','<Esc><Esc>' ,'<C-\\><C-n>' ,{ desc = 'Exit terminal mode' }) vim.keymap.set('t','<Esc><Esc>' ,'<C-\\><C-n>' ,{ desc = 'Exit terminal mode' })
vim.keymap.set('n','<leader>r' ,'<cmd>TermExec cmd="clear && make"<CR>' ,{ desc = '[r]un make in terminal' }) vim.keymap.set('t','<C-h>' ,'<C-\\><C-n><C-w><C-h>' ,{ desc = 'Move focus to the left window' })
vim.keymap.set('n','<leader>l' ,function() utils.RunCommand("l") end ,{ desc = 'run [l]ast command in terminal' }) -- vim.keymap.set('n','<leader>r' ,'<cmd>TermExec cmd="clear && make"<CR>' ,{ desc = '[r]un make in terminal' })
vim.keymap.set('n','<leader>L' ,function() utils.RunCommand("l") end ,{ desc = 'run [l]ast command in terminal' })
vim.keymap.set('n','<C-CR>' ,function() utils.RunCommand("l") end ,{ desc = 'run [l]ast command in terminal' })
vim.keymap.set('n','<leader>ss' ,function() utils.saveSnapshot() end ,{ desc = '[S]ave a [S]napshot of the current windows' })
vim.keymap.set('n','<leader>sr' ,function() utils.returnSnapshot() end ,{ desc = '[R]eturn to saved [S]napshot' })
vim.keymap.set('n','<leader>n' ,'<cmd>ToggleTerm direction=vertical name=compile size=70<CR>', { desc = 'open a [n]ew terminal' }) vim.keymap.set('n','<leader>n' ,'<cmd>ToggleTerm direction=vertical name=compile size=70<CR>', { desc = 'open a [n]ew terminal' })
vim.keymap.set('n','<leader>t' ,'<cmd>ToggleTerm<CR>' ,{desc = '[T]oggle all terminals'}) vim.keymap.set('n','<leader>te' ,'<cmd>ToggleTerm<CR>' ,{desc = '[T]oggle all terminals'})
vim.keymap.set("n","<leader>e" ,"<cmd>NvimTreeToggle<CR>" ,{desc = 'open [E]xplorer'}) vim.keymap.set("n","<leader>e" ,"<cmd>NvimTreeToggle<CR>" ,{desc = 'open [E]xplorer'})
vim.keymap.set("n","<leader>E" ,"<cmd>e!<CR>" ,{desc = '[E]dit current file from disk'})
vim.keymap.set("n","<M-r>" ,"<cmd>e!<CR>" ,{desc = '[E]dit current file from disk'})
-- Diagnostic keymaps -- Diagnostic keymaps
vim.keymap.set('n', '<leader>q' ,vim.diagnostic.setloclist ,{ desc = 'Open diagnostic [Q]uickfix list' }) vim.keymap.set('n', '<leader>q' ,vim.diagnostic.setloclist ,{ desc = 'Open diagnostic [Q]uickfix list' })
vim.keymap.set("n", "<leader>R" ,"<cmd>source %<Cr>:echo 'Config reloaded!'<CR>" ,{ desc = "[S]ource config file"}) vim.keymap.set("n", "<leader>R" ,"<cmd>source %<Cr>:echo 'Config reloaded!'<CR>" ,{ desc = "[S]ource config file"})
vim.keymap.set("n", "<leader><C-R>k" ,"<cmd>source /home/venus/.config/nvim/lua/keybinds.lua<Cr>:echo 'Config reloaded!'<CR>" ,{ desc = "[R]eload [k]eybinds"})
vim.keymap.set("n", "<leader><C-R>c" ,"<cmd>source /home/venus/.config/nvim/lua/autocommands.lua<Cr>:echo 'Config reloaded!'<CR>" ,{ desc = "[R]eload [a]utocommands"})
vim.keymap.set("n", "<leader><C-R>o" ,"<cmd>source /home/venus/.config/nvim/lua/options.lua<Cr>:echo 'Config reloaded!'<CR>" ,{ desc = "[R]eload [o]ptions"})
-- LSP functions
vim.keymap.set('n', 'gd' ,vim.lsp.buf.definition, { desc = "LSP Go to Definition" })
vim.keymap.set('n', 'gr' ,'<cmd>Telescope lsp_references<cr>' ,{ desc = "LSP [R]eferences" })
vim.keymap.set('n', 'gi' ,'<cmd>Telescope lsp_implementations<cr>' ,{ desc = "LSP [I]mplementations" })
vim.keymap.set('n', 'gs' ,'<cmd>Telescope lsp_document_symbols<cr>' ,{ desc = "LSP Document [S]ymbols" })
vim.keymap.set('n', 'sk' ,'<cmd>Telescope keymaps<cr>' ,{ desc = "[S]earch [K]eymaps" })
vim.keymap.set('n', 'sd' ,'<cmd>Telescope diagnostics<cr>' ,{ desc = "[S]earch [D]iagnostics" })
vim.keymap.set('n', 'sw' ,'<cmd>Telescope grep_string<cr>' ,{ desc = "[S]earch current [W]ord" })
vim.keymap.set('n', '<leader>ff' ,'<cmd>Telescope find_files<cr>' ,{ desc = 'Telescope find files' })
vim.keymap.set('n', '<leader>fg' ,'<cmd>Telescope live_grep<cr>' ,{ desc = 'Telescope live grep' })
vim.keymap.set('n', '<leader>fb' ,'<cmd>Telescope buffers<cr>' ,{ desc = 'Telescope buffers' })
vim.keymap.set('n', '<leader>fh' ,'<cmd>Telescope help_tags<cr>' ,{ desc = 'Telescope help tags' })
vim.keymap.set('n', '<leader>tt' ,'<cmd>Telescope<cr>' ,{ desc = 'Open [T]elescope' })
-- Disable arrow keys in normal mode -- Disable arrow keys in normal mode
vim.keymap.set('n','<left>' ,'<cmd>echo "Use h to move!!"<CR>') vim.keymap.set('n','<left>' ,'<cmd>echo "Use h to move!!"<CR>')
@@ -53,15 +79,15 @@ vim.keymap.set("n","<C-S-j>" ,"<C-w>J" ,{ desc = "Move window to the lower
vim.keymap.set("n","<C-S-k>" ,"<C-w>K" ,{ desc = "Move window to the upper" }) vim.keymap.set("n","<C-S-k>" ,"<C-w>K" ,{ desc = "Move window to the upper" })
-- [[ Basic QOL -- [[ Basic QOL
-- vim.keymap.set("n", "<leader>a", ":IncRename ", {desc = 'ren[A]me variable under cursor'}) vim.keymap.set("n", "<leader>rn" ,":IncRename " ,{ desc = '[R]e[n]ame variable under cursor'})
vim.keymap.set('n', '<leader>I' ,'<cmd>GuessIndent<cr>' ,{ desc = '[G]uess Indent level' })
vim.keymap.set("n", "<leader>i" ,"m'gg=G''" ,{ desc = "Re-indent whole file" })
vim.keymap.set("n", "<leader>y" ,"m'ggyG''" ,{ desc = "[Y]ank whole file" })
vim.keymap.set("n", "<C-A>" ,"m'ggyG''" ,{ desc = "[Y]ank whole file" })
vim.keymap.set("n", "<leader>sr" ,[[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]] ,{ desc = "[S]earch/[R]eplace word under cursor" })
-- PLUGIN KEYBINDS -- PLUGIN KEYBINDS
vim.keymap.set({ "n", "v" } ,"<leader>aa" ,"<cmd>CodeCompanionActions<cr>" ,{ desc = "CodeCompanion - Actions" }) -- TODO move these to their respective plugin files (for lazy recognition)
vim.keymap.set({ "n", "v" } ,"<leader>ac" ,"<cmd>CodeCompanionChat Toggle<cr>" ,{ desc = "CodeCompanion - Chat" })
vim.keymap.set({ "n", "v" } ,"<leader>ai" ,"<cmd>CodeCompanion<cr>" ,{ desc = "CodeCompanion - Inline" })
vim.keymap.set("v" ,"<leader>ad" ,"<cmd>CodeCompanionChat Add<cr>" ,{ desc = "CodeCompanion - Add to Chat" })
-- Expand 'cc' into 'CodeCompanion' in the command line
vim.cmd([[cab cc CodeCompanion]])
--spellcheck keybind to toggle on current buffer --spellcheck keybind to toggle on current buffer
vim.keymap.set('n',"<leader>ze" ,"<cmd>setlocal spell<cr>" ,{ desc = "enable spellecheck on buffer" }) vim.keymap.set('n',"<leader>ze" ,"<cmd>setlocal spell<cr>" ,{ desc = "enable spellecheck on buffer" })
@@ -74,20 +100,18 @@ vim.keymap.set('n', '<leader>hh' ,'<cmd>Hex<CR>' ,{ desc = 'open [H]ex view
-- <leader>gg bound to UI toggle -- <leader>gg bound to UI toggle
vim.keymap.set('n', '<leader>gg' ,'<cmd>Neogit<cr>' ,{ desc = 'open Neo[g]it interface' }) vim.keymap.set('n', '<leader>gg' ,'<cmd>Neogit<cr>' ,{ desc = 'open Neo[g]it interface' })
vim.keymap.set('n', '<leader>gc' ,'<cmd>Neogit commit<cr>' ,{ desc = 'open Neogit [c]ommit page' }) vim.keymap.set('n', '<leader>gc' ,'<cmd>Neogit commit<cr>' ,{ desc = 'open Neogit [c]ommit page' })
vim.keymap.set('n', '<leader>gd' ,'<cmd>Neogit diff<cr>' ,{ desc = 'open Neogit [d]iff page' })
vim.keymap.set('n', '<leader>gt' ,'<cmd>Neogit tagg<cr>' ,{ desc = 'open Neogit [t]agg page' })
-- Obsidian
vim.keymap.set("n", "gf", function()
if require("obsidian").util.cursor_on_markdown_link() then
return "ObsidianFollowLink"
else
return "gf"
end
end, { expr = true, desc = "Follow Obsidian link" })
-- Telecope vim.keymap.set("n", "<leader>os" , "ObsidianSearch" , { desc = "Search Obsidian" })
vim.keymap.set('n', '<leader>ff' ,'<cmd>Telescope find_files<cr>' ,{ desc = 'Telescope find files' }) vim.keymap.set("n", "<leader>on" , "ObsidianNew" , { desc = "New Obsidian note" })
vim.keymap.set('n', '<leader>fg' ,'<cmd>Telescope live_grep<cr>' ,{ desc = 'Telescope live grep' })
vim.keymap.set('n', '<leader>fb' ,'<cmd>Telescope buffers<cr>' ,{ desc = 'Telescope buffers' })
vim.keymap.set('n', '<leader>fh' ,'<cmd>Telescope help_tags<cr>' ,{ desc = 'Telescope help tags' })
+16 -16
View File
@@ -3,24 +3,24 @@
function M.setup() function M.setup()
require('base16-colorscheme').setup { require('base16-colorscheme').setup {
-- Background tones -- Background tones
base00 = '#121316', -- Default Background base00 = '#191724', -- Default Background
base01 = '#1e2022', -- Lighter Background (status bars) base01 = '#26233a', -- Lighter Background (status bars)
base02 = '#282a2d', -- Selection Background base02 = '#2e2b47', -- Selection Background
base03 = '#8d9199', -- Comments, Invisibles base03 = '#656278', -- Comments, Invisibles
-- Foreground tones -- Foreground tones
base04 = '#c3c6cf', -- Dark Foreground (status bars) base04 = '#908caa', -- Dark Foreground (status bars)
base05 = '#e2e2e6', -- Default Foreground base05 = '#e0def4', -- Default Foreground
base06 = '#e2e2e6', -- Light Foreground base06 = '#e0def4', -- Light Foreground
base07 = '#e2e2e6', -- Lightest Foreground base07 = '#e0def4', -- Lightest Foreground
-- Accent colors -- Accent colors
base08 = '#ffb4ab', -- Variables, XML Tags, Errors base08 = '#eb6f92', -- Variables, XML Tags, Errors
base09 = '#d7bee4', -- Integers, Constants base09 = '#31748f', -- Integers, Constants
base0A = '#bbc7db', -- Classes, Search Background base0A = '#9ccfd8', -- Classes, Search Background
base0B = '#9fcaff', -- Strings, Diff Inserted base0B = '#ebbcba', -- Strings, Diff Inserted
base0C = '#d7bee4', -- Regex, Escape Chars base0C = '#96d1e9', -- Regex, Escape Chars
base0D = '#9fcaff', -- Functions, Methods base0D = '#e99996', -- Functions, Methods
base0E = '#bbc7db', -- Keywords, Storage base0E = '#96dce9', -- Keywords, Storage
base0F = '#93000a', -- Deprecated, Embedded Tags base0F = '#961137', -- Deprecated, Embedded Tags
} }
end end
+2 -1
View File
@@ -6,7 +6,6 @@
vim.g.mapleader = ' ' vim.g.mapleader = ' '
vim.g.maplocalleader = ' ' vim.g.maplocalleader = ' '
vim.g.have_nerd_font = true vim.g.have_nerd_font = true
vim.g.loaded_netrw = 1 vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1 vim.g.loaded_netrwPlugin = 1
@@ -17,6 +16,7 @@ vim.opt.spellcapcheck = ""
vim.o.number = true -- Make line numbers default vim.o.number = true -- Make line numbers default
vim.o.relativenumber = true vim.o.relativenumber = true
vim.o.showmode = false vim.o.showmode = false
vim.o.foldmethod = "expr"
-- Sync clipboard between OS and Neovim. -- Sync clipboard between OS and Neovim.
-- Schedule the setting after `UiEnter` because it can increase startup-time. -- Schedule the setting after `UiEnter` because it can increase startup-time.
-- Remove this option if you want your OS clipboard to remain independent. -- Remove this option if you want your OS clipboard to remain independent.
@@ -63,4 +63,5 @@ vim.opt.termguicolors = true -- required for colorizer
require('autocommands') require('autocommands')
vim.env.PATH = vim.fn.stdpath("data") .. "/mason/bin" .. ":" .. vim.env.PATH vim.env.PATH = vim.fn.stdpath("data") .. "/mason/bin" .. ":" .. vim.env.PATH
vim.g.python3_host_prog = vim.fn.expand("~/.local/share/nvim/venv/bin/python")
+6
View File
@@ -0,0 +1,6 @@
return { 'RRethy/base16-nvim',
config = function()
local ok, matugen = pcall(require, 'matugen')
if ok then matugen.setup() end
end,
}
+84 -72
View File
@@ -1,74 +1,86 @@
return { return {
"olimorris/codecompanion.nvim", "olimorris/codecompanion.nvim",
dependencies = { version = "^19.0.0",
"nvim-lua/plenary.nvim", dependencies = {
"nvim-treesitter/nvim-treesitter", "nvim-lua/plenary.nvim",
}, "nvim-treesitter/nvim-treesitter",
opts = { },
display = { opts = {
chat = { adapters = {
window = { acp = {
layout = "vertical", hermes = function()
width = 0.35, local adapter = require("codecompanion.adapters").extend("codex", {
height = 0.35, name = "hermes",
}, formatted_name = "Hermes",
keymaps = { commands = {
close = { default = {
modes = { vim.fn.exepath("hermes") ~= "" and vim.fn.exepath("hermes") or "hermes",
n = "q", -- Bind "q" in normal mode to close the chat "acp",
}, },
index = 1, },
callback = "keymaps.close", defaults = {
description = "Close Chat", auth_method = "openai-codex",
}, timeout = 20000,
} mcpServers = {},
}, },
}, })
interactions = {
chat = { -- Hermes resolves credentials from its own configuration.
adapter = "gemini_pro", -- Removed the curly braces adapter.env = {}
}, return adapter
inline = { end,
adapter = "gemini_flash", -- Removed the curly braces extend = {
}, codex = {
}, defaults = {
background = { auth_method = "chat-gpt",
adapter = "ollama_bg", -- Pointed this to the new extended adapter string },
}, },
adapters = { },
http = { },
gemini_pro = function() http = {
return require("codecompanion.adapters").extend("gemini", { extend = {
name = "gemini_pro", openai_responses = {
schema = { schema = {
model = { model = {
default = "gemini-3.5-flash", default = "gpt-5.6-terra",
}, },
}, },
}) },
end, },
gemini_flash = function() openai_terra = function()
return require("codecompanion.adapters").extend("gemini", { return require("codecompanion.adapters").extend("openai_responses", {
name = "gemini_flash", name = "openai_terra",
schema = { formatted_name = "OpenAI: GPT-5.6 Terra",
model = { schema = {
default = "gemini-2.0-flash", model = {
}, default = "gpt-5.6-terra",
}, },
}) },
end, })
-- Added an extended Ollama adapter to fix your background task end,
ollama_bg = function() openai_luna = function()
return require("codecompanion.adapters").extend("ollama", { return require("codecompanion.adapters").extend("openai_responses", {
name = "ollama_bg", name = "openai_luna",
schema = { formatted_name = "OpenAI: GPT-5.6 Luna",
model = { schema = {
default = "qwen-7b-instruct", model = {
}, default = "gpt-5.6-luna",
}, },
}) },
end, })
}, end,
}, },
} },
interactions = {
chat = {
adapter = "hermes",
},
inline = {
adapter = {
name = "openai_responses",
model = "gpt-5.6-terra",
},
},
},
},
} }
+17
View File
@@ -0,0 +1,17 @@
return {
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
opts = {
suggestion = {
enabled = false,
-- debounce = 150,
-- auto_trigger = true,
-- keymap = { accept = "M-CR"}
},
panel = { enabled = false },
},
},
{ "giuxtaposition/blink-cmp-copilot", dependencies = { "zbirenbaum/copilot.lua" } }
}
+6 -4
View File
@@ -1,8 +1,10 @@
return { return {
'NMAC427/guess-indent.nvim', 'NMAC427/guess-indent.nvim',
config = function() config = function()
require('guess-indent').setup ({ require('guess-indent').setup {
filetype_exclude = {"lua"}, auto_cmd = true, -- Set to false to disable automatic execution
}) filetype_exclude = { 'netrw', 'tutor' }, -- A list of filetypes for which the auto command gets disabled
buftype_exclude = { 'help', 'nofile', 'terminal', 'prompt' }, -- A list of buffer types for which the auto command gets disabled
}
end, end,
} -- Detect tabstop and shiftwidth automatically } -- Detect tabstop and shiftwidth automatically
+24
View File
@@ -0,0 +1,24 @@
return {
"3rd/image.nvim",
event = "VeryLazy",
opts = {
backend = "kitty",
processor = "magick_cli", -- Uses your system's ImageMagick CLI directly
integrations = {
markdown = {
enabled = true,
clear_in_insert_mode = false,
download_remote_images = true,
only_render_image_at_cursor = false,
},
},
max_width = nil,
max_height = nil,
max_height_window_percentage = math.huge,
max_width_window_percentage = math.huge,
window_overlap_clear_enabled = true,
-- Automatically hijack and render PDF files inside Neovim buffers
hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp", "*.pdf" },
},
}
+86 -58
View File
@@ -10,71 +10,99 @@ return { -- adds lsp functionality and api for included languages
opts = opts =
{ {
keymap = { keymap = {
preset = 'none', preset = 'none',
['<Down>'] = { 'select_next', 'fallback' }, ['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' },
['<Up>'] = { 'select_prev', 'fallback' }, ['<C-e>'] = { 'hide', 'fallback' },
['<Tab>'] = { 'accept', 'fallback' }, -- Use home-row modifications for navigation
['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' }, ['<C-n>'] = { 'select_next', 'fallback' },
['<C-p>'] = { 'select_prev', 'fallback' },
-- A robust Tab behavior that accepts selections and jumps through snippets
['<Tab>'] = {
function(cmp)
if cmp.is_visible() then return cmp.accept() end
if cmp.snippet_active() then return cmp.snippet_forward() end
end,
'fallback'
},
['<S-Tab>'] = {
function(cmp)
if cmp.snippet_active() then return cmp.snippet_backward() end
end,
'fallback'
},
}, },
sources = { -- keymap = {
default = { 'lsp', 'path', 'snippets', 'buffer' }, -- preset = 'none',
-- ['<Down>'] = { 'select_next', 'fallback' },
-- ['<Up>'] = { 'select_prev', 'fallback' },
-- ['<Tab>'] = { 'accept', 'fallback' },
-- ['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' },
-- },
sources = {
default = { 'lsp', 'path', 'snippets', 'buffer', 'copilot' },
providers = {
copilot = { name = 'copilot', module = 'blink-cmp-copilot', score_offset = 100, async = true }
},
},
completion = {
ghost_text = { enabled = true },
},
}, },
}, },
}, {
{
'MeanderingProgrammer/render-markdown.nvim', 'MeanderingProgrammer/render-markdown.nvim',
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.nvim' }, -- if you use the mini.nvim suite dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.nvim' }, -- if you use the mini.nvim suite
---@module 'render-markdown' ---@module 'render-markdown'
}, },
config = function() config = function()
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
-- Since you are using blink.cmp, extract its capabilities -- Since you are using blink.cmp, extract its capabilities
local capabilities = require('blink.cmp').get_lsp_capabilities() local capabilities = require('blink.cmp').get_lsp_capabilities()
-- Configure OmniSharp for C# / nanoFramework development -- Configure OmniSharp for C# / nanoFramework development
lspconfig.omnisharp.setup({ lspconfig.omnisharp.setup({
capabilities = capabilities, capabilities = capabilities,
cmd = { "omnisharp" }, cmd = { "omnisharp" },
settings = { settings = {
FormattingOptions = { FormattingOptions = {
EnableEditorConfigSupport = true, EnableEditorConfigSupport = true,
},
MsBuild = {
LoadProjectsOnDemand = false,
},
}, },
MsBuild = { on_attach = function(client, bufnr)
LoadProjectsOnDemand = false, local opts = { buffer = bufnr, remap = false }
}, vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
}, vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts)
on_attach = function(client, bufnr) vim.keymap.set("n", "<leader>ca", function() vim.lsp.buf.code_action() end, opts)
local opts = { buffer = bufnr, remap = false } end,
vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts) })
vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts) end
vim.keymap.set("n", "<leader>ca", function() vim.lsp.buf.code_action() end, opts)
end,
})
end
},
},
{
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {
library = {
-- Only load luvit types when the `vim.uv` word is found
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
-- always load the LazyVim library
"LazyVim",
-- Only load the lazyvim library when the `LazyVim` global is found
{ path = "LazyVim", words = { "LazyVim" } },
-- Load the wezterm types when the `wezterm` module is required
-- Needs `DrKJeff16/wezterm-types` to be installed
{ path = "wezterm-types", mods = { "wezterm" } },
-- Load the xmake types when opening file named `xmake.lua`
-- Needs `LelouchHe/xmake-luals-addon` to be installed
{ path = "xmake-luals-addon/library", files = { "xmake.lua" } },
}, },
-- disable when a .luarc.json file is found
enabled = function(root_dir)
return not vim.uv.fs_stat(root_dir .. "/.luarc.json")
end,
}, },
}, {
} "folke/lazydev.nvim",
ft = "lua", -- only load on lua files
opts = {
library = {
-- Only load luvit types when the `vim.uv` word is found
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
-- always load the LazyVim library
"LazyVim",
-- Only load the lazyvim library when the `LazyVim` global is found
{ path = "LazyVim", words = { "LazyVim" } },
-- Load the wezterm types when the `wezterm` module is required
-- Needs `DrKJeff16/wezterm-types` to be installed
{ path = "wezterm-types", mods = { "wezterm" } },
-- Load the xmake types when opening file named `xmake.lua`
-- Needs `LelouchHe/xmake-luals-addon` to be installed
{ path = "xmake-luals-addon/library", files = { "xmake.lua" } },
},
-- disable when a .luarc.json file is found
enabled = function(root_dir)
return not vim.uv.fs_stat(root_dir .. "/.luarc.json")
end,
},
},
}
+34
View File
@@ -0,0 +1,34 @@
return {
"nvim-neotest/neotest",
dependencies = {
"nvim-neotest/nvim-nio",
"antoinemadec/FixCursorHold.nvim",
"nvim-treesitter/nvim-treesitter",
"nvim-neotest/neotest-python",
"nvim-neotest/neotest-plenary",
"rcarriga/neotest-vim-test",
},
config = function()
local neotest = require("neotest")
neotest.setup({
adapters = {
require("neotest-python")({
dap = { justMyCode = false },
runner = "pytest",
python = ".venv/bin/python"
}),
require("neotest-plenary"),
require("neotest-vim-test")({
ignore_file_types = { "python", "vim", "lua" },
}),
},
})
vim.keymap.set('n', '<leader>tr' ,function() neotest.run.run() end ,{ desc = 'Neo[T]est [R]un' })
vim.keymap.set('n', '<leader>tf' ,function() neotest.run.run(vim.fn.expand("%")) end ,{ desc = 'Neo[T]est Run [F]ile' })
vim.keymap.set('n', '<leader>td' ,function() neotest.run.run({ strategy = "dap" }) end ,{ desc = 'Neo[T]est [D]ebug' })
vim.keymap.set('n', '<leader>to' ,function() neotest.output_panel.toggle() end ,{ desc = 'Neo[T]est [O]utput Panel' })
vim.keymap.set('n', '<leader>ts' ,function() neotest.summary.toggle() end ,{ desc = 'Neo[T]est [S]ummary Sidebar' })
vim.keymap.set('n', ']t' ,function() neotest.jump.next({ status = 'failed' }) end,{ desc = 'Next Failed Test' })
vim.keymap.set('n', '[t' ,function() neotest.jump.prev({ status = 'failed' }) end,{ desc = 'Prev Failed Test' })
end,
}
+40
View File
@@ -0,0 +1,40 @@
return {
"epwalsh/obsidian.nvim",
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
-- ft = "markdown",
-- swap event for ft line to load on all markdown files, not just those in the vault
event = {
-- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
-- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
-- refer to `:h file-pattern` for more examples
"BufReadPre /home/venus/Documents/Notes/*.md",
"BufNewFile /home/venus/Documents/Notes/*.md",
},
dependencies = {
-- Required.
"nvim-lua/plenary.nvim",
},
opts = {
workspaces = {
{
name = "Primay",
path = "~/Notes",
},
{
name = "Old",
path = "~/Documents/Personal-Wiki/",
},
},
daily_notes = {
-- Optional, if you want to change the date format for the ID of daily notes.
date_format = "%Y-%m-%d",
-- Optional, default tags to add to each new daily note created.
default_tags = { "daily" },
-- Optional, if you want to automatically insert a template from your template directory like 'daily.md'
template = "templates/Daily Note.md",
},
new_notes_location = "current_dir",
},
}
+71
View File
@@ -0,0 +1,71 @@
local preferred_agent = "hermes"
return {
"folke/sidekick.nvim",
keys = {
{
"<leader>as",
function()
require("sidekick.cli").select()
end,
desc = "Sidekick (Select AI CLI)",
},
{
"<leader>aa",
function()
require("sidekick.cli").toggle({ name = preferred_agent, focus = true })
end,
desc = "Sidekick Toggle " .. preferred_agent,
},
{
"<leader>ah",
function()
require("sidekick.cli").toggle({ name = "hermes", focus = true })
end,
desc = "Sidekick Toggle Hermes",
},
{
"<leader>ak",
function()
require("sidekick.cli").toggle({ name = "antigravity", focus = true })
end,
desc = "Sidekick Toggle Antigravity",
},
{ "<leader>ap",
function()
require("sidekick.cli").prompt()
end,
desc = "Sidekick Prompt",
},
{ "<leader>an",
function()
require("sidekick.nes").jump()
end,
desc = "Sidekick Jump to Next Suggestion",
},
{ "<leader>at",
function()
require("sidekick.nes").toggle()
end,
desc = "toggle sidekick suggestions"
},
{ "<M-CR>",
function()
require("sidekick.nes").apply()
end,
desc = "apply sidekick suggestion"
}
},
opts = {
cli = {
tools = {
antigravity = {
cmd = { "agy" },
},
hermes = {
cmd = { "hermes" },
is_proc = "\\<hermes\\>",
},
},
},
},
}
+76
View File
@@ -0,0 +1,76 @@
-- Mostly Generated with Antigravity CLI Gemini 3.7 Flash
return {
"lervag/vimtex",
lazy = false,
init = function()
vim.g.vimtex_compiler_method = "tectonic"
vim.g.vimtex_quickfix_mode = 0
vim.g.vimtex_view_enabled = 0 -- Disable external GUI popup
end,
config = function()
local function open_pdf_split()
local pdf_path = vim.fn.expand("%:p:r") .. ".pdf"
if vim.fn.filereadable(pdf_path) == 1 then
vim.cmd("vsplit " .. vim.fn.fnameescape(pdf_path))
else
vim.notify("PDF not found: " .. pdf_path .. "\nCompile first with <Space>ll", vim.log.levels.WARN)
end
end
-- Provide user command :VimtexPreviewBuffer
vim.api.nvim_create_user_command("VimtexPreviewBuffer", open_pdf_split, { desc = "VimTeX: Open PDF in vertical split" })
-- Buffer-local keymaps for TeX files
vim.api.nvim_create_autocmd("FileType", {
pattern = { "tex", "latex" },
callback = function(ev)
local opts = { buffer = ev.buf, desc = "VimTeX: View PDF in Neovim split" }
vim.keymap.set("n", "<localleader>lv", open_pdf_split, opts)
vim.keymap.set("n", "<leader>lv", open_pdf_split, opts)
end,
})
-- Helper function to refresh and re-render all open PDF splits with image.nvim
local function reload_pdf_buffers()
local ok, image_api = pcall(require, "image")
for _, win in ipairs(vim.api.nvim_list_wins()) do
local buf = vim.api.nvim_win_get_buf(win)
local buf_name = vim.api.nvim_buf_get_name(buf)
if buf_name:match("%.pdf$") then
vim.api.nvim_win_call(win, function()
vim.cmd("edit!")
end)
if ok and image_api then
local imgs = image_api.get_images({ window = win, buffer = buf })
if #imgs > 0 then
for _, img in ipairs(imgs) do
img:clear()
img:render()
end
else
image_api.hijack_buffer(buf_name, win, buf)
end
end
end
end
end
-- Automatically trigger compilation on save (:w)
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "*.tex",
callback = function()
if vim.b.vimtex and vim.fn.exists(":VimtexCompileSS") == 2 then
vim.cmd("VimtexCompileSS")
end
end,
})
-- Automatically reload and re-render PDF splits when compilation finishes
vim.api.nvim_create_autocmd("User", {
pattern = { "VimtexEventCompileSuccess", "VimtexEventCompileStopped" },
callback = function()
reload_pdf_buffers()
end,
})
end,
}
View File