Skip to content

Commit 7f1cdc6

Browse files
committed
Actualizo configuración personalizada
1 parent 53f45cd commit 7f1cdc6

File tree

4 files changed

+110
-0
lines changed

4 files changed

+110
-0
lines changed

lazy-lock.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"LuaSnip": { "branch": "master", "commit": "458560534a73f7f8d7a11a146c801db00b081df0" },
3+
"blink.cmp": { "branch": "main", "commit": "4f38ce99a472932d5776337f08f7a8180f1f571a" },
4+
"conform.nvim": { "branch": "master", "commit": "374aaf384e2e841607b8e2fe63fa3ad01d111c91" },
5+
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
6+
"gitsigns.nvim": { "branch": "main", "commit": "43b0c856ae5f32a195d83f4a27fe21d63e6c966c" },
7+
"guess-indent.nvim": { "branch": "main", "commit": "84a4987ff36798c2fc1169cbaff67960aed9776f" },
8+
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
9+
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
10+
"mason-lspconfig.nvim": { "branch": "main", "commit": "d39a75bbce4b8aad5d627191ea915179c77c100f" },
11+
"mason-tool-installer.nvim": { "branch": "main", "commit": "62f821a14e20f3f2ee358cd44d0b3d299a508e72" },
12+
"mason.nvim": { "branch": "main", "commit": "7c7318e8bae7e3536ef6b9e86b9e38e74f2e125e" },
13+
"mini.nvim": { "branch": "main", "commit": "c665f30bb372c2ec8cfd61f7531098d3658b6634" },
14+
"nvim-lspconfig": { "branch": "master", "commit": "61e5109c8cf24807e4ae29813a3a82b31821dd45" },
15+
"nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" },
16+
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
17+
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
18+
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
19+
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
20+
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
21+
"tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" },
22+
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
23+
}

lua/custom/lazy.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
require('lazy').setup {
2+
{ import = 'custom.plugins.ai' },
3+
{ import = 'custom.plugins.lsp' },
4+
{ import = 'custom.plugins.format' },
5+
{ import = 'custom.plugins.telescope' },
6+
{ import = 'custom.plugins.treesitter' },
7+
{ import = 'custom.plugins.which-key' },
8+
{ import = 'custom.plugins.autopairs' },
9+
{ import = 'custom.plugins.blink' },
10+
{ import = 'custom.plugins.bufferline' },
11+
{ import = 'custom.plugins.colorscheme' },
12+
{ import = 'custom.plugins.dadbod' },
13+
{ import = 'custom.plugins.doc' },
14+
{ import = 'custom.plugins.git' },
15+
{ import = 'custom.plugins.icons' },
16+
{ import = 'custom.plugins.indent-blankline' },
17+
{ import = 'custom.plugins.lint' },
18+
{ import = 'custom.plugins.lualine' },
19+
{ import = 'custom.plugins.oil' },
20+
{ import = 'custom.plugins.test' },
21+
{ import = 'custom.plugins.tmux-navigator' },
22+
}

lua/custom/plugins/lsp.lua

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
return {
2+
'neovim/nvim-lspconfig',
3+
dependencies = {
4+
'williamboman/mason.nvim',
5+
'williamboman/mason-lspconfig.nvim',
6+
'j-hui/fidget.nvim',
7+
},
8+
config = function()
9+
require('mason').setup()
10+
require('mason-lspconfig').setup {
11+
ensure_installed = { 'lua_ls', 'pyright', 'tsserver' },
12+
}
13+
14+
local lspconfig = require 'lspconfig'
15+
local on_attach = function(_, bufnr)
16+
local opts = { buffer = bufnr, noremap = true, silent = true }
17+
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts)
18+
vim.keymap.set('n', 'K', vim.lsp.buf.hover, opts)
19+
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, opts)
20+
end
21+
22+
-- Example: Lua Language Server
23+
lspconfig.lua_ls.setup {
24+
on_attach = on_attach,
25+
settings = {
26+
Lua = {
27+
diagnostics = { globals = { 'vim' } },
28+
},
29+
},
30+
}
31+
end,
32+
}

lua/custom/plugins/telescope.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
return {
2+
'nvim-telescope/telescope.nvim',
3+
dependencies = {
4+
'nvim-lua/plenary.nvim',
5+
{
6+
'nvim-telescope/telescope-fzf-native.nvim',
7+
build = 'make',
8+
cond = function()
9+
return vim.fn.executable 'make' == 1
10+
end,
11+
},
12+
'nvim-telescope/telescope-ui-select.nvim',
13+
},
14+
config = function()
15+
local telescope = require 'telescope'
16+
telescope.setup {
17+
extensions = {
18+
['ui-select'] = { require('telescope.themes').get_dropdown {} },
19+
},
20+
}
21+
22+
-- Load extensions if available
23+
pcall(telescope.load_extension, 'fzf')
24+
pcall(telescope.load_extension, 'ui-select')
25+
26+
-- Keybindings
27+
local builtin = require 'telescope.builtin'
28+
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = 'Find Files' })
29+
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = 'Live Grep' })
30+
vim.keymap.set('n', '<leader>fb', builtin.buffers, { desc = 'Buffers' })
31+
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = 'Help Tags' })
32+
end,
33+
}

0 commit comments

Comments
 (0)