Neovim Updates

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2024-02-27 12:39:43 +00:00
parent a89193fd56
commit 1b13e1e67f
Signed by: TiagoRG
GPG Key ID: DFCD48E3F420DB42
7 changed files with 19 additions and 78 deletions

View File

@ -1,3 +1 @@
# Neovim # Neovim Configuration
## This is my neovim configuration, highly based on [ThePrimeagen](https://github.com/ThePrimeagen)

View File

@ -1,3 +1,5 @@
require("aerial").setup()
vim.keymap.set("n", "{", "<cmd>AerialPrev<CR>") vim.keymap.set("n", "{", "<cmd>AerialPrev<CR>")
vim.keymap.set("n", "}", "<cmd>AerialNext<CR>") vim.keymap.set("n", "}", "<cmd>AerialNext<CR>")
vim.keymap.set("n", "<leader><leader>", "<cmd>AerialToggle float<CR>") vim.keymap.set("n", "<leader><leader>", "<cmd>AerialToggle float<CR>")

View File

@ -1,3 +1,5 @@
require("wrapping").setup()
opts = { opts = {
auto_set_mode_filetype_allowlist = { auto_set_mode_filetype_allowlist = {
"asciidoc", "asciidoc",

View File

@ -1 +1 @@
onedark rose-pine

View File

@ -1,5 +1,6 @@
require("tiagorg.set") require("tiagorg.set")
require("tiagorg.remap") require("tiagorg.remap")
require('Comment').setup()
require('Comment').setup()
require("liveshare").setup() require("liveshare").setup()
require("nvim-surround").setup()

View File

@ -1,5 +1,3 @@
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
-- Only required if you have packer configured as `opt` -- Only required if you have packer configured as `opt`
vim.cmd [[packadd packer.nvim]] vim.cmd [[packadd packer.nvim]]
@ -8,12 +6,7 @@ return require('packer').startup(function(use)
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
-- Themes -- Themes
use { use "loctvl842/monokai-pro.nvim"
"loctvl842/monokai-pro.nvim", -- Fking goated theme
config = function()
require("monokai-pro").setup()
end
}
use { use {
'rose-pine/neovim', 'rose-pine/neovim',
as = 'rose-pine', as = 'rose-pine',
@ -23,9 +16,9 @@ return require('packer').startup(function(use)
-- Essentials -- Essentials
use { use {
'nvim-telescope/telescope.nvim', tag = '0.1.1', 'nvim-telescope/telescope.nvim',
-- or , branch = '0.1.x', tag = '0.1.1',
requires = { { 'nvim-lua/plenary.nvim' } } requires = { 'nvim-lua/plenary.nvim' }
} }
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' }) use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use("nvim-treesitter/nvim-treesitter-context") use("nvim-treesitter/nvim-treesitter-context")
@ -47,39 +40,17 @@ return require('packer').startup(function(use)
{ 'rafamadriz/friendly-snippets' }, { 'rafamadriz/friendly-snippets' },
} }
} }
use({ use "stevearc/aerial.nvim"
"L3MON4D3/LuaSnip", use 'm4xshen/autoclose.nvim'
-- follow latest release.
tag = "v2.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
-- install jsregexp (optional!:).
run = "make install_jsregexp"
})
use({
"stevearc/aerial.nvim",
config = function()
require("aerial").setup()
end,
})
use('m4xshen/autoclose.nvim')
-- Extras -- Extras
use('mbbill/undotree') use 'mbbill/undotree'
use({ use "andrewferrier/wrapping.nvim"
"andrewferrier/wrapping.nvim",
config = function()
require("wrapping").setup()
end
})
use "lukas-reineke/indent-blankline.nvim" use "lukas-reineke/indent-blankline.nvim"
use "HiPhish/nvim-ts-rainbow2" use "HiPhish/nvim-ts-rainbow2"
use "folke/trouble.nvim" use "folke/trouble.nvim"
use { use "FotiadisM/tabset.nvim"
"FotiadisM/tabset.nvim", use 'nvim-tree/nvim-web-devicons'
config = function()
require("tabset").setup()
end
}
use('nvim-tree/nvim-web-devicons')
use 'nvim-tree/nvim-tree.lua' use 'nvim-tree/nvim-tree.lua'
use 'lewis6991/gitsigns.nvim' use 'lewis6991/gitsigns.nvim'
use 'romgrk/barbar.nvim' use 'romgrk/barbar.nvim'
@ -88,16 +59,8 @@ return require('packer').startup(function(use)
use({ use({
"kylechui/nvim-surround", "kylechui/nvim-surround",
tag = "*", -- Use for stability; omit to use `main` branch for the latest features tag = "*", -- Use for stability; omit to use `main` branch for the latest features
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
}) })
use { use 'nvim-lualine/lualine.nvim'
'nvim-lualine/lualine.nvim',
requires = { 'nvim-tree/nvim-web-devicons', opt = true },
}
-- Misc -- Misc
use('wakatime/vim-wakatime') use('wakatime/vim-wakatime')

View File

@ -95,7 +95,6 @@ _G.packer_plugins = {
url = "https://github.com/L3MON4D3/LuaSnip" url = "https://github.com/L3MON4D3/LuaSnip"
}, },
["aerial.nvim"] = { ["aerial.nvim"] = {
config = { "\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vaerial\frequire\0" },
loaded = true, loaded = true,
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/aerial.nvim", path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/aerial.nvim",
url = "https://github.com/stevearc/aerial.nvim" url = "https://github.com/stevearc/aerial.nvim"
@ -181,7 +180,6 @@ _G.packer_plugins = {
url = "https://github.com/williamboman/mason.nvim" url = "https://github.com/williamboman/mason.nvim"
}, },
["monokai-pro.nvim"] = { ["monokai-pro.nvim"] = {
config = { "\27LJ\2\n9\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\16monokai-pro\frequire\0" },
loaded = true, loaded = true,
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/monokai-pro.nvim", path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/monokai-pro.nvim",
url = "https://github.com/loctvl842/monokai-pro.nvim" url = "https://github.com/loctvl842/monokai-pro.nvim"
@ -202,7 +200,6 @@ _G.packer_plugins = {
url = "https://github.com/neovim/nvim-lspconfig" url = "https://github.com/neovim/nvim-lspconfig"
}, },
["nvim-surround"] = { ["nvim-surround"] = {
config = { "\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18nvim-surround\frequire\0" },
loaded = true, loaded = true,
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-surround", path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-surround",
url = "https://github.com/kylechui/nvim-surround" url = "https://github.com/kylechui/nvim-surround"
@ -258,7 +255,6 @@ _G.packer_plugins = {
url = "https://github.com/rose-pine/neovim" url = "https://github.com/rose-pine/neovim"
}, },
["tabset.nvim"] = { ["tabset.nvim"] = {
config = { "\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vtabset\frequire\0" },
loaded = true, loaded = true,
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/tabset.nvim", path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/tabset.nvim",
url = "https://github.com/FotiadisM/tabset.nvim" url = "https://github.com/FotiadisM/tabset.nvim"
@ -299,7 +295,6 @@ _G.packer_plugins = {
url = "https://github.com/Mofiqul/vscode.nvim" url = "https://github.com/Mofiqul/vscode.nvim"
}, },
["wrapping.nvim"] = { ["wrapping.nvim"] = {
config = { "\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rwrapping\frequire\0" },
loaded = true, loaded = true,
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/wrapping.nvim", path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/wrapping.nvim",
url = "https://github.com/andrewferrier/wrapping.nvim" url = "https://github.com/andrewferrier/wrapping.nvim"
@ -307,26 +302,6 @@ _G.packer_plugins = {
} }
time([[Defining packer_plugins]], false) time([[Defining packer_plugins]], false)
-- Config for: nvim-surround
time([[Config for nvim-surround]], true)
try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18nvim-surround\frequire\0", "config", "nvim-surround")
time([[Config for nvim-surround]], false)
-- Config for: tabset.nvim
time([[Config for tabset.nvim]], true)
try_loadstring("\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vtabset\frequire\0", "config", "tabset.nvim")
time([[Config for tabset.nvim]], false)
-- Config for: wrapping.nvim
time([[Config for wrapping.nvim]], true)
try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rwrapping\frequire\0", "config", "wrapping.nvim")
time([[Config for wrapping.nvim]], false)
-- Config for: monokai-pro.nvim
time([[Config for monokai-pro.nvim]], true)
try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\16monokai-pro\frequire\0", "config", "monokai-pro.nvim")
time([[Config for monokai-pro.nvim]], false)
-- Config for: aerial.nvim
time([[Config for aerial.nvim]], true)
try_loadstring("\27LJ\2\n4\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\vaerial\frequire\0", "config", "aerial.nvim")
time([[Config for aerial.nvim]], false)
_G._packer.inside_compile = false _G._packer.inside_compile = false
if _G._packer.needs_bufread == true then if _G._packer.needs_bufread == true then