parent
71ed21d3a7
commit
bc7220da93
|
@ -48,6 +48,10 @@ return require('packer').startup(function(use)
|
||||||
use "stevearc/aerial.nvim"
|
use "stevearc/aerial.nvim"
|
||||||
use 'numToStr/Comment.nvim'
|
use 'numToStr/Comment.nvim'
|
||||||
use 'm4xshen/autoclose.nvim'
|
use 'm4xshen/autoclose.nvim'
|
||||||
|
use({
|
||||||
|
"kylechui/nvim-surround",
|
||||||
|
tag = "*", -- Use for stability; omit to use `main` branch for the latest features
|
||||||
|
})
|
||||||
|
|
||||||
-- Extras
|
-- Extras
|
||||||
use 'mbbill/undotree'
|
use 'mbbill/undotree'
|
||||||
|
@ -60,10 +64,6 @@ return require('packer').startup(function(use)
|
||||||
use 'lewis6991/gitsigns.nvim'
|
use 'lewis6991/gitsigns.nvim'
|
||||||
use 'romgrk/barbar.nvim'
|
use 'romgrk/barbar.nvim'
|
||||||
use { "akinsho/toggleterm.nvim", tag = '*' }
|
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'
|
use 'nvim-lualine/lualine.nvim'
|
||||||
|
|
||||||
-- Misc
|
-- Misc
|
||||||
|
@ -83,5 +83,4 @@ return require('packer').startup(function(use)
|
||||||
"nvim-telescope/telescope.nvim"
|
"nvim-telescope/telescope.nvim"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
use 'mfussenegger/nvim-jdtls'
|
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
--vim.keymap.set("n", "<leader>e", vim.cmd.E)
|
--vim.keymap.set("n", "<leader>e", vim.cmd.E)
|
||||||
vim.keymap.set("n", "<leader>w", vim.cmd.w)
|
vim.keymap.set("n", "<leader>w", vim.cmd.w)
|
||||||
vim.keymap.set({ "n", "i" }, "<C-S>", 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", "J", ":m '>+1<CR>gv=gv")
|
||||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||||
|
|
|
@ -189,11 +189,6 @@ _G.packer_plugins = {
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||||
url = "https://github.com/hrsh7th/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"] = {
|
["nvim-lspconfig"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
path = "/home/tiagorg/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||||
|
|
|
@ -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
|
||||||
# main
|
# main
|
||||||
snippet main
|
snippet main
|
||||||
|
|
|
@ -3,8 +3,7 @@ extends c
|
||||||
## Main
|
## Main
|
||||||
# main()
|
# main()
|
||||||
snippet mainn
|
snippet mainn
|
||||||
int main()
|
int main() {
|
||||||
{
|
|
||||||
${0}
|
${0}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -221,7 +220,7 @@ snippet lld
|
||||||
snippet try
|
snippet try
|
||||||
try {
|
try {
|
||||||
|
|
||||||
}catch(${1}) {
|
} catch(${1}) {
|
||||||
|
|
||||||
}
|
}
|
||||||
# auto function
|
# auto function
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
.vim/.netrwhist
|
.vim/.netrwhist
|
||||||
.vim/undodir/
|
.vim/undodir/
|
||||||
.vim/pack/
|
.vim/pack/
|
||||||
|
.vim/autoload/plug.vim
|
||||||
.zsh/zsh-autosuggestions
|
.zsh/zsh-autosuggestions
|
||||||
.zsh/zsh-syntax-highlighting
|
.zsh/zsh-syntax-highlighting
|
||||||
|
|
|
@ -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'
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/python3.11
|
#!/bin/python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from sys import argv
|
from sys import argv
|
||||||
|
|
|
@ -27,3 +27,5 @@ setup.sh
|
||||||
!.config/nvim
|
!.config/nvim
|
||||||
.local/*
|
.local/*
|
||||||
!.local/bin
|
!.local/bin
|
||||||
|
!.local/include
|
||||||
|
!.local/lib
|
||||||
|
|
|
@ -318,6 +318,10 @@ if [ -d /opt/pic32mx/include ] ; then
|
||||||
export CPATH=$CPATH:/opt/pic32mx/include
|
export CPATH=$CPATH:/opt/pic32mx/include
|
||||||
fi
|
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)"
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
|
|
||||||
# Set up path to check personal bin, include and lib directory
|
# 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: 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
|
||||||
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
|
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh
|
||||||
|
|
Loading…
Reference in New Issue