Compare commits

..

12 Commits

Author SHA1 Message Date
cc353572d5 fish: configuración de EDITOR a nvim 2025-01-13 09:45:44 +01:00
8914cf2ed6 desactivado Codeium 2024-11-29 10:06:01 +01:00
9cd552f4a2 quitado Tabby 2024-11-29 10:02:00 +01:00
serxoz
c1b9448e81 cambio fugitive por lazyvim 2024-08-29 21:36:22 +02:00
32e2ae1071 actualización neovim bufferline 2024-06-10 08:56:27 +02:00
6d605c2567 codeium disabled by default 2024-05-28 10:42:54 +02:00
b3819c1f05 aclaración no script monitors 2024-04-25 13:35:44 +02:00
c19e905d37 cambio na detección 2024-04-25 13:08:39 +02:00
c69c3ce66c configuracion monitores 2024-04-25 12:20:47 +02:00
6e4aff1fbf alacritty config file 2024-04-25 12:20:17 +02:00
437d96a605 configuracion para rust_analyzer 2024-04-17 17:59:17 +02:00
1524521e51 Merge pull request 'codeium' (#1) from codeium into master
Reviewed-on: #1
2024-04-17 16:44:34 +02:00
7 changed files with 170 additions and 16 deletions

77
alacritty/alacritty.toml Normal file
View File

@ -0,0 +1,77 @@
dynamic_title = true
live_config_reload = true
render_timer = false
tabspaces = 4
"window.opacity" = 0.965
[bell]
animation = "EaseOutExpo"
duration = 0
[colors]
draw_bold_text_with_bright_colors = true
[colors.bright]
black = "0x585858"
blue = "0x7cafc2"
cyan = "0x1ABB9B"
green = "0x8D8F8D"
magenta = "0xba8baf"
red = "0xab4642"
white = "0xf8f8f8"
yellow = "0xf7ca88"
[colors.normal]
black = "0x222D31"
blue = "0x7cafc2"
cyan = "0x1ABB9B"
green = "0x7E807E"
magenta = "0xba8baf"
red = "0xab4642"
white = "0xd8d8d8"
yellow = "0xf7ca88"
[colors.primary]
background = "0x222D31"
foreground = "0xd8d8d8"
[cursor]
style = "Block"
unfocused_hollow = true
[env]
TERM = "xterm-256color"
[mouse]
hide_when_typing = false
[[mouse.bindings]]
action = "PasteSelection"
mouse = "Middle"
[mouse.double_click]
threshold = 300
[mouse.triple_click]
threshold = 300
[scrolling]
auto_scroll = true
faux_multiplier = 100
history = 10000
multiplier = 100
[selection]
save_to_clipboard = false
semantic_escape_chars = ",│`|:\"' ()[]{}<>"
[window]
decorations = "full"
[window.dimensions]
columns = 0
lines = 0
[window.padding]
x = 2
y = 2

58
bin/monitors Executable file
View File

@ -0,0 +1,58 @@
#!/bin/bash
#
# Detecta os monitores conectados e configura o xrandr
# NOTA: solo sirve para executar a man, o udev non se entera usando xrandr
# Función para verificar a cantidade de monitores conectados
check_monitors() {
connected_monitors=$(xrandr --query | grep " connected" | wc -l)
echo "$connected_monitors"
}
# Configuracion para un monitor
single_monitor() {
xrandr --output eDP --primary --mode 1920x1200 --pos 0x0 --rotate normal \
--output HDMI-A-0 --off --output DisplayPort-0 --off \
--output DisplayPort-1 --off \
--output DisplayPort-2 --off \
--output DisplayPort-3 --off \
--output DisplayPort-4 --off \
--output DisplayPort-5 --off \
--output DisplayPort-6 --off \
--output DisplayPort-7 --off \
--output DisplayPort-8 --off \
--output DisplayPort-9 --off \
--output DisplayPort-10 --off \
--output DisplayPort-11 --off \
--output DisplayPort-12 --off
}
# Configuracion para dos monitores
dual_monitor() {
xrandr --output eDP-1 --mode 1920x1080 --pos 192x1080 --rotate normal \
--output HDMI-2 --mode 2560x1080 --pos 0x0 --rotate normal
}
# Configuracion para multiples monitores
multi_monitor() {
display_ports=$(xrandr --query | grep "DisplayPort" | grep " connected" | cut -d" " -f1)
monitor_izquierdo=$(echo $display_ports | cut -d" " -f1)
monitor_derecho=$(echo $display_ports | cut -d" " -f2)
xrandr \
--output eDP --auto --pos 863x1080 --rotate normal \
--output $monitor_izquierdo --auto --pos 0x0 --rotate normal \
--output $monitor_derecho --auto --pos 1920x0 --rotate normal
}
current_monitors=$(check_monitors)
if [ "$current_monitors" -eq 1 ]; then
# Solo monitor do portatil
single_monitor
elif [ "$current_monitors" -eq 1 ]; then
# Monitor do portatil e monitor externo (casa)
dual_monitor
else
# Multiples monitores conectados (oficina)
multi_monitor
fi

1
fish/conf.d/editor.fish Normal file
View File

@ -0,0 +1 @@
set -gx EDITOR /usr/bin/nvim

View File

@ -3,7 +3,6 @@ local lsp = require("lsp-zero")
lsp.preset("recommended")
lsp.ensure_installed({
'tsserver',
'rust_analyzer',
'jedi_language_server',
'gopls',
@ -22,6 +21,24 @@ lsp.configure('lua-language-server', {
}
})
lsp.configure('rust_analyzer', {
settings = {
["rust-analyzer"] = {
diagnostics = {
enable = true
},
checkOnSave = {
enable = true
},
procMacro = {
enable = true
},
cargo = {
allFeatures = true
}
}
}
})
local cmp = require('cmp')
local cmp_select = {behavior = cmp.SelectBehavior.Select}
@ -56,7 +73,7 @@ lsp.setup_nvim_cmp({
sources = {
-- AI sources
-- { name = 'copilot' },
{ name = 'codeium' },
-- { name = 'codeium' },
-- Other sources
{ name = 'nvim_lsp' },
{ name = 'buffer' },

View File

@ -14,3 +14,6 @@ vim.api.nvim_create_autocmd(
end,
}
)
-- codeium
-- vim.g.codeium_enabled = false

View File

@ -33,7 +33,13 @@ return require('packer').startup(function(use)
use("theprimeagen/harpoon")
use("theprimeagen/refactoring.nvim")
use("mbbill/undotree")
use("tpope/vim-fugitive")
use({
"kdheepak/lazygit.nvim",
-- optional for floating window border decoration
requires = {
"nvim-lua/plenary.nvim",
},
})
use("nvim-treesitter/nvim-treesitter-context");
use {
@ -70,23 +76,12 @@ return require('packer').startup(function(use)
-- }
-- use("CopilotC-Nvim/CopilotChat.nvim")
--
use {
"Exafunction/codeium.nvim",
requires = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
},
config = function()
require("codeium").setup({
enable_chat = true,
})
end
}
-- use("Exafunction/codeium.vim")
--
use("eandrju/cellular-automaton.nvim")
-- use("laytan/cloak.nvim")
use("terrortylor/nvim-comment")
use {'akinsho/bufferline.nvim', tag = "v3.*", requires = 'kyazdani42/nvim-web-devicons'}
use {'akinsho/bufferline.nvim', tag = "*", requires = 'kyazdani42/nvim-web-devicons'}
use({
'nvim-lualine/lualine.nvim',
requires = { 'kyazdani42/nvim-web-devicons', opt = true }

View File

@ -57,3 +57,6 @@ vim.keymap.set("n", "tk", ":bnext<CR>")
vim.keymap.set("n", "tj", ":bprev<CR>")
vim.keymap.set("n", "th", ":bfirst<CR>")
vim.keymap.set("n", "tl", ":blast<CR>")
-- Lazygit
vim.keymap.set("n", "<leader>gg", ":LazyGit<CR>")