added custom configuration

This commit is contained in:
GuillermoOM 2025-03-21 16:30:30 -07:00
parent 2abcb39fae
commit 19b91ec1c5
9 changed files with 232 additions and 39 deletions

View file

@ -0,0 +1,13 @@
return {
'catppuccin/nvim',
name = 'catppuccin',
priority = 1000,
opts = {},
config = function()
require('catppuccin').setup {}
vim.cmd.colorscheme 'catppuccin-macchiato'
vim.o.cursorline = true
vim.wo.signcolumn = 'auto'
vim.opt.termguicolors = true
end,
}

View file

@ -0,0 +1,21 @@
-- nvim v0.8.0
return {
'kdheepak/lazygit.nvim',
lazy = true,
cmd = {
'LazyGit',
'LazyGitConfig',
'LazyGitCurrentFile',
'LazyGitFilter',
'LazyGitFilterCurrentFile',
},
-- optional for floating window border decoration
dependencies = {
'nvim-lua/plenary.nvim',
},
-- setting the keybinding for LazyGit with 'keys' is recommended in
-- order to load the plugin when the command is run for the first time
keys = {
{ '<leader>lg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
},
}

View file

@ -0,0 +1,11 @@
-- For `plugins/markview.lua` users.
return {
'OXY2DEV/markview.nvim',
lazy = false,
-- For blink.cmp's completion
-- source
-- dependencies = {
-- "saghen/blink.cmp"
-- },
}

View file

@ -0,0 +1,12 @@
return {
'danymat/neogen',
dependencies = 'nvim-treesitter/nvim-treesitter',
config = true,
-- config = function ()
-- require('neogen').setup {
-- enabled = true,
-- }
-- vim.g.loaded_netrw = 1
-- vim.g.loaded_netrwPlugin = 1
-- end
}

View file

@ -0,0 +1,19 @@
return {
'nvim-neotest/neotest',
dependencies = {
'nvim-neotest/nvim-nio',
'nvim-lua/plenary.nvim',
'antoinemadec/FixCursorHold.nvim',
'nvim-treesitter/nvim-treesitter',
},
config = function()
require('neotest').setup {
adapters = {
require 'neotest-python' {
dap = { justMyCode = false },
},
},
}
end,
keys = { { '<leader>n', '<cmd>Neotest summary<CR>', desc = '[N]eotest Summary' } },
}

View file

@ -0,0 +1,44 @@
return {
'nvim-tree/nvim-tree.lua',
version = '*',
lazy = false,
dependencies = {
'nvim-tree/nvim-web-devicons',
},
config = function()
local HEIGHT_RATIO = 0.8
local WIDTH_RATIO = 0.5
require('nvim-tree').setup {
view = {
float = {
enable = true,
open_win_config = function()
local screen_w = vim.opt.columns:get()
local screen_h = vim.opt.lines:get() - vim.opt.cmdheight:get()
local window_w = screen_w * WIDTH_RATIO
local window_h = screen_h * HEIGHT_RATIO
local window_w_int = math.floor(window_w)
local window_h_int = math.floor(window_h)
local center_x = (screen_w - window_w) / 2
local center_y = ((vim.opt.lines:get() - window_h) / 2) - vim.opt.cmdheight:get()
return {
border = 'rounded',
relative = 'editor',
row = center_y,
col = center_x,
width = window_w_int,
height = window_h_int,
}
end,
},
width = function()
return math.floor(vim.opt.columns:get() * WIDTH_RATIO)
end,
},
}
end,
opts = function()
local mappings = { { '<leader>e', '<cmd>NvimTreeOpen<CR>', desc = 'File [E]xplorer' } }
require('which-key').add(mappings)
end,
}

View file

@ -0,0 +1,14 @@
return {
'michaelb/sniprun',
branch = 'master',
build = 'sh install.sh',
-- do 'sh install.sh 1' if you want to force compile locally
-- (instead of fetching a binary from the github release). Requires Rust >= 1.65
config = function()
require('sniprun').setup {
-- your options
}
end,
}