24/3 update

Signed-off-by: TiagoRG <tiago.rgarcia@ua.pt>
This commit is contained in:
Tiago Garcia 2024-03-24 23:13:50 +00:00
parent 83a43d2c27
commit 37dccc8976
Signed by: TiagoRG
GPG Key ID: DFCD48E3F420DB42
10 changed files with 88 additions and 17 deletions

View File

@ -48,6 +48,10 @@ return require('packer').startup(function(use)
use "stevearc/aerial.nvim"
use 'numToStr/Comment.nvim'
use 'm4xshen/autoclose.nvim'
use({
"kylechui/nvim-surround",
tag = "*", -- Use for stability; omit to use `main` branch for the latest features
})
-- Extras
use 'mbbill/undotree'
@ -60,10 +64,6 @@ return require('packer').startup(function(use)
use 'lewis6991/gitsigns.nvim'
use 'romgrk/barbar.nvim'
use { "akinsho/toggleterm.nvim", tag = '*' }
use({
"kylechui/nvim-surround",
tag = "*", -- Use for stability; omit to use `main` branch for the latest features
})
use 'nvim-lualine/lualine.nvim'
-- Misc
@ -83,5 +83,4 @@ return require('packer').startup(function(use)
"nvim-telescope/telescope.nvim"
}
}
use 'mfussenegger/nvim-jdtls'
end)

View File

@ -1,8 +1,6 @@
--vim.keymap.set("n", "<leader>e", vim.cmd.E)
vim.keymap.set("n", "<leader>w", vim.cmd.w)
vim.keymap.set({ "n", "i" }, "<C-S>", vim.cmd.w)
vim.keymap.set("n", "<leader>o", "o<Esc>")
vim.keymap.set("n", "<leader>O", "O<Esc>")
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")

View File

@ -189,11 +189,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",

View File

@ -1,3 +1,13 @@
snippet detpic_analog_config
TRISBbits.TRISB4 = 1;
AD1PCFGbits.PCFG4 = 0;
AD1CON1bits.SSRC = 7;
AD1CON1bits.CLRASAM = 1;
AD1CON3bits.SAMC = 16;
AD1CON2bits.SMPI = 0;
AD1CHSbits.CH0SA = 4;
AD1CON1bits.ON = 1;
## Main
# main
snippet main

View File

@ -3,8 +3,7 @@ extends c
## Main
# main()
snippet mainn
int main()
{
int main() {
${0}
return 0;
}

1
.gitignore vendored
View File

@ -2,5 +2,6 @@
.vim/.netrwhist
.vim/undodir/
.vim/pack/
.vim/autoload/plug.vim
.zsh/zsh-autosuggestions
.zsh/zsh-syntax-highlighting

63
.ideavimrc Normal file
View File

@ -0,0 +1,63 @@
set clipboard+=unnamed
set number
set relativenumber
set signcolumn=auto
set cursorline
set smartindent
set tabstop=4
set shiftwidth=4
set ls=2
set hlsearch
set incsearch
set ignorecase
set scrolloff=10
set wildmenu
let g:mapleader=" "
syntax on
colorscheme onedark
nnoremap <leader>w :w<CR>
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
xnoremap J :move '>+1<CR>gv=gv
xnoremap K :move '<-2<CR>gv=gv
nnoremap J mzJ`z
xnoremap <Tab> >gv
xnoremap <S-Tab> <gv
nnoremap n nzzzv
nnoremap N Nzzzv
nnoremap <leader>y "+y
vnoremap <leader>y "+y
nnoremap <leader>Y "+Y
nnoremap <leader>d "_d
vnoremap <leader>d "_d
nnoremap <silent> Q @@
vnoremap <leader>rs :s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>
nnoremap <leader>ra :%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>
nnoremap <leader>rc :%s/\<<C-r><C-w>\>/<C-r><C-w>/gcI<Left><Left><Left><Left>
nnoremap <leader>m :!make<CR>
augroup SearchHighlight
autocmd!
autocmd CmdlineLeave /,\? :nnoremap <buffer> <Esc> :noh<CR>
autocmd CmdlineChanged /,\? :nnoremap <buffer> <Esc> :noh<CR>
augroup END
Plug 'tpope/vim-surround'

View File

@ -1,4 +1,4 @@
#!/bin/python3.11
#!/bin/python3
import os
from sys import argv

View File

@ -27,3 +27,5 @@ setup.sh
!.config/nvim
.local/*
!.local/bin
!.local/include
!.local/lib

View File

@ -318,6 +318,10 @@ if [ -d /opt/pic32mx/include ] ; then
export CPATH=$CPATH:/opt/pic32mx/include
fi
if which ruby >/dev/null && which gem >/dev/null; then
export PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
fi
eval "$(zoxide init --cmd cd zsh)"
# Set up path to check personal bin, include and lib directory
@ -326,6 +330,6 @@ export CPATH=/home/tiagorg/.dotfiles/.local/include:$CPATH
# For C only: C_INCLUDE_PATH
# For C++ only: CPLUS_INCLUDE_PATH
# For Obj-C: OBJC_INCLUDE_PATH
export LIBRARY_PATH=/home/tiagorg/.dotfiles/.local/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=/home/tiagorg/.dotfiles/.local/lib:$LD_LIBRARY_PATH
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh