Compare commits
No commits in common. "76ebe215a229668d57fc23ff02a1552bace3f69d" and "1746d3282c9d8a5c6bf220b2636f3676976d7ef0" have entirely different histories.
76ebe215a2
...
1746d3282c
|
@ -2,7 +2,7 @@ local function trim(str)
|
|||
return str:gsub("^%s*(.-)%s*$", "%1")
|
||||
end
|
||||
|
||||
function LoadColors()
|
||||
function ColorMyPencils()
|
||||
local color = nil
|
||||
local file = io.open("/home/tiagorg/.config/nvim/data/colorscheme.txt", "r")
|
||||
|
||||
|
@ -24,6 +24,10 @@ function LoadColors()
|
|||
end
|
||||
|
||||
vim.cmd.colorscheme(color)
|
||||
|
||||
--vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
|
||||
--vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
end
|
||||
|
||||
-- Define a function to be called when the colorscheme changes
|
||||
|
@ -37,12 +41,7 @@ function OnColorschemeChanged()
|
|||
file:write(newColorscheme)
|
||||
end
|
||||
|
||||
LoadColors()
|
||||
ColorMyPencils()
|
||||
-- Set up an autocmd to trigger the function when the colorscheme changes
|
||||
vim.cmd([[autocmd ColorScheme * lua OnColorschemeChanged()]])
|
||||
|
||||
vim.api.nvim_create_user_command("TransparentBackground", function(opts)
|
||||
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
end, {})
|
||||
|
|
@ -21,5 +21,5 @@ require("nvim-tree").setup({
|
|||
},
|
||||
})
|
||||
|
||||
vim.keymap.set({'n', 'i'}, '<C-t>', '<cmd>NvimTreeToggle<CR>', { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-t>', ':NvimTreeToggle<CR>', { noremap = true, silent = true })
|
||||
vim.keymap.set("n", "<leader>e", "<cmd>NvimTreeFocus<CR>")
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
require 'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = { "bash", "lua", "vim", "vimdoc", "query", "regex",
|
||||
"c", "cpp", "c_sharp", "rust", "python",
|
||||
"html", "css", "php", "javascript", "typescript", "sql"
|
||||
},
|
||||
-- ensure_installed = { "bash", "lua", "vim", "vimdoc", "query", "regex",
|
||||
-- "c", "cpp", "c_sharp", "rust", "python",
|
||||
-- "html", "css", "php", "javascript", "typescript", "sql"
|
||||
-- },
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
@ -25,7 +25,7 @@ require 'nvim-treesitter.configs'.setup {
|
|||
rainbow = {
|
||||
enable = true,
|
||||
-- list of languages you want to disable the plugin for
|
||||
disable = { 'jsx', 'cpp' },
|
||||
disable = { 'jsx' },
|
||||
-- Which query to use for finding delimiters
|
||||
query = 'rainbow-parens',
|
||||
-- Highlight the entire buffer all at once
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
require("trouble").setup {
|
||||
position = "bottom",
|
||||
auto_open = true,
|
||||
auto_close = true,
|
||||
auto_close = false,
|
||||
auto_preview = false,
|
||||
icons = true,
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
vscode
|
||||
monokai-pro
|
|
@ -1,6 +1,6 @@
|
|||
require("tiagorg.set")
|
||||
require("tiagorg.remap")
|
||||
require('tiagorg.colors')
|
||||
|
||||
require('Comment').setup()
|
||||
require("liveshare").setup()
|
||||
require("nvim-surround").setup()
|
||||
|
|
|
@ -83,5 +83,4 @@ return require('packer').startup(function(use)
|
|||
"nvim-telescope/telescope.nvim"
|
||||
}
|
||||
}
|
||||
use 'mfussenegger/nvim-jdtls'
|
||||
end)
|
||||
|
|
|
@ -154,6 +154,11 @@ _G.packer_plugins = {
|
|||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim",
|
||||
url = "https://github.com/lukas-reineke/indent-blankline.nvim"
|
||||
},
|
||||
["liveshare.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/liveshare.nvim",
|
||||
url = "https://github.com/TiagoRG/liveshare.nvim"
|
||||
},
|
||||
["lsp-zero.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim",
|
||||
|
@ -189,11 +194,6 @@ _G.packer_plugins = {
|
|||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
||||
},
|
||||
["nvim-jdtls"] = {
|
||||
loaded = true,
|
||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-jdtls",
|
||||
url = "https://github.com/mfussenegger/nvim-jdtls"
|
||||
},
|
||||
["nvim-lspconfig"] = {
|
||||
loaded = true,
|
||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||
|
|
|
@ -2,5 +2,3 @@
|
|||
.vim/.netrwhist
|
||||
.vim/undodir/
|
||||
.vim/pack/
|
||||
.zsh/zsh-autosuggestions
|
||||
.zsh/zsh-syntax-highlighting
|
||||
|
|
|
@ -21,5 +21,3 @@ _darcs
|
|||
^/LICENSE.*
|
||||
^/COPYING
|
||||
# -------------------------
|
||||
|
||||
setup.sh
|
||||
|
|
2
.vimrc
2
.vimrc
|
@ -1,5 +1,3 @@
|
|||
set clipboard+="unnamedplus"
|
||||
|
||||
set number
|
||||
set relativenumber
|
||||
set signcolumn=auto
|
||||
|
|
|
@ -293,7 +293,6 @@ alias s='sudo'
|
|||
alias grepf='grep -sirnIE'
|
||||
alias tl='telnet localhost'
|
||||
alias py='python'
|
||||
alias mkjava='javac -d bin/ src/**/*.java'
|
||||
alias core='echo "core.%e.%p" | sudo tee /proc/sys/kernel/core_pattern'
|
||||
|
||||
# uaveiro-leci repository
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit a411ef3e0992d4839f0732ebeb9823024afaaaa8
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 143b25eb98aa3227af63bd7f04413e1b3e7888ec
|
37
README.md
37
README.md
|
@ -2,12 +2,41 @@
|
|||
|
||||
Repository with my dotfiles and some configurations
|
||||
|
||||
## Installation
|
||||
## Requirements
|
||||
|
||||
To install, just run the following command:
|
||||
For everything to work properly, the following packages must be installed.
|
||||
|
||||
#### Arch Linux
|
||||
|
||||
```sh
|
||||
wget -qO- https://tiagorg.pt/df-setup | bash
|
||||
sudo pacman -S git stow vim neovim zsh clang
|
||||
```
|
||||
|
||||
This will install dependencies and setup stow, zsh, vim and neovim.
|
||||
## Installation
|
||||
|
||||
### Clone the repo
|
||||
|
||||
#### Using HTTPS
|
||||
|
||||
```sh
|
||||
git clone https://github.com/TiagoRG/.dotfiles.git
|
||||
```
|
||||
|
||||
#### Using SSH
|
||||
|
||||
```sh
|
||||
git clone git@github.com:TiagoRG/.dotfiles.git
|
||||
```
|
||||
|
||||
#### Using GitHub CLI
|
||||
|
||||
```sh
|
||||
gh repo clone TiagoRG/.dotfiles
|
||||
```
|
||||
|
||||
### Setup stow's symlinks
|
||||
|
||||
```sh
|
||||
cd .dotfiles
|
||||
stow .
|
||||
```
|
||||
|
|
43
setup.sh
43
setup.sh
|
@ -1,43 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Install the required packages
|
||||
# print in green
|
||||
echo -e "\e[32m$1\e[0mInstalling the required packages"
|
||||
sudo pacman -Sy stow vim neovim zsh git clang nodejs npm --noconfirm
|
||||
|
||||
# Clone the dotfiles if it's not the current directory
|
||||
if [ "$(pwd)" != "$HOME/.dotfiles" ]; then
|
||||
echo -e "\e[32m$1\e[0mCloning the dotfiles repository"
|
||||
git clone "https://github.com/TiagoRG/.dotfiles.git" "$HOME/.dotfiles"
|
||||
cd "$HOME/.dotfiles" || exit
|
||||
fi
|
||||
|
||||
# Setup Vim
|
||||
echo -e "\e[32m$1\e[0mSetting up Vim"
|
||||
echo -e "\e[32m$1\e[0mInstalling OneDark theme"
|
||||
curl -fLo "$HOME/.dotfiles/.vim/colors/onedark.vim" --create-dirs "https://raw.githubusercontent.com/joshdick/onedark.vim/master/colors/onedark.vim"
|
||||
curl -fLo "$HOME/.dotfiles/.vim/autoload/onedark.vim" --create-dirs "https://raw.githubusercontent.com/joshdick/onedark.vim/master/autoload/onedark.vim"
|
||||
echo -e "\e[32m$1\e[0mInstalling Copilot"
|
||||
git clone "https://github.com/github/copilot.vim.git" "$HOME/.dotfiles/.vim/pack/github/start/copilot.vim"
|
||||
echo -e "\e[32m$1\e[0mSetting up Copilot"
|
||||
stow -d "$HOME/.dotfiles" "$HOME"
|
||||
/bin/vim -c 'Copilot setup' -c 'qa!'
|
||||
|
||||
# Setup Neovim
|
||||
echo -e "\e[32m$1\e[0mSetting up Neovim"
|
||||
echo -e "\e[32m$1\e[0mInstalling Packer"
|
||||
git clone --depth 1 "https://github.com/wbthomason/packer.nvim" "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
|
||||
cd "$HOME/.dotfiles/.config/nvim" || exit
|
||||
echo -e "\e[32m$1\e[0mInstalling Plugins"
|
||||
stow -d "$HOME/.dotfiles" "$HOME"
|
||||
/bin/nvim --headless -c 'source lua/tiagorg/packer.lua' -c 'PackerSync' -c 'qa!'
|
||||
cd "$OLDPWD" || exit
|
||||
|
||||
# Setup zsh
|
||||
echo -e "\e[32m$1\e[0mSetting up zsh"
|
||||
chsh -s /bin/zsh
|
||||
echo -e "\e[32m$1\e[0mInstalling zsh-autosuggestions"
|
||||
git clone "https://github.com/zsh-users/zsh-autosuggestions.git" "$HOME/.dotfiles/.zsh/zsh-autosuggestions"
|
||||
echo -e "\e[32m$1\e[0mInstalling zsh-syntax-highlighting"
|
||||
git clone "https://github.com/zsh-users/zsh-syntax-highlighting.git" "$HOME/.dotfiles/.zsh/zsh-syntax-highlighting"
|
||||
|
Loading…
Reference in New Issue