From 0f40c264cbac86882eaaf80e1ab075d3e460939b Mon Sep 17 00:00:00 2001 From: dlsaldanas Date: Thu, 25 Sep 2025 12:40:02 -0300 Subject: [PATCH] latest 2 --- lua/custom/plugins/init.lua | 1 + lua/keymaps.lua | 8 ++++---- lua/kickstart/plugins/conform.lua | 3 ++- lua/kickstart/plugins/gitsigns.lua | 1 + lua/kickstart/plugins/telescope.lua | 2 ++ 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index c36ce473..fba0009a 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -34,4 +34,5 @@ vim.o.expandtab = true local set = vim.opt_local set.shiftwidth = 2 vim.o.shiftwidth = 2 +vim.keymap.set('n', 'yb', 'let @+ = expand("%")', { desc = 'yank to plus register current relative path' }) return {} diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 054c769b..c1377874 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -17,10 +17,10 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagn vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) -- TIP: Disable arrow keys in normal mode --- vim.keymap.set('n', '', 'echo "Use h to move!!"') --- vim.keymap.set('n', '', 'echo "Use l to move!!"') --- vim.keymap.set('n', '', 'echo "Use k to move!!"') --- vim.keymap.set('n', '', 'echo "Use j to move!!"') +vim.keymap.set('n', '', 'echo "Use h to move!!"') +vim.keymap.set('n', '', 'echo "Use l to move!!"') +vim.keymap.set('n', '', 'echo "Use k to move!!"') +vim.keymap.set('n', '', 'echo "Use j to move!!"') -- Keybinds to make split navigation easier. -- Use CTRL+ to switch between windows diff --git a/lua/kickstart/plugins/conform.lua b/lua/kickstart/plugins/conform.lua index ca7c0c00..678d6036 100644 --- a/lua/kickstart/plugins/conform.lua +++ b/lua/kickstart/plugins/conform.lua @@ -19,7 +19,8 @@ return { -- Disable "format_on_save lsp_fallback" for languages that don't -- have a well standardized coding style. You can add additional -- languages here or re-enable it for the disabled ones. - local disable_filetypes = { c = true, cpp = true } + print('aa', vim.bo[bufnr].filetype) + local disable_filetypes = { c = true, cpp = true, javascript = true, typescript = true, javascriptreact = true, typescriptreact = true } if disable_filetypes[vim.bo[bufnr].filetype] then return nil else diff --git a/lua/kickstart/plugins/gitsigns.lua b/lua/kickstart/plugins/gitsigns.lua index 79a3552b..2d00963c 100644 --- a/lua/kickstart/plugins/gitsigns.lua +++ b/lua/kickstart/plugins/gitsigns.lua @@ -24,6 +24,7 @@ return { topdelete = { text = '‾' }, changedelete = { text = '~' }, }, + current_line_blame = true, on_attach = function(bufnr) local gitsigns = require 'gitsigns' diff --git a/lua/kickstart/plugins/telescope.lua b/lua/kickstart/plugins/telescope.lua index 6a33d8db..388b255a 100644 --- a/lua/kickstart/plugins/telescope.lua +++ b/lua/kickstart/plugins/telescope.lua @@ -48,6 +48,8 @@ return { '--hidden', -- Busca en archivos ocultos '--glob', '!.git/', -- Excluye .git pero no .gitlab + '--glob', + '!package-lock.json', }, }, -- show hidden files, does it respect config for whatever command is using?