Compare commits

..

No commits in common. "9359f306aeb88648b4765a707618b3912b2b6540" and "bb5e4930249049aaa37bbb8936896f6cb689f8b0" have entirely different histories.

8 changed files with 30 additions and 10 deletions

View File

@ -15,13 +15,18 @@ require("presence").setup({
"toggleterm",
"curriculum-vitae",
"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)
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" },
asm = { "Assembly", "https://www.tiagorg.pt/assets/logos/asm.png" },
s = { "Assembly", "https://www.tiagorg.pt/assets/logos/asm.png" },
["CMakeLists.txt"] = { "CMake", "https://www.tiagorg.pt/assets/icons/png/cmake.png" },
[".env"] = { ".env", "https://www.tiagorg.pt/assets/icons/png/env.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

View File

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

View File

@ -1,10 +1,14 @@
local path = vim.fn.stdpath('config')
local absolute_path = vim.loop.fs_realpath(path) or path
local colorscheme_file = absolute_path .. "/data/colorscheme.txt"
local function trim(str)
return str:gsub("^%s*(.-)%s*$", "%1")
end
function LoadColors()
local color = nil
local file = io.open("/home/tiagorg/.dotfiles/.config/nvim/data/colorscheme.txt", "r")
local file = io.open(colorscheme_file, "r")
-- check if file exists
if file == nil then
@ -30,8 +34,9 @@ end
function OnColorschemeChanged()
local newColorscheme = vim.g.colors_name
local file = io.open("/home/tiagorg/.dotfiles/.config/nvim/data/colorscheme.txt", "w")
local file = io.open(colorscheme_file, "w+")
if file == nil then
vim.loop.fs_mkdir(absolute_path .. "/data", 511, OnColorschemeChanged)
return
end
file:write(newColorscheme)

View File

@ -5,3 +5,4 @@ require('tiagorg.colors')
require('Comment').setup()
require("nvim-surround").setup()

View File

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

View File

@ -7,7 +7,7 @@
[user]
email = tiago.rgarcia@ua.pt
name = Tiago Garcia
signingkey = 545513959AF6B11BBAD0EF3FFF0A53A30B1ADF82
signingkey = 163D23CB1BD2F4FECA6D3695DFCD48E3F420DB42
[core]
editor = nvim
excludesfile = /home/tiagorg/.gitignore

View File

@ -7,6 +7,7 @@ export EDITOR=nvim
alias vim='nvim'
alias v='vim . && ref'
alias vi='/usr/bin/vim'
alias iv='export CPATH=$(pwd)/include:$CPATH && nvim . && ref'
export PF_INFO="ascii title os shell editor pkgs uptime memory"
@ -297,9 +298,16 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999999'
eval "$(zoxide init --cmd cd zsh)"
if which ruby >/dev/null && which gem >/dev/null; then
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Set up path to check personal bin, include and lib directory
export PATH=/home/tiagorg/.dotfiles/.local/bin:$PATH
export CPATH=/home/tiagorg/.dotfiles/.local/include:$CPATH
export CPATH=/home/tiagorg/.dotfiles/.local/include:/home/tiagorg/repos/gh-wh-handler/include:$CPATH
# For C only: C_INCLUDE_PATH
# For C++ only: CPLUS_INCLUDE_PATH
# For Obj-C: OBJC_INCLUDE_PATH