commit de82f78cbb66b69f7abc801d3fb2f1de9c1ec353
parent 44c03c35b99e15d350f115a80a43db590e346161
Author: Michał M. Sapka <michal@sapka.me>
Date: Tue, 10 May 2022 23:04:15 +0200
Keybindings for telescope
Diffstat:
8 files changed, 8 insertions(+), 79 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1 @@
+gh/*
diff --git a/fish/conf.d/omf.fish b/fish/conf.d/omf.fish
@@ -1,7 +0,0 @@
-# Path to Oh My Fish install.
-set -q XDG_DATA_HOME
- and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
- or set -gx OMF_PATH "$HOME/.local/share/omf"
-
-# Load Oh My Fish configuration.
-source $OMF_PATH/init.fish
diff --git a/fish/config.fish b/fish/config.fish
@@ -1,3 +0,0 @@
-if status is-interactive
- # Commands to run in interactive sessions can go here
-end
diff --git a/fish/fish_variables b/fish/fish_variables
@@ -1,32 +0,0 @@
-# This file contains fish universal variable definitions.
-# VERSION: 3.0
-SETUVAR __fish_initialized:3400
-SETUVAR fish_color_autosuggestion:555\x1ebrblack
-SETUVAR fish_color_cancel:\x2dr
-SETUVAR fish_color_command:blue
-SETUVAR fish_color_comment:red
-SETUVAR fish_color_cwd:green
-SETUVAR fish_color_cwd_root:red
-SETUVAR fish_color_end:green
-SETUVAR fish_color_error:brred
-SETUVAR fish_color_escape:brcyan
-SETUVAR fish_color_history_current:\x2d\x2dbold
-SETUVAR fish_color_host:normal
-SETUVAR fish_color_host_remote:yellow
-SETUVAR fish_color_normal:normal
-SETUVAR fish_color_operator:brcyan
-SETUVAR fish_color_param:cyan
-SETUVAR fish_color_quote:yellow
-SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
-SETUVAR fish_color_search_match:\x2d\x2dbackground\x3d111
-SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
-SETUVAR fish_color_status:red
-SETUVAR fish_color_user:brgreen
-SETUVAR fish_color_valid_path:\x2d\x2dunderline
-SETUVAR fish_key_bindings:fish_default_key_bindings
-SETUVAR fish_pager_color_completion:normal
-SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di
-SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
-SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
-SETUVAR fish_pager_color_selected_background:\x2dr
-SETUVAR fish_user_paths:/opt/homebrew/bin
diff --git a/nvim/init.lua b/nvim/init.lua
@@ -19,12 +19,18 @@ set.softtabstop = 2
set.shiftwidth = 2
-- Keymaps
-opts = { noremap = true }
+opts = { noremap = true, silent = true }
+vim.g.mapleader = " "
+
vim.api.nvim_set_keymap("n", "<C-h>", "<C-w>h", opts)
vim.api.nvim_set_keymap("n", "<C-j>", "<C-w>k", opts)
vim.api.nvim_set_keymap("n", "<C-k>", "<C-w>k", opts)
vim.api.nvim_set_keymap("n", "<C-l>", "<C-w>l", opts)
+vim.api.nvim_set_keymap("n", "<leader>ff", ":lua require('telescope.builtin').find_files()<CR>", opts)
+vim.api.nvim_set_keymap("n", "<leader>fg", ":lua require('telescope.builtin').live_grep()<CR>", opts)
+vim.api.nvim_set_keymap("n", "<leader>fb", ":lua require('telescope.builtin').buffers()<CR>", opts)
+
local fn = vim.fn
-- Automatically install packer
diff --git a/skhd/.skhdrc.swp b/skhd/.skhdrc.swp
Binary files differ.
diff --git a/spacebar/.spacebarrc.swp b/spacebar/.spacebarrc.swp
Binary files differ.
diff --git a/spacebar/spacebarrc b/spacebar/spacebarrc
@@ -1,36 +0,0 @@
-#!/usr/bin/env sh
-
-spacebar -m config position top
-spacebar -m config display main
-spacebar -m config height 26
-spacebar -m config title on
-spacebar -m config spaces on
-spacebar -m config clock on
-spacebar -m config power on
-spacebar -m config padding_left 20
-spacebar -m config padding_right 20
-spacebar -m config spacing_left 25
-spacebar -m config spacing_right 15
-spacebar -m config text_font "Menlo:Regular:12.0"
-spacebar -m config icon_font "Font Awesome 5 Free:Solid:12.0"
-spacebar -m config background_color 0xff202020
-spacebar -m config foreground_color 0xffa8a8a8
-spacebar -m config power_icon_color 0xffcd950c
-spacebar -m config battery_icon_color 0xffd75f5f
-spacebar -m config dnd_icon_color 0xffa8a8a8
-spacebar -m config clock_icon_color 0xffa8a8a8
-spacebar -m config power_icon_strip
-spacebar -m config space_icon •
-spacebar -m config space_icon_color 0xffffab91
-spacebar -m config space_icon_color_secondary 0xff78c4d4
-spacebar -m config space_icon_color_tertiary 0xfffff9b0
-spacebar -m config space_icon_strip 1 2 3 4 5 6 7 8 9 10
-spacebar -m config spaces_for_all_displays on
-spacebar -m config clock_icon
-spacebar -m config dnd_icon
-spacebar -m config clock_format "%d/%m/%y %R"
-spacebar -m config right_shell on
-spacebar -m config right_shell_icon
-spacebar -m config right_shell_command "whoami"
-
-echo "spacebar configuration loaded.."v