Compare commits
No commits in common. "bb5e4930249049aaa37bbb8936896f6cb689f8b0" and "9359f306aeb88648b4765a707618b3912b2b6540" have entirely different histories.
bb5e493024
...
9359f306ae
|
@ -15,18 +15,13 @@ require("presence").setup({
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"curriculum-vitae",
|
"curriculum-vitae",
|
||||||
"Nextcloud",
|
"Nextcloud",
|
||||||
"NvimTree_1",
|
"NvimTree",
|
||||||
},
|
},
|
||||||
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)
|
||||||
["CMakeLists.txt"] = { "CMake", "https://www.tiagorg.pt/assets/icons/png/cmake.png" },
|
adoc = { "AsciiDoc", "https://www.tiagorg.pt/assets/logos/adoc.png" },
|
||||||
[".env"] = { ".env", "https://www.tiagorg.pt/assets/icons/png/env.png" },
|
asm = { "Assembly", "https://www.tiagorg.pt/assets/logos/asm.png" },
|
||||||
["zsh;#toggleterm#1"] = { "Terminal", "https://www.tiagorg.pt/assets/icons/png/terminal.png" },
|
s = { "Assembly", "https://www.tiagorg.pt/assets/logos/asm.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
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ require('rainbow-delimiters.setup').setup {
|
||||||
query = {
|
query = {
|
||||||
[''] = 'rainbow-delimiters',
|
[''] = 'rainbow-delimiters',
|
||||||
lua = 'rainbow-blocks',
|
lua = 'rainbow-blocks',
|
||||||
bash = 'rainbow-blocks',
|
|
||||||
},
|
},
|
||||||
priority = {
|
priority = {
|
||||||
[''] = 110,
|
[''] = 110,
|
||||||
|
|
|
@ -1,14 +1,10 @@
|
||||||
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)
|
local function trim(str)
|
||||||
return str:gsub("^%s*(.-)%s*$", "%1")
|
return str:gsub("^%s*(.-)%s*$", "%1")
|
||||||
end
|
end
|
||||||
|
|
||||||
function LoadColors()
|
function LoadColors()
|
||||||
local color = nil
|
local color = nil
|
||||||
local file = io.open(colorscheme_file, "r")
|
local file = io.open("/home/tiagorg/.dotfiles/.config/nvim/data/colorscheme.txt", "r")
|
||||||
|
|
||||||
-- check if file exists
|
-- check if file exists
|
||||||
if file == nil then
|
if file == nil then
|
||||||
|
@ -34,9 +30,8 @@ end
|
||||||
function OnColorschemeChanged()
|
function OnColorschemeChanged()
|
||||||
local newColorscheme = vim.g.colors_name
|
local newColorscheme = vim.g.colors_name
|
||||||
|
|
||||||
local file = io.open(colorscheme_file, "w+")
|
local file = io.open("/home/tiagorg/.dotfiles/.config/nvim/data/colorscheme.txt", "w")
|
||||||
if file == nil then
|
if file == nil then
|
||||||
vim.loop.fs_mkdir(absolute_path .. "/data", 511, OnColorschemeChanged)
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
file:write(newColorscheme)
|
file:write(newColorscheme)
|
||||||
|
|
|
@ -5,4 +5,3 @@ require('tiagorg.colors')
|
||||||
|
|
||||||
require('Comment').setup()
|
require('Comment').setup()
|
||||||
require("nvim-surround").setup()
|
require("nvim-surround").setup()
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ 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',
|
||||||
|
@ -57,6 +56,8 @@ 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'
|
||||||
|
|
|
@ -25,7 +25,6 @@ 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>")
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
[user]
|
[user]
|
||||||
email = tiago.rgarcia@ua.pt
|
email = tiago.rgarcia@ua.pt
|
||||||
name = Tiago Garcia
|
name = Tiago Garcia
|
||||||
signingkey = 163D23CB1BD2F4FECA6D3695DFCD48E3F420DB42
|
signingkey = 545513959AF6B11BBAD0EF3FFF0A53A30B1ADF82
|
||||||
[core]
|
[core]
|
||||||
editor = nvim
|
editor = nvim
|
||||||
excludesfile = /home/tiagorg/.gitignore
|
excludesfile = /home/tiagorg/.gitignore
|
||||||
|
|
10
.zsh/.zshrc
10
.zsh/.zshrc
|
@ -7,7 +7,6 @@ export EDITOR=nvim
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
alias v='vim . && ref'
|
alias v='vim . && ref'
|
||||||
alias vi='/usr/bin/vim'
|
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"
|
export PF_INFO="ascii title os shell editor pkgs uptime memory"
|
||||||
|
|
||||||
|
@ -298,16 +297,9 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999999'
|
||||||
|
|
||||||
eval "$(zoxide init --cmd cd zsh)"
|
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
|
# Set up path to check personal bin, include and lib directory
|
||||||
export PATH=/home/tiagorg/.dotfiles/.local/bin:$PATH
|
export PATH=/home/tiagorg/.dotfiles/.local/bin:$PATH
|
||||||
export CPATH=/home/tiagorg/.dotfiles/.local/include:/home/tiagorg/repos/gh-wh-handler/include:$CPATH
|
export CPATH=/home/tiagorg/.dotfiles/.local/include:$CPATH
|
||||||
# For C only: C_INCLUDE_PATH
|
# For C only: C_INCLUDE_PATH
|
||||||
# For C++ only: CPLUS_INCLUDE_PATH
|
# For C++ only: CPLUS_INCLUDE_PATH
|
||||||
# For Obj-C: OBJC_INCLUDE_PATH
|
# For Obj-C: OBJC_INCLUDE_PATH
|
||||||
|
|
Loading…
Reference in New Issue