Actualizo configuración personalizada

This commit is contained in:
Enrique Delto 2025-05-12 15:43:04 +01:00
parent 53f45cdfd5
commit 7f1cdc6866
4 changed files with 110 additions and 0 deletions

23
lazy-lock.json Normal file
View File

@ -0,0 +1,23 @@
{
"LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
"blink.cmp": { "branch": "main", "commit": "4f38ce99a472932d5776337f08f7a8180f1f571a" },
"conform.nvim": { "branch": "master", "commit": "374aaf384e2e841607b8e2fe63fa3ad01d111c91" },
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
"gitsigns.nvim": { "branch": "main", "commit": "43b0c856ae5f32a195d83f4a27fe21d63e6c966c" },
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "d39a75bbce4b8aad5d627191ea915179c77c100f" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "62f821a14e20f3f2ee358cd44d0b3d299a508e72" },
"mason.nvim": { "branch": "main", "commit": "7c7318e8bae7e3536ef6b9e86b9e38e74f2e125e" },
"mini.nvim": { "branch": "main", "commit": "c665f30bb372c2ec8cfd61f7531098d3658b6634" },
"nvim-lspconfig": { "branch": "master", "commit": "61e5109c8cf24807e4ae29813a3a82b31821dd45" },
"nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
"tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" },
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
}

22
lua/custom/lazy.lua Normal file
View File

@ -0,0 +1,22 @@
require('lazy').setup {
{ import = 'custom.plugins.ai' },
{ import = 'custom.plugins.lsp' },
{ import = 'custom.plugins.format' },
{ import = 'custom.plugins.telescope' },
{ import = 'custom.plugins.treesitter' },
{ import = 'custom.plugins.which-key' },
{ import = 'custom.plugins.autopairs' },
{ import = 'custom.plugins.blink' },
{ import = 'custom.plugins.bufferline' },
{ import = 'custom.plugins.colorscheme' },
{ import = 'custom.plugins.dadbod' },
{ import = 'custom.plugins.doc' },
{ import = 'custom.plugins.git' },
{ import = 'custom.plugins.icons' },
{ import = 'custom.plugins.indent-blankline' },
{ import = 'custom.plugins.lint' },
{ import = 'custom.plugins.lualine' },
{ import = 'custom.plugins.oil' },
{ import = 'custom.plugins.test' },
{ import = 'custom.plugins.tmux-navigator' },
}

View File

@ -0,0 +1,32 @@
return {
'neovim/nvim-lspconfig',
dependencies = {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'j-hui/fidget.nvim',
},
config = function()
require('mason').setup()
require('mason-lspconfig').setup {
ensure_installed = { 'lua_ls', 'pyright', 'tsserver' },
}
local lspconfig = require 'lspconfig'
local on_attach = function(_, bufnr)
local opts = { buffer = bufnr, noremap = true, silent = true }
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, opts)
end
-- Example: Lua Language Server
lspconfig.lua_ls.setup {
on_attach = on_attach,
settings = {
Lua = {
diagnostics = { globals = { 'vim' } },
},
},
}
end,
}

View File

@ -0,0 +1,33 @@
return {
'nvim-telescope/telescope.nvim',
dependencies = {
'nvim-lua/plenary.nvim',
{
'nvim-telescope/telescope-fzf-native.nvim',
build = 'make',
cond = function()
return vim.fn.executable 'make' == 1
end,
},
'nvim-telescope/telescope-ui-select.nvim',
},
config = function()
local telescope = require 'telescope'
telescope.setup {
extensions = {
['ui-select'] = { require('telescope.themes').get_dropdown {} },
},
}
-- Load extensions if available
pcall(telescope.load_extension, 'fzf')
pcall(telescope.load_extension, 'ui-select')
-- Keybindings
local builtin = require 'telescope.builtin'
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Find Files' })
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = 'Live Grep' })
vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = 'Buffers' })
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Help Tags' })
end,
}