From c66a617a2dd3c5fd058316247207ec4c971ff7a6 Mon Sep 17 00:00:00 2001 From: Guilherme Guidotti Date: Sat, 3 May 2025 23:45:46 -0300 Subject: [PATCH 1/2] ajustes iniciais --- init.lua | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/init.lua b/init.lua index cbf9ff65d67..a1caccaa7bb 100644 --- a/init.lua +++ b/init.lua @@ -90,8 +90,10 @@ P.S. You can delete this when you're done too. It's your config now! :) vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' +vim.keymap.set('n', ';', ':', { desc = 'CMD enter command mode' }) + -- Set to true if you have a Nerd Font installed and selected in the terminal -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.opt` @@ -102,7 +104,7 @@ vim.g.have_nerd_font = false vim.opt.number = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! --- vim.opt.relativenumber = true +vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = 'a' @@ -210,7 +212,10 @@ vim.api.nvim_create_autocmd('TextYankPost', { desc = 'Highlight when yanking (copying) text', group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), callback = function() - vim.highlight.on_yank() + vim.highlight.on_yank { + higroup = 'IncSearch', + timeout = 40, + } end, }) @@ -425,7 +430,8 @@ require('lazy').setup({ local builtin = require 'telescope.builtin' vim.keymap.set('n', 'sh', builtin.help_tags, { desc = '[S]earch [H]elp' }) vim.keymap.set('n', 'sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' }) - vim.keymap.set('n', 'sf', builtin.find_files, { desc = '[S]earch [F]iles' }) + vim.keymap.set('n', 'sp', builtin.find_files, { desc = '[S]earch [P]rojetct Files' }) + vim.keymap.set('n', 'sf', builtin.git_files, { desc = '[S]earch Git [F]iles' }) vim.keymap.set('n', 'ss', builtin.builtin, { desc = '[S]earch [S]elect Telescope' }) vim.keymap.set('n', 'sw', builtin.grep_string, { desc = '[S]earch current [W]ord' }) vim.keymap.set('n', 'sg', builtin.live_grep, { desc = '[S]earch by [G]rep' }) @@ -671,7 +677,13 @@ require('lazy').setup({ local servers = { -- clangd = {}, -- gopls = {}, - -- pyright = {}, + basedpyright = { + settings = { + basedpyright = { + typeCheckingMode = 'standard', + }, + }, + }, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- @@ -898,20 +910,14 @@ require('lazy').setup({ -- change the command in the config to whatever the name of that colorscheme is. -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'folke/tokyonight.nvim', - priority = 1000, -- Make sure to load this before all the other start plugins. + 'sainnhe/gruvbox-material', + priority = 1000, -- Make sure to load thi before all the other start plugins. config = function() - ---@diagnostic disable-next-line: missing-fields - require('tokyonight').setup { - styles = { - comments = { italic = false }, -- Disable italics in comments - }, - } - -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + vim.g.gruvbox_material_disable_italic_comment = true + vim.cmd.colorscheme 'gruvbox-material' end, }, From 8ff04e7aa863e163d563dbd70235a763625e04f7 Mon Sep 17 00:00:00 2001 From: Guilherme Guidotti Date: Thu, 8 May 2025 00:19:51 -0300 Subject: [PATCH 2/2] incluindo alguns keybinds --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index a1caccaa7bb..828a506ab2a 100644 --- a/init.lua +++ b/init.lua @@ -91,6 +91,9 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' vim.keymap.set('n', ';', ':', { desc = 'CMD enter command mode' }) +vim.keymap.set('n', ':', ';') +vim.keymap.set('n', '', 'zz') +vim.keymap.set('n', '', 'zz') -- Set to true if you have a Nerd Font installed and selected in the terminal vim.g.have_nerd_font = true