Signed-off-by: Tiago Garcia <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2024-07-17 19:43:46 +01:00
parent 657184b544
commit 2dcd7c5e83
Signed by: TiagoRG
GPG Key ID: DFCD48E3F420DB42
5 changed files with 14 additions and 6 deletions

View File

@ -15,13 +15,18 @@ require("presence").setup({
"toggleterm", "toggleterm",
"curriculum-vitae", "curriculum-vitae",
"Nextcloud", "Nextcloud",
"NvimTree", "NvimTree_1",
}, },
buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table) buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "<label>", url = "<url>" }, ...}`, or a function(buffer: string, repo_url: string|nil): table)
file_assets = { -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference) file_assets = { -- Custom file asset definitions keyed by file names and extensions (see default config at `lua/presence/file_assets.lua` for reference)
adoc = { "AsciiDoc", "https://www.tiagorg.pt/assets/logos/adoc.png" }, ["CMakeLists.txt"] = { "CMake", "https://www.tiagorg.pt/assets/icons/png/cmake.png" },
asm = { "Assembly", "https://www.tiagorg.pt/assets/logos/asm.png" }, [".env"] = { ".env", "https://www.tiagorg.pt/assets/icons/png/env.png" },
s = { "Assembly", "https://www.tiagorg.pt/assets/logos/asm.png" }, ["zsh;#toggleterm#1"] = { "Terminal", "https://www.tiagorg.pt/assets/icons/png/terminal.png" },
adoc = { "AsciiDoc", "https://www.tiagorg.pt/assets/icons/png/adoc.png" },
asm = { "Assembly", "https://www.tiagorg.pt/assets/icons/png/asm.png" },
cmake = { "CMake", "https://www.tiagorg.pt/assets/icons/png/cmake.png" },
env = { ".env", "https://www.tiagorg.pt/assets/icons/png/env.png" },
s = { "Assembly", "https://www.tiagorg.pt/assets/icons/png/asm.png" },
}, },
show_time = true, -- Show the timer show_time = true, -- Show the timer

View File

@ -8,6 +8,7 @@ require('rainbow-delimiters.setup').setup {
query = { query = {
[''] = 'rainbow-delimiters', [''] = 'rainbow-delimiters',
lua = 'rainbow-blocks', lua = 'rainbow-blocks',
bash = 'rainbow-blocks',
}, },
priority = { priority = {
[''] = 110, [''] = 110,

View File

@ -5,3 +5,5 @@ require('tiagorg.colors')
require('Comment').setup() require('Comment').setup()
require("nvim-surround").setup() require("nvim-surround").setup()
vim.g.nvim_config_path = vim.fn.stdpath('config')

View File

@ -24,6 +24,7 @@ return require('packer').startup(function(use)
} }
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")
use "HiPhish/rainbow-delimiters.nvim"
use { use {
'VonHeikemen/lsp-zero.nvim', 'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x', branch = 'v2.x',
@ -56,8 +57,6 @@ return require('packer').startup(function(use)
use 'mbbill/undotree' use 'mbbill/undotree'
use "andrewferrier/wrapping.nvim" use "andrewferrier/wrapping.nvim"
use "lukas-reineke/indent-blankline.nvim" use "lukas-reineke/indent-blankline.nvim"
-- use "HiPhish/nvim-ts-rainbow2"
use "HiPhish/rainbow-delimiters.nvim"
use "FotiadisM/tabset.nvim" use "FotiadisM/tabset.nvim"
use 'nvim-tree/nvim-web-devicons' use 'nvim-tree/nvim-web-devicons'
use 'nvim-tree/nvim-tree.lua' use 'nvim-tree/nvim-tree.lua'

View File

@ -25,6 +25,7 @@ vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]])
vim.keymap.set("n", "<leader>Y", [["+Y]]) vim.keymap.set("n", "<leader>Y", [["+Y]])
vim.keymap.set({ "n", "v" }, "<leader>d", [["_d]]) vim.keymap.set({ "n", "v" }, "<leader>d", [["_d]])
vim.keymap.set("n", "<leader>vf", "<cmd>AerialPrev<CR>V$%")
vim.keymap.set("n", "<leader>df", "<cmd>AerialPrev<CR>V$%d") vim.keymap.set("n", "<leader>df", "<cmd>AerialPrev<CR>V$%d")
vim.keymap.set("i", "<C-c>", "<Esc>") vim.keymap.set("i", "<C-c>", "<Esc>")