Some changes ig

This commit is contained in:
Tiago Garcia 2024-07-10 12:01:01 +01:00
parent 2285251da5
commit 657184b544
Signed by: TiagoRG
GPG Key ID: DFCD48E3F420DB42
7 changed files with 40 additions and 25 deletions

View File

@ -0,0 +1,26 @@
local rainbow_delimiters = require 'rainbow-delimiters'
require('rainbow-delimiters.setup').setup {
strategy = {
[''] = rainbow_delimiters.strategy['global'],
vim = rainbow_delimiters.strategy['local'],
},
query = {
[''] = 'rainbow-delimiters',
lua = 'rainbow-blocks',
},
priority = {
[''] = 110,
lua = 210,
},
highlight = {
'RainbowDelimiterRed',
'RainbowDelimiterYellow',
'RainbowDelimiterBlue',
'RainbowDelimiterOrange',
'RainbowDelimiterGreen',
'RainbowDelimiterViolet',
'RainbowDelimiterCyan',
},
}

View File

@ -1,12 +1,12 @@
require 'nvim-treesitter.configs'.setup { require 'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed) -- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "bash", "lua", "vim", "vimdoc", "query", "regex", ensure_installed = { "bash", "lua", "vim", "regex", "c", "c_sharp",
"c", "cpp", "c_sharp", "rust", "python", "python", "html", "css", "php", "javascript", "typescript", "sql"
"html", "css", "php", "javascript", "typescript", "sql" },
},
-- Install parsers synchronously (only applied to `ensure_installed`) -- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false, sync_install = true,
-- Automatically install missing parsers when entering buffer -- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
@ -19,16 +19,6 @@ require 'nvim-treesitter.configs'.setup {
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights. -- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages -- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = true, additional_vim_regex_highlighting = false,
}, },
rainbow = {
enable = true,
-- list of languages you want to disable the plugin for
disable = { 'jsx', 'cpp' },
-- Which query to use for finding delimiters
query = 'rainbow-parens',
-- Highlight the entire buffer all at once
strategy = require('ts-rainbow').strategy.global,
}
} }

View File

@ -4,7 +4,7 @@ end
function LoadColors() function LoadColors()
local color = nil local color = nil
local file = io.open("/home/tiagorg/.config/nvim/data/colorscheme.txt", "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
@ -30,7 +30,7 @@ end
function OnColorschemeChanged() function OnColorschemeChanged()
local newColorscheme = vim.g.colors_name local newColorscheme = vim.g.colors_name
local file = io.open("/home/tiagorg/.config/nvim/data/colorscheme.txt", "w") local file = io.open("/home/tiagorg/.dotfiles/.config/nvim/data/colorscheme.txt", "w")
if file == nil then if file == nil then
return return
end end

View File

@ -56,7 +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/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

@ -6,10 +6,10 @@
helper = !/usr/bin/gh auth git-credential helper = !/usr/bin/gh auth git-credential
[user] [user]
email = tiago.rgarcia@ua.pt email = tiago.rgarcia@ua.pt
name = TiagoRG name = Tiago Garcia
signingkey = DFCD48E3F420DB42! signingkey = 545513959AF6B11BBAD0EF3FFF0A53A30B1ADF82
[core] [core]
editor = nvim editor = nvim
excludesfile = /home/tiagorg/.gitignore excludesfile = /home/tiagorg/.gitignore
[alias] [alias]
commit = commit -S commit = commit -S

1
.gitignore vendored
View File

@ -6,3 +6,4 @@
.zsh/zsh-autosuggestions .zsh/zsh-autosuggestions
.zsh/zsh-syntax-highlighting .zsh/zsh-syntax-highlighting
.zsh/.zcompcache .zsh/.zcompcache
.zsh/.zsh_history

View File

@ -307,7 +307,4 @@ export LD_LIBRARY_PATH=/home/tiagorg/.dotfiles/.local/lib:$LD_LIBRARY_PATH
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh
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" # This loads nvm
eval "$(fzf --zsh)" eval "$(fzf --zsh)"