chore(nvim): a bunch of stuff

This commit is contained in:
Afonso Franco 2025-01-03 18:30:23 +00:00
parent 674dcb8d12
commit c388f2843a
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
5 changed files with 18 additions and 6 deletions

View file

@ -24,7 +24,7 @@ vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>")
vim.keymap.set("n", "<space>x", ":.lua<CR>")
vim.keymap.set("v", "<space>x", ":lua<CR>")
--Merge lines in visual mode
vim.keymap.set("v", "J", function()
vim.keymap.set("v", "<A-J>", function()
for _ = 1, vim.fn.getpos("'>")[2] - vim.fn.getpos("'<")[2] - 1 do
vim.api.nvim_command("normal! J")
end

View file

@ -1,5 +1,5 @@
vim.g.gruvbox_material_better_performance = 1
vim.g.gruvbox_material_background = 'hard'
vim.g.gruvbox_material_foreground = 'original'
vim.opt.background = 'dark'
vim.g.gruvbox_material_better_performance=1
vim.g.gruvbox_material_background="medium"
vim.g.gruvbox_material_foreground="material"
vim.opt.background="dark"
vim.cmd('colorscheme gruvbox-material')

View file

@ -9,8 +9,9 @@ vim.wo.relativenumber = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.smartindent = true
-- Make searches case insensitive (except when using uppercase)
vim.opt.smartcase = true
--Change word definition
vim.opt.iskeyword:append("-")
vim.opt.iskeyword:append("_")
--Remove Wrap
vim.opt.wrap = false

View file

@ -4,4 +4,9 @@ return {
event = "VeryLazy",
priority = 1000,
},
{
"EdenEast/nightfox.nvim",
event = "VeryLazy",
priority = 1000
}
}

View file

@ -96,5 +96,11 @@ return {
"nvim-treesitter/nvim-treesitter",
"nvim-tree/nvim-web-devicons"
}
},
{
'norcalli/nvim-colorizer.lua',
config = function()
require 'colorizer'.setup()
end
}
}