Compare commits

..

5 Commits

Author SHA1 Message Date
andrzej f436a14a76 clean up aliases, add tmux cd 2024-06-13 09:39:39 +02:00
andrzej c57164b274 add mouse mode and vi mode 2024-06-13 09:39:24 +02:00
andrzej 7e3e6c7d90 add gitea alias 2024-06-13 09:39:14 +02:00
andrzej 716df7e9f7 tweak super comma 2024-06-13 09:39:03 +02:00
andrzej e291f867b8 tweak oil 2024-06-13 09:38:55 +02:00
8 changed files with 33 additions and 34 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
nvim/.config/lazy-lock.json

View File

@ -41,9 +41,9 @@ vim.keymap.set({ "i", "n" }, "<M-->", "<cmd>b#<cr>", { desc = "Previous buffer."
--SUPER COMMA --SUPER COMMA
-- go to next comma and press enter -- go to next comma and press enter
vim.keymap.set("n", "<M-,>", "f,a<cr><esc>") vim.keymap.set("n", "<C-,>", "f,a<cr><esc>")
-- add a comma at end of line and CR -- add a comma at end of line and CR
vim.keymap.set("i", "<M-,>", "<esc>A,<cr><esc>") vim.keymap.set("i", "<M-,>", "<esc>A,<cr>")
--TOGGLE TABSTOP --TOGGLE TABSTOP
vim.keymap.set("n", "<M-t>", function() vim.keymap.set("n", "<M-t>", function()
@ -53,6 +53,3 @@ vim.keymap.set("n", "<M-t>", function()
vim.opt.tabstop = 8 vim.opt.tabstop = 8
end end
end) end)
--QUICKFIX
vim.keymap.set({ "n" }, "<leader>q", "<cmd>cn<CR>")

View File

@ -1,17 +1,17 @@
return { return {
-- "karb94/neoscroll.nvim", "karb94/neoscroll.nvim",
-- config = function() config = function()
-- require("neoscroll").setup({ require("neoscroll").setup({
-- -- All these keys will be mapped to their corresponding default scrolling animation -- All these keys will be mapped to their corresponding default scrolling animation
-- mappings = { "<C-u>", "<C-d>", "<C-b>", "<C-f>", "<C-y>", "<C-e>", "zt", "zz", "zb" }, mappings = { "<C-u>", "<C-d>", "<C-b>", "<C-f>", "<C-y>", "<C-e>", "zt", "zz", "zb" },
-- hide_cursor = true, -- Hide cursor while scrolling hide_cursor = true, -- Hide cursor while scrolling
-- stop_eof = true, -- Stop at <EOF> when scrolling downwards stop_eof = true, -- Stop at <EOF> when scrolling downwards
-- respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
-- cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
-- easing_function = nil, -- Default easing function easing_function = nil, -- Default easing function
-- pre_hook = nil, -- Function to run before the scrolling animation starts pre_hook = nil, -- Function to run before the scrolling animation starts
-- post_hook = nil, -- Function to run after the scrolling animation ends post_hook = nil, -- Function to run after the scrolling animation ends
-- performance_mode = false, -- Disable "Performance Mode" on all buffers. performance_mode = false, -- Disable "Performance Mode" on all buffers.
-- }) })
-- end, end,
} }

View File

@ -9,9 +9,9 @@ return {
-- See :help oil-columns -- See :help oil-columns
columns = { columns = {
"icon", "icon",
-- "permissions", "permissions",
-- "size", "size",
-- "mtime", "mtime",
}, },
-- Buffer-local options to use for oil buffers -- Buffer-local options to use for oil buffers
buf_options = { buf_options = {
@ -32,7 +32,7 @@ return {
-- Send deleted files to the trash instead of permanently deleting them (:help oil-trash) -- Send deleted files to the trash instead of permanently deleting them (:help oil-trash)
delete_to_trash = false, delete_to_trash = false,
-- Skip the confirmation popup for simple operations (:help oil.skip_confirm_for_simple_edits) -- Skip the confirmation popup for simple operations (:help oil.skip_confirm_for_simple_edits)
skip_confirm_for_simple_edits = false, skip_confirm_for_simple_edits = true,
-- Selecting a new/moved/renamed file or directory will prompt you to save changes first -- Selecting a new/moved/renamed file or directory will prompt you to save changes first
-- (:help prompt_save_on_select_new_entry) -- (:help prompt_save_on_select_new_entry)
prompt_save_on_select_new_entry = true, prompt_save_on_select_new_entry = true,
@ -61,8 +61,8 @@ return {
keymaps = { keymaps = {
["g?"] = "actions.show_help", ["g?"] = "actions.show_help",
["<CR>"] = "actions.select", ["<CR>"] = "actions.select",
["<C-s>"] = "actions.select_vsplit", ["<C-v>"] = "actions.select_vsplit",
["<C-h>"] = "actions.select_split", ["<C-x>"] = "actions.select_split",
["<C-t>"] = "actions.select_tab", ["<C-t>"] = "actions.select_tab",
["<C-p>"] = "actions.preview", ["<C-p>"] = "actions.preview",
["<C-c>"] = "actions.close", ["<C-c>"] = "actions.close",
@ -80,7 +80,7 @@ return {
use_default_keymaps = true, use_default_keymaps = true,
view_options = { view_options = {
-- Show files and directories that start with "." -- Show files and directories that start with "."
show_hidden = false, show_hidden = true,
-- This function defines what is considered a "hidden" file -- This function defines what is considered a "hidden" file
is_hidden_file = function(name, bufnr) is_hidden_file = function(name, bufnr)
return vim.startswith(name, ".") return vim.startswith(name, ".")

View File

@ -10,3 +10,7 @@ Host jenkins
Hostname 192.168.0.119 Hostname 192.168.0.119
User andrzej User andrzej
Host gitea
Hostname 192.168.0.184
User root

View File

@ -8,6 +8,9 @@ set -g @rose_pine_date_time '%a %e %B | %R'
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator' set -g @plugin 'christoomey/vim-tmux-navigator'
set -g mouse on
setw -g mode-keys vi
# Other examples: # Other examples:
# set -g @plugin 'github_username/plugin_name' # set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch' # set -g @plugin 'github_username/plugin_name#branch'

View File

@ -1 +1 @@
LAST_EPOCH=19873 LAST_EPOCH=19858

View File

@ -1,10 +1,6 @@
alias cuqui="wakeonlan B8:AE:ED:74:C8:B7 && sleep 5 && ssh cuqui@192.168.0.57"
alias cheese="~/scripts/cheesecake.sh"
alias work="~/scripts/sfw.sh"
alias update="apt update && apt upgrade -y" alias update="apt update && apt upgrade -y"
alias b="~/scripts/switch-bg.sh"
alias icat="kitty +kitten icat"
alias tidal="/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=com.mastermindzh.tidal-hifi com.mastermindzh.tidal-hifi &" alias tidal="/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=com.mastermindzh.tidal-hifi com.mastermindzh.tidal-hifi &"
alias tcd= "tmux command-prompt 'attach-session -c \"#{pane_current_path}\"'"
##suffix aliases ##suffix aliases
#text formats #text formats