Compare commits

...

24 Commits

Author SHA1 Message Date
venus
976501e9d8 added telescope keybinds 2026-06-17 11:43:30 -05:00
venus
69b825c35f moved telescope file 2026-06-17 11:34:15 -05:00
venus
24babf0be9 working on adding shortcuts for telescope searching 2026-06-17 11:33:28 -05:00
venus
552b3e1a79 Implemented chat and inline functionality with codecompanion!! 2026-06-06 01:56:41 -05:00
venus
b056fe2097 trying to get AI integration to work :( 2026-06-05 03:12:43 -05:00
venus
fdb7cc83d1 adding support for codecompanion! 2026-06-05 02:44:15 -05:00
venus
16e7916672 moved gitsigns out of lsp config 2026-06-02 01:37:32 -05:00
venus
bbed1e2083 added functionality to easily replay last command 2026-06-02 01:36:34 -05:00
venus
07940444c9 actually added keybind lol 2026-06-02 00:47:27 -05:00
venus
0e76ac466d added keybind to refresh current config page without restarting nvim 2026-06-02 00:45:28 -05:00
venus
e7c8b3f9cd patched autocommand issue, simplifying lsp setup 2026-06-01 22:36:15 -05:00
venus
b427c4f09f modified commit message type for neogit 2026-05-31 20:45:22 -05:00
venus
56622a860c added keybinds and modified neogit for more useability 2026-05-31 20:41:39 -05:00
venus
2fe6a440b7 added some custom fucntions and a new api 2026-05-31 19:46:05 -05:00
venus
ccbebb5ceb Working on Neogit keybind integration, plus other changes 2026-05-31 19:45:22 -05:00
venus
85d4c44b31 added some plugions 2026-05-22 05:43:19 -05:00
venus
3882f7f805 neoburner support sorta, and hex editors for re 2026-04-25 11:53:20 -05:00
venus
3a85cfd58f disabled hardtime 2026-04-14 15:06:25 -05:00
venus
528e601702 added jq plugin 2026-04-10 18:30:11 -05:00
venus
6c333586fd added some plugins from the reddit 2026-04-06 22:25:21 -05:00
venus
5f387b0f7f log syntax highligh plugin 2026-04-01 22:01:14 -05:00
venus
66b8d10aea removed hexdump 2026-04-01 01:59:18 -05:00
venus
84294ac88d tested hexdump, sort of working 2026-04-01 01:52:20 -05:00
venus
69a847d43c added hexeditor, not tested 2026-04-01 01:46:48 -05:00
20 changed files with 464 additions and 177 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
lazy-lock.json
spell/*

View File

@@ -15,8 +15,13 @@ require("lazy").setup({
{ import = "plugins" },
-- import the following list of plugins -- this is where i put plugins with minial settings
{
"karb94/neoscroll.nvim", --Smooth Scrolling
-- 'paretje/nvim-man', -- man page syntax highlighting
'fei6409/log-highlight.nvim', -- generic log syntax highlighting
'stevearc/conform.nvim', --auto formats certain text
'tpope/vim-commentary', -- commenting lines with shortcut
'vigoux/ltex-ls.nvim', -- grammer checking
'pynappo/hyprlang-to-lua.nvim',
-- 'vimpostor/vim-tpipeline', -- integrate with tmux status-line
'kshenoy/vim-signature', -- tag lines
'mg979/vim-visual-multi', -- work on multiple lines at once
@@ -26,13 +31,14 @@ require("lazy").setup({
'TamaMcGlinn/vim-termhere', --simple terminal QOL
'smjonas/inc-rename.nvim', --lsp plugin for renaming variable
'basola21/PDFview', -- rendering pdfs in nvim
{ 'nvim-telescope/telescope.nvim', tag = 'v0.2.0', dependencies = { 'nvim-lua/plenary.nvim', 'BurntSushi/ripgrep', 'sharkdp/fd' } }, -- fuzyfinding over lists
'rcarriga/nvim-notify', -- notification manager
{ "m4xshen/hardtime.nvim", lazy = false, dependencies = { "MunifTanjim/nui.nvim" }}, --annoying
{ "nvzone/typr", dependencies = "nvzone/volt", cmd = { "Typr", "TyprStats" }, }, --typing practice
{ 'norcalli/nvim-colorizer.lua', config = function() require('colorizer').setup{"*"} end,}, -- preview colors
{ 'NMAC427/guess-indent.nvim', config = function() require('guess-indent').setup {} end,}, -- Detect tabstop and shiftwidth automatically
{ 'edluffy/hologram.nvim', auto_display = true,}, --image viewer
{ "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart
{ 'akinsho/toggleterm.nvim', version = "*", config = true}, -- terminal toggling and commands
{ 'nvim-java/nvim-java', config = function() require('java').setup() vim.lsp.enable('jdtls') end, }, --jave QOL
{ 'nvim-java/nvim-java', config = function() require('java').setup() vim.lsp.enable('jdtls') end, }, --java QOL
-- disable matugen if not using noctalia shell
{ 'RRethy/base16-nvim', config = function() require('matugen').setup() end,}, --colorshceme for noctalia integration
@@ -40,13 +46,15 @@ require("lazy").setup({
{ 'windwp/nvim-autopairs', event = "InsertEnter", config = true },
{ "folke/ts-comments.nvim", event = "VeryLazy", }, -- qol for commenting
{ "marcinjahn/gemini-cli.nvim", cmd = "Gemini", dependencies = { "folke/snacks.nvim", }, config = true, },
{ "cenk1cenk2/jq.nvim", dependencies = { "nvim-lua/plenary.nvim", "MunifTanjim/nui.nvim", "grapp-dev/nui-components.nvim", },
}
},
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins before loaded the matugen plugin for desktop colorscheme.
install = { colorscheme = { "miniautumn" } },
-- automatically check for plugin updates
checker = { enabled = true },
checker = { enabled = false },
})
-- sync nvim colorscheme with noctalia
local theme_ok, matugen = pcall(require, "matugen")
@@ -58,3 +66,35 @@ end
require("config.lsp")
-- render bufferline
require("bufferline").setup{}
-- optimize keypresses
-- require("hardtime").setup()
--fix notifications
vim.notify = require("notify")
-- jq setup
require("jq").setup()
-- require("jq").run({
-- --- you can pass additional options to configure the current instance
-- -- if you want to toggle from the memory
-- toggle = true,
-- -- commands for the instance else it will use the default
-- -- the default command would be the first one in the table
-- commands = {
-- {
-- -- command to be run
-- command = "jq",
-- -- filetype of the output
-- filetype = "json",
-- -- hidden arguments that will not be shown in the ui
-- arguments = "-r"
-- },
-- },
-- -- arguments to start with in the ui
-- arguments = "",
-- -- query to start with, if not provided it will use the default
-- query = ".",
-- })
-- -- bind undotree
-- -- TODO fix the require file not found when in keybinds.lua
-- vim.cmd("packadd nvim.undotree")
-- vim.keymap.set("n", "<leader>u", require("undotree").open) -- undotree

View File

@@ -1,52 +1,66 @@
{
"PDFview": { "branch": "main", "commit": "972dfcce5c0de578865649940f44bf57a700498d" },
"base16-nvim": { "branch": "master", "commit": "190397833e53fdfd5cf400c5baaf1a4e533158e5" },
"blink.cmp": { "branch": "main", "commit": "451168851e8e2466bc97ee3e026c3dcb9141ce07" },
"base16-nvim": { "branch": "master", "commit": "23e5128eb5f629c29532c24a1e733cbe019f05bb" },
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"dashboard-nvim": { "branch": "master", "commit": "0775e567b6c0be96d01a61795f7b64c1758262f6" },
"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": "8a7ff7d4383eb2a5fb1469e504a341e2e3565d13" },
"fzf-lua": { "branch": "main", "commit": "b2abbb7d122c94e893ed4ac359ede2af39aed989" },
"fd": { "branch": "master", "commit": "f7d4d717c287a7834f8721efc0fa91c51d92afee" },
"fzf-lua": { "branch": "main", "commit": "988416cc782dfe28bff3f0da9b8c943b236cd86a" },
"gemini-cli.nvim": { "branch": "main", "commit": "c9fd62adda823628f5131a939d9c56ef7a898600" },
"gitsigns.nvim": { "branch": "main", "commit": "0a80125bace82d82847d40bc2c38a22d62c6dc2d" },
"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": "47f91c416daef12db467145e16bed5bbfe00add8" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "a979821a975897b88493843301950c456a725982" },
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
"mini.nvim": { "branch": "main", "commit": "439cdcd6992bc9012efd7d8ed7a7b7a0f1fac32a" },
"mini.pick": { "branch": "main", "commit": "fe079c2bd894a5ee70b62f23d819620ef40c4949" },
"neogit": { "branch": "master", "commit": "64b1a01a9fc3d3ee8b2368230563bedf3eb66e54" },
"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": "59bce2eef357189c3305e25bc6dd2d138c1683f5" },
"nvim-autopairs": { "branch": "master", "commit": "7b9923abad60b903ece7c52940e1321d39eccc79" },
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
"nvim-dap": { "branch": "master", "commit": "a9d8cb68ee7184111dc66156c4a2ebabfbe01bc5" },
"nvim-dap": { "branch": "master", "commit": "531771530d4f82ad2d21e436e3cc052d68d7aebb" },
"nvim-java": { "branch": "main", "commit": "602a5f7fa92f9c1d425a2159133ff9de86842f0a" },
"nvim-lspconfig": { "branch": "master", "commit": "46204c8fdaa36a9aa3768780450e4bc7a210025f" },
"nvim-tree.lua": { "branch": "master", "commit": "3d385d3346e4883d60dc37cf642bd47bed78a46e" },
"nvim-treesitter": { "branch": "main", "commit": "6620ae1c44dfa8623b22d0cbf873a9e8d073b849" },
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
"obsidian.nvim": { "branch": "main", "commit": "c165637e159284931d981261d8aed9b60c211874" },
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
"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" },
"render-markdown.nvim": { "branch": "main", "commit": "e3c18ddd27a853f85a6f513a864cf4f2982b9f26" },
"remote-nvim.nvim": { "branch": "main", "commit": "9992c2fb8bf4f11aca2c8be8db286b506f92efcb" },
"render-markdown.nvim": { "branch": "main", "commit": "5adf0895310c1904e5abfaad40a2baad7fe44a07" },
"resize.nvim": { "branch": "main", "commit": "0b8943ef2ce54e65b9e56974e94dee593b28e7b5" },
"ripgrep": { "branch": "master", "commit": "4519153e5e461527f4bca45b042fff45c4ec6fb9" },
"snacks.nvim": { "branch": "main", "commit": "ad9ede6a9cddf16cedbd31b8932d6dcdee9b716e" },
"ripgrep": { "branch": "master", "commit": "48a6ad93f152dc848f1883ceb3bf2c7baab6738c" },
"snacks.nvim": { "branch": "main", "commit": "882c996cf28183f4d63640de0b4c02ec886d01f2" },
"spring-boot.nvim": { "branch": "main", "commit": "218c0c26c14d99feca778e4d13f5ec3e8b1b60f0" },
"sudo.nvim": { "branch": "main", "commit": "eed34f8636f0dd1bac89c81f6f96a86ca513f5f2" },
"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": "82d2305ff71dfb3bd91602534cc9bb9a195bcb38" },
"vimtex": { "branch": "master", "commit": "24e229914182ff301496a3e2c4214b28c4928d3f" },
"volt": { "branch": "main", "commit": "620de1321f275ec9d80028c68d1b88b409c0c8b1" },
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
}

View File

@@ -1,10 +1,10 @@
-- [[dynamically change kitty window opacity when opening and closing]]
-- [[dynamicallt change kitty window opacity when opening and closing]]
-- Define the target opacities
local nvim_opacity = "0.85"
local default_opacity = "0.6"
-- Function to talk to Kitty
local function set_kitty_opacity(opacity)
-- print("Attempting to set opacity to: " .. opacity)
-- Use os.execute to run the kitty remote command
os.execute("kitty @ set-background-opacity " .. opacity)
end
-- Set up the autocommands
@@ -23,24 +23,4 @@ vim.api.nvim_create_autocmd("VimLeave", {
set_kitty_opacity(default_opacity)
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,
})
-- Create an augroup to manage our spellcheck autocommands
local spell_group = vim.api.nvim_create_augroup("EnableSpellcheck", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
group = spell_group,
-- List the filetypes you want to enable spellcheck for
pattern = { "markdown", "text", "gitcommit", "latex", "plaintex" },
callback = function()
vim.opt_local.spell = true
vim.opt_local.spelllang = "en_us" -- Optional: set your preferred language
vim.opt_local.spelloptions = "camel"
end,
})

21
lua/custom-functions.lua Normal file
View File

@@ -0,0 +1,21 @@
-- lua/custom-functions.lua
-- A library file with custom functions for cleaner code elsewhere
local C = {}
function C.RunCommand(Command)
-- TODO IMplement an autocompiler function based on context
local tt = require("toggleterm")
local command = string.lower(Command)
if command == "l" or command == "last" then tt.exec("clear && fc -e -\r") end
if command == "c" or command == "compile" then tt.exec("clear && make\r") end
vim.defer_fn(function ()
vim.api.nvim_echo({
{ "▶ Terminal: ", "WarningMsg" },
{ "Running previous terminal command... ", "Normal" },
}, true, {})
end, 50)
return ""
end
return C

View File

@@ -1,74 +1,93 @@
--/lua/keybinds.lua
-- This file defines all of the kybinds for nvim.
-- vim.keymap.set('mode','<modifier>key','action', {desc = 'description'})
-- Add these lines at the very top of your keymaps file
vim.cmd('silent! unmapclear') -- Clears Normal, Visual, Select, and Operator-pending maps
vim.cmd('silent! cmapclear') -- Clears Command-line maps
vim.cmd('silent! imapclear') -- Clears Insert maps
vim.cmd('silent! tmapclear') -- Clears Terminal maps
-- ==========================================
-- Define your current keymaps below this line
-- ==========================================
vim.keymap.set('n', '<leader>w', ':w<CR>')
package.loaded["custom-functions"] = nil
local utils = require("custom-functions")
-- move betwwen buffer easier
vim.keymap.set('n', '<Tab>', ':bnext<CR>')
vim.keymap.set('n', '<S-Tab>', ':bprev<CR>')
vim.keymap.set('n', '<leader>x', ':bdelete<CR>')
vim.keymap.set('n','<Tab>' ,':bnext<CR>')
vim.keymap.set('n','<S-Tab>' ,':bprev<CR>')
vim.keymap.set('n','<leader>x' ,':bdelete<CR>')
-- resizing pains with resize.lua shortcut
vim.keymap.set('n', '<M-Left>', "<cmd>lua require('resize').ResizeLeft()<CR>")
vim.keymap.set('n', '<M-Right>', "<cmd>lua require('resize').ResizeRight()<CR>")
vim.keymap.set('n', '<M-Up>', "<cmd>lua require('resize').ResizeUp()<CR>")
vim.keymap.set('n', '<M-Down>', "<cmd>lua require('resize').ResizeDown()<CR>")
-- termunal interface shortcuts
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.keymap.set('n','<M-Left>' ,"<cmd>lua require('resize').ResizeLeft()<CR>")
vim.keymap.set('n','<M-Right>' ,"<cmd>lua require('resize').ResizeRight()<CR>")
vim.keymap.set('n','<M-Up>' ,"<cmd>lua require('resize').ResizeUp()<CR>")
vim.keymap.set('n','<M-Down>' ,"<cmd>lua require('resize').ResizeDown()<CR>")
-- terminal interface shortcuts
vim.keymap.set('n','<Esc>' ,'<cmd>nohlsearch<CR>')
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('n','<leader>l' ,function() utils.RunCommand("l") end ,{ desc = 'run [l]ast command in 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>e" ,"<cmd>NvimTreeToggle<CR>" ,{desc = 'open [E]xplorer'})
-- Diagnostic keymaps
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
vim.keymap.set('t', '<Esc><Esc>', '<C-\\><C-n>', { desc = 'Exit terminal mode' })
-- vim.keymap.set("n", "<leader>a", ":IncRename ", {desc = 'ren[A]me variable under cursor'})
vim .keymap.set('n','<leader>r','<cmd>TermExec cmd="clear && make"<CR>', { desc = '[r]un make in 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>l", function()
-- Get terminal ID 1
-- Save position and buffer context
local term = require("toggleterm.terminal").get(1)
if term then
local original_window = vim.api.nvim_get_current_win()
local saved_view = vim.fn.winsaveview()
-- Using \r (carriage return) or \n\n often bypasses shell interceptors
-- term:send("clear\r")
term:send("test_dev.sh\r")
vim.api.nvim_set_current_win(original_window)
vim.fn.winrestview(saved_view)
else
vim.notify("Terminal 1 is not open yet!", vim.log.levels.WARN)
end
-- Return logic
end, { desc = "Run [L]ast command in terminal 1" })
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"})
-- TIP: Disable arrow keys in normal mode
vim.keymap.set('n', '<left>', '<cmd>echo "Use h to move!!"<CR>')
vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
-- Disable arrow keys in normal mode
vim.keymap.set('n','<left>' ,'<cmd>echo "Use h to move!!"<CR>')
vim.keymap.set('n','<right>' ,'<cmd>echo "Use l to move!!"<CR>')
vim.keymap.set('n','<up>' ,'<cmd>echo "Use k to move!!"<CR>')
vim.keymap.set('n','<down>' ,'<cmd>echo "Use j to move!!"<CR>')
-- Keybinds to make split navigation easier.
-- Use CTRL+<hjkl> to switch between windows
--
-- See `:help wincmd` for a list of all window commands
vim.keymap.set('n', '<C-h>', '<C-w><C-h>', { desc = 'Move focus to the left window' })
vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right window' })
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
vim.keymap.set('n','<C-h>' ,'<C-w><C-h>' ,{ desc = 'Move focus to the left window' })
vim.keymap.set('n','<C-l>' ,'<C-w><C-l>' ,{ desc = 'Move focus to the right window' })
vim.keymap.set('n','<C-j>' ,'<C-w><C-j>' ,{ desc = 'Move focus to the lower window' })
vim.keymap.set('n','<C-k>' ,'<C-w><C-k>' ,{ desc = 'Move focus to the upper window' })
-- NOTE: Some terminals have colliding keymaps or are not able to send distinct keycodes
vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
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-h>" ,"<C-w>H" ,{ desc = "Move window to the left" })
vim.keymap.set("n","<C-S-l>" ,"<C-w>L" ,{ desc = "Move window to the right" })
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" })
-- [[ Basic QOL
-- vim.keymap.set("n", "<leader>a", ":IncRename ", {desc = 'ren[A]me variable under cursor'})
-- PLUGIN KEYBINDS
vim.keymap.set({ "n", "v" } ,"<leader>aa" ,"<cmd>CodeCompanionActions<cr>" ,{ desc = "CodeCompanion - Actions" })
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
vim.keymap.set('n',"<leader>ze" ,"<cmd>setlocal spell<cr>" ,{ desc = "enable spellecheck on buffer" })
vim.keymap.set('n',"<leader>zd" ,"<cmd>setlocal nospell<cr>" ,{ desc = "Disable spellecheck on buffer" })
--Hex Editing
vim.keymap.set('n', '<leader>hh' ,'<cmd>Hex<CR>' ,{ desc = 'open [H]ex view of a file' })
--Neogit
-- <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>gc' ,'<cmd>Neogit commit<cr>' ,{ desc = 'open Neogit [c]ommit page' })
-- Telecope
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>e", "<cmd>NvimTreeToggle<CR>", {desc = 'open [E]xplorer'})
-- gemini CLI bindings
vim.keymap.set('n', "<leader>a/", "<cmd>Gemini toggle<cr>", { desc = "Toggle Gemini CLI" })
vim.keymap.set('n', "<leader>aa", "<cmd>Gemini toggle<cr>", { desc = "Toggle Gemini CLI" })
vim.keymap.set('n', "<leader>aq", "<cmd>Gemini ask<cr>", { desc = "Ask Gemini", })
vim.keymap.set('n', "<leader>af", "<cmd>Gemini add_file<cr>", { desc = "Add File"} )
-- 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>zd", "<cmd>setlocal nospell<cr>", { desc = "Disable spellecheck on buffer" })

View File

@@ -3,23 +3,23 @@
function M.setup()
require('base16-colorscheme').setup {
-- Background tones
base00 = '#181212', -- Default Background
base01 = '#241e1e', -- Lighter Background (status bars)
base02 = '#2f2828', -- Selection Background
base03 = '#a08c8b', -- Comments, Invisibles
base00 = '#121316', -- Default Background
base01 = '#1e2022', -- Lighter Background (status bars)
base02 = '#282a2d', -- Selection Background
base03 = '#8d9199', -- Comments, Invisibles
-- Foreground tones
base04 = '#d7c1c1', -- Dark Foreground (status bars)
base05 = '#ece0df', -- Default Foreground
base06 = '#ece0df', -- Light Foreground
base07 = '#ece0df', -- Lightest Foreground
base04 = '#c3c6cf', -- Dark Foreground (status bars)
base05 = '#e2e2e6', -- Default Foreground
base06 = '#e2e2e6', -- Light Foreground
base07 = '#e2e2e6', -- Lightest Foreground
-- Accent colors
base08 = '#ffb4ab', -- Variables, XML Tags, Errors
base09 = '#e4c18d', -- Integers, Constants
base0A = '#e6bdbb', -- Classes, Search Background
base0B = '#ffb3b2', -- Strings, Diff Inserted
base0C = '#e4c18d', -- Regex, Escape Chars
base0D = '#ffb3b2', -- Functions, Methods
base0E = '#e6bdbb', -- Keywords, Storage
base09 = '#d7bee4', -- Integers, Constants
base0A = '#bbc7db', -- Classes, Search Background
base0B = '#9fcaff', -- Strings, Diff Inserted
base0C = '#d7bee4', -- Regex, Escape Chars
base0D = '#9fcaff', -- Functions, Methods
base0E = '#bbc7db', -- Keywords, Storage
base0F = '#93000a', -- Deprecated, Embedded Tags
}
end

View File

@@ -37,8 +37,8 @@ vim.o.updatetime = 250
-- Decrease mapped sequence wait time
vim.o.timeoutlen = 300
-- Configure how new splits should be opened
-- vim.o.splitright = false
-- vim.o.splitbelow = true
vim.o.splitright = true
vim.o.splitbelow = true
vim.o.list = true
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
-- Preview substitutions live, as you type!
@@ -52,6 +52,11 @@ vim.o.scrolloff = 25
-- See `:help 'confirm'`
vim.o.confirm = true
-- vim.opt.expandtab = false -- Do NOT turn tabs into spaces
-- vim.opt.tabstop = 4 -- A literal \t character looks 4 columns wide
-- vim.opt.shiftwidth = 4 -- Number of spaces for automated indentation (<< or >>)
-- vim.opt.softtabstop = 0 -- Let the backspace key delete a full hard tab
vim.opt.termguicolors = true -- required for colorizer
--set background color on entering and leaving nvim

View File

@@ -0,0 +1,74 @@
return {
"olimorris/codecompanion.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
},
opts = {
display = {
chat = {
window = {
layout = "vertical",
width = 0.35,
height = 0.35,
},
keymaps = {
close = {
modes = {
n = "q", -- Bind "q" in normal mode to close the chat
},
index = 1,
callback = "keymaps.close",
description = "Close Chat",
},
}
},
},
interactions = {
chat = {
adapter = "gemini_pro", -- Removed the curly braces
},
inline = {
adapter = "gemini_flash", -- Removed the curly braces
},
},
background = {
adapter = "ollama_bg", -- Pointed this to the new extended adapter string
},
adapters = {
http = {
gemini_pro = function()
return require("codecompanion.adapters").extend("gemini", {
name = "gemini_pro",
schema = {
model = {
default = "gemini-3.5-flash",
},
},
})
end,
gemini_flash = function()
return require("codecompanion.adapters").extend("gemini", {
name = "gemini_flash",
schema = {
model = {
default = "gemini-2.0-flash",
},
},
})
end,
-- Added an extended Ollama adapter to fix your background task
ollama_bg = function()
return require("codecompanion.adapters").extend("ollama", {
name = "ollama_bg",
schema = {
model = {
default = "qwen-7b-instruct",
},
},
})
end,
},
},
}
}

17
lua/plugins/games.lua Normal file
View File

@@ -0,0 +1,17 @@
return {
-- "John-Bush14/neoburner",
-- config = function()
-- require("neoburner").setup({
-- -- needed
-- filesystem = "/home/venus/code/bitburner/", -- where bitburner filesystem will be placed
-- -- optional
-- address = "ws://localhost", -- localhost
-- port = 12525,
-- servers = {"home"}, -- servers wich will be in filesystem, cannot be set to "*" because of api limitations.
-- root_server = "home", -- or nil
-- servers_folder = "servers", -- or nil
-- })
-- end
}

12
lua/plugins/gitsigns.lua Normal file
View File

@@ -0,0 +1,12 @@
return { -- Adds git related signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
},
},
}

View File

@@ -0,0 +1,8 @@
return {
'NMAC427/guess-indent.nvim',
config = function()
require('guess-indent').setup ({
filetype_exclude = {"lua"},
})
end,
} -- Detect tabstop and shiftwidth automatically

View File

@@ -11,8 +11,8 @@ return { -- adds lsp functionality and api for included languages
{
keymap = {
preset = 'none',
['<CR>'] = { 'select_next', 'fallback' },
['<S-CR>'] = { 'select_prev', 'fallback' },
['<Down>'] = { 'select_next', 'fallback' },
['<Up>'] = { 'select_prev', 'fallback' },
['<Tab>'] = { 'accept', 'fallback' },
['<C-space>'] = { 'show', 'show_documentation', 'hide_documentation' },
},
@@ -26,52 +26,55 @@ return { -- adds lsp functionality and api for included languages
dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.nvim' }, -- if you use the mini.nvim suite
---@module 'render-markdown'
},
{ -- basic tree sitter parser support
"nvim-treesitter/nvim-treesitter",
config = function()
local lspconfig = require('lspconfig')
-- Since you are using blink.cmp, extract its capabilities
local capabilities = require('blink.cmp').get_lsp_capabilities()
-- Configure OmniSharp for C# / nanoFramework development
lspconfig.omnisharp.setup({
capabilities = capabilities,
cmd = { "omnisharp" },
settings = {
FormattingOptions = {
EnableEditorConfigSupport = true,
},
MsBuild = {
LoadProjectsOnDemand = false,
},
},
on_attach = function(client, bufnr)
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)
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 = {
indent = { enable = true },
highlight = { enable = true },
folds = { enable = true },
ensure_installed = {
"bash",
"c",
"diff",
"html",
"javascript",
"jsdoc",
"json",
"lua",
"luadoc",
"luap",
"markdown",
"markdown_inline",
"printf",
"python",
"query",
"regex",
"toml",
"tsx",
"typescript",
"vim",
"vimdoc",
"xml",
"yaml",
"zsh",
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" } },
},
}
},
{ -- Adds git related signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
-- disable when a .luarc.json file is found
enabled = function(root_dir)
return not vim.uv.fs_stat(root_dir .. "/.luarc.json")
end,
},
},
},
}
}
}

View File

@@ -14,5 +14,15 @@ return { -- add git tui functionality
cmd = "Neogit",
keys = {
{ "<leader>gg", "<cmd>Neogit<cr>", desc = "Show Neogit UI" }
}
},
config = function()
local ng = require("neogit")
ng.setup({
kind = "floating",
commit_editor = {
kind = "floating",
stages_diff_split_kind = "split"
},
})
end,
}

11
lua/plugins/re.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
'RaafatTurki/hex.nvim',
config = function()
require 'hex'.setup {
-- cli command used to dump hex data
dump_cmd = 'xxd -g 1 -u',
-- cli command used to assemble from hex data
assemble_cmd = 'xxd -r',
}
end,
}

14
lua/plugins/remote.lua Normal file
View File

@@ -0,0 +1,14 @@
return {
"amitds1997/remote-nvim.nvim",
version = "*", -- Pin to GitHub releases for stability
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim",
"MunifTanjim/nui.nvim",
},
config = function()
require("remote-nvim").setup({
ssh_config_file_paths = { vim.fn.expand("$HOME/.ssh/config") },
})
end
}

View File

@@ -0,0 +1,9 @@
return {
'nvim-telescope/telescope.nvim', tag = 'v0.2.0',
dependencies = {
'nvim-lua/plenary.nvim',
'BurntSushi/ripgrep',
'sharkdp/fd'
}
}

View File

@@ -0,0 +1,36 @@
return { -- basic tree sitter parser support
"nvim-treesitter/nvim-treesitter",
opts = {
indent = { enable = true },
highlight = { enable = true },
folds = { enable = true },
ensure_installed = {
"bash",
"c",
"diff",
"html",
"javascript",
"jsdoc",
"json",
"lua",
"luadoc",
"luap",
"markdown",
"markdown_inline",
"printf",
"python",
"query",
"regex",
"toml",
"tsx",
"typescript",
"vim",
"vimdoc",
"xml",
"yaml",
"zsh",
"cmake",
"c_sharp",
},
}
}

View File

@@ -16,3 +16,15 @@ Ransomware
tmux
Pico
Pico
VPN
WLAN
GAN
Lan
TCP
UPD
biometrics
WPA
eduroam
pre-defined
#tateful
hashcat

Binary file not shown.