Compare commits

...

4 Commits

Author SHA1 Message Date
andrzej cad64591ce make jk nav smoother in lazygit 2024-05-23 13:21:53 +02:00
andrzej 8134cf81d5 bg fixes 2024-05-23 13:21:31 +02:00
andrzej f22d2d849d moved to keymaps 2024-05-23 13:21:08 +02:00
andrzej 812b6b7681 super comma! 2024-05-23 13:20:50 +02:00
5 changed files with 34 additions and 17 deletions

View File

@ -48,5 +48,3 @@ vim.api.nvim_create_autocmd({ "DirChanged", "VimEnter" }, {
end
end,
})
-- go to next comma and press enter
vim.keymap.set("n", "<M-,>", "f,a<cr><esc>")

View File

@ -38,3 +38,8 @@ vim.keymap.set({ "n", "i" }, "<C-s>", "<cmd>wa<CR>", { desc = "save" })
--navigate buffers
--prev
vim.keymap.set({ "i", "n" }, "<M-->", "<cmd>b#<cr>", { desc = "Previous buffer." })
--SUPER COMMA
-- go to next comma and press enter
vim.keymap.set("n", "<M-,>", "f,a<cr><esc>")
vim.keymap.set("i", "<M-,>", "<esc>A,<cr><esc>")

View File

@ -12,4 +12,20 @@ return -- nvim v0.8.0
dependencies = {
"nvim-lua/plenary.nvim",
},
init = function()
--Terminal opt changes (so lazygit is a bit smoother)
local function setTerminalModeVars(on)
vim.opt.timeoutlen = on and 100 or 300
end
vim.api.nvim_create_autocmd({ "TermOpen" }, {
callback = function()
setTerminalModeVars(true)
end,
})
vim.api.nvim_create_autocmd({ "TermClose" }, {
callback = function()
setTerminalModeVars(false)
end,
})
end,
}

View File

@ -1,20 +1,7 @@
local wezterm = require("wezterm")
local bg_color = wezterm.get_builtin_color_schemes()["rose-pine"].background
return {
{
source = {
File = require("selected_bg"),
},
hsb = {
hue = 1.0,
saturation = 1,
brightness = 0.7,
},
},
{
source = {
Color = bg_color,
Color = Selected_color_scheme.background,
},
width = "100%",
height = "100%",

View File

@ -6,11 +6,22 @@ local config = wezterm.config_builder()
-- This is where you actually apply your config choices
config.font = wezterm.font("GoMono Nerd Font Mono")
config.color_scheme = "rose-pine"
--This is the value you edit ↓
local color_scheme = "rose-pine"
config.color_scheme = color_scheme
Selected_color_scheme = wezterm.get_builtin_color_schemes()[color_scheme]
print(Selected_color_scheme)
config.hide_tab_bar_if_only_one_tab = true
--background
config.background = require("background")
config.window_padding = {
left = 2,
right = 2,
top = 0,
bottom = 0,
}
config.use_dead_keys = false
config.keys = require("keymaps")
-- and finally, return the configuration to wezterm