feat(keybinds, lua func, cmp): QOL changes basically

- removed hindering material like nvim adding more comments upon
  pressing `Enter`
- removed snippets, not needed + disrupted commenting
- added more keybinds (telescope.nvim, wrap around pairs, venv
  selection)
- added QOL changes like venv-selector + ecolog.nvim w/
- added blink.cmp provders (ecolog + convential commits)
This commit is contained in:
devaine 2026-08-16 20:36:12 -05:00
commit bd2f808931
Signed by: devaine
GPG key ID: 954B1DCAC6FF84EE
13 changed files with 206 additions and 109 deletions

44
lua/config/vim.lua Normal file → Executable file
View file

@ -1,6 +1,3 @@
-- set the leader
vim.g.mapleader = " "
-- neovim/vim variables
local opt = vim.opt
local keybind = vim.keymap.set
@ -23,8 +20,19 @@ opt.incsearch = true
-- mapleader
vim.g.mapleader = " "
-- custom lua functions
local function toggle_diagnostics()
local qf = vim.fn.getqflist({ winid = 0 })
if qf.winid ~= 0 then
vim.cmd("cclose")
else
vim.diagnostic.setqflist({ open = true })
end
end
-- keybinds
keybind("n", "<leader>hh", "<cmd>lua vim.diagnostic.setqflist()<CR>", { desc = "LSP Diagonistics" })
keybind("n", "<leader>hh", toggle_diagnostics, { desc = "LSP Diagonistics" })
-- buffer keybinds
keybind("n", "<leader>bb", "<cmd>bprevious<CR>", { desc = "Switch to previous buffer" })
@ -42,16 +50,26 @@ keybind("v", "<S-Down>", ":m '>+1<CR>gv", { desc = "Move selection down" })
keybind("i", "jk", "<Esc>", { desc = "Keybind set for Justin" })
-- file explorer
keybind("n", "<leader>mm", "<Cmd>Neotree toggle<CR>", { desc = "Toggle File Explorer" })
keybind("n", "<leader>mm", "<Cmd>Neotree toggle filesystem dir=%:p:h<CR>", { desc = "Toggle File Explorer" })
keybind("n", "<leader>jj", "<Cmd>Neotree action=focus<CR>", { desc = "Focus on file explorer" })
-- open floating terminal
-- to see toggling, see dev-utils.lua for closing function
keybind('n', '<C-Space>', '<CMD>lua require("FTerm").open()<CR>')
-- telescope.nvim (search.lua)
keybind("n", "<leader>ff", "<Cmd>Telescope find_files<CR>", { desc = "Find Files" })
keybind("n", "<leader>fg", "<Cmd>Telescope live_grep<CR>", { desc = "Live Grep" })
keybind("n", "<leader>fb", "<Cmd>Telescope buffers<CR>", { desc = "Show Buffers" })
keybind("n", "<leader>fh", "<Cmd>Telescope help_tags<CR>", { desc = "Help Tags" })
-- venv select
keybind("n", ",v", "<Cmd>VenvSelect<CR>", { desc = "Finds the python venv" })
-- remote connection
keybind('n', '<leader>;;', '<CMD>RemoteStart<CR>')
keybind("n", "<leader>;;", "<CMD>RemoteStart<CR>")
-- open floating terminal
-- to see toggling, see: dev-utils.lua under toggleterm.nvim
-- wrap around pairs
-- see: dev-utils.lua under nvim-autopairs
-- file handling
opt.backup = false
@ -60,3 +78,11 @@ opt.swapfile = false
opt.undofile = true
opt.undodir = vim.fn.expand("~/.nvim/undodir")
opt.autoread = true
-- custom functions
-- disable automatic commenting upon using <CR>
vim.api.nvim_create_autocmd("FileType", {
callback = function()
vim.opt_local.formatoptions:remove("r")
end,
})