lazygit, zenmode and relativenumber

This commit is contained in:
José Iêdo 2023-09-02 11:03:01 -03:00
parent b365948225
commit de70762838
2 changed files with 132 additions and 103 deletions

View File

@ -1,3 +1,4 @@
---@diagnostic disable: missing-fields
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
@ -31,6 +32,13 @@ require('lazy').setup({
-- Detect tabstop and shiftwidth automatically
'tpope/vim-sleuth',
{
"kdheepak/lazygit.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
},
-- NOTE: This is where your plugins related to LSP can be installed.
-- The configuration is done below. Search for lspconfig to find it below.
{
@ -81,19 +89,29 @@ require('lazy').setup({
changedelete = { text = '~' },
},
on_attach = function(bufnr)
vim.keymap.set('n', '<leader>gp', require('gitsigns').prev_hunk, { buffer = bufnr, desc = '[G]o to [P]revious Hunk' })
vim.keymap.set('n', '<leader>gp', require('gitsigns').prev_hunk,
{ buffer = bufnr, desc = '[G]o to [P]revious Hunk' })
vim.keymap.set('n', '<leader>gn', require('gitsigns').next_hunk, { buffer = bufnr, desc = '[G]o to [N]ext Hunk' })
vim.keymap.set('n', '<leader>ph', require('gitsigns').preview_hunk, { buffer = bufnr, desc = '[P]review [H]unk' })
end,
},
},
-- THEMESSS
-- {
-- 'navarasu/onedark.nvim',
-- priority = 1000,
-- config = function()
-- vim.cmd.colorscheme 'onedark'
-- end,
-- },
{
-- Theme inspired by Atom
'navarasu/onedark.nvim',
"folke/tokyonight.nvim",
priority = 1000,
opts = {
style = "night"
},
config = function()
vim.cmd.colorscheme 'onedark'
vim.cmd.colorscheme 'tokyonight'
end,
},
@ -104,23 +122,23 @@ require('lazy').setup({
opts = {
options = {
icons_enabled = false,
theme = 'onedark',
theme = 'tokyonight',
component_separators = '|',
section_separators = '',
},
},
},
{
-- Add indentation guides even on blank lines
'lukas-reineke/indent-blankline.nvim',
-- Enable `lukas-reineke/indent-blankline.nvim`
-- See `:help indent_blankline.txt`
opts = {
char = '',
show_trailing_blankline_indent = false,
},
},
-- {
-- -- Add indentation guides even on blank lines
-- 'lukas-reineke/indent-blankline.nvim',
-- -- Enable `lukas-reineke/indent-blankline.nvim`
-- -- See `:help indent_blankline.txt`
-- opts = {
-- char = '|',
-- show_trailing_blankline_indent = false,
-- },
-- },
-- "gc" to comment visual regions/lines
{ 'numToStr/Comment.nvim', opts = {} },
@ -167,7 +185,7 @@ require('lazy').setup({
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
--
-- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
-- { import = 'custom.plugins' },
{ import = 'custom.plugins' },
}, {})
-- [[ Setting options ]]
@ -183,6 +201,8 @@ require('lazy').setup({
-- Enable mouse mode
vim.o.mouse = 'a'
vim.o.relativenumber = true
-- Sync clipboard between OS and Neovim.
-- Remove this option if you want your OS clipboard to remain independent.
-- See `:help 'clipboard'`

View File

@ -2,4 +2,13 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {}
return {
{
"folke/zen-mode.nvim",
opts = {}
},
{
"folke/twilight.nvim",
opts = {}
}
}