clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add templates and snippets

sspaeti 11090d57 bea354d9

+73 -1
+24 -1
nvim/.config/nvim/lua/sspaeti/remap.lua
··· 47 47 vim.keymap.set('n', 'sz', ':FZF<CR>') 48 48 -- si and sm are mapped to harpoon 49 49 -- vim.keymap.set(' sm :Marms<CR> 50 - -- vim.keymap.set(' ss :Snippets<CR> 50 + -- vim.keymap.set('<leader>st :Snippets<CR> 51 + -- Template picker: browse and insert templates with <leader>ss 52 + local function insert_template() 53 + local templates_dir = vim.fn.stdpath("config") .. "/templates" 54 + require("telescope.builtin").find_files({ 55 + prompt_title = "Templates", 56 + cwd = templates_dir, 57 + attach_mappings = function(prompt_bufnr, map) 58 + local actions = require("telescope.actions") 59 + local action_state = require("telescope.actions.state") 60 + actions.select_default:replace(function() 61 + actions.close(prompt_bufnr) 62 + local selection = action_state.get_selected_entry() 63 + if selection then 64 + local file_path = templates_dir .. "/" .. selection[1] 65 + local lines = vim.fn.readfile(file_path) 66 + vim.api.nvim_put(lines, "l", true, true) 67 + end 68 + end) 69 + return true 70 + end, 71 + }) 72 + end 73 + vim.keymap.set("n", "<leader>ss", insert_template, { desc = "Insert template" }) 51 74 52 75 -- zoom vim split views 53 76 vim.api.nvim_set_keymap('n', 'Zz', '<C-w>_| <C-w>|', {noremap = true})
+18
nvim/.config/nvim/templates/Makefile
··· 1 + .DEFAULT_GOAL := up 2 + 3 + basic: #basic environment components 4 + docker-compose up postgres keycloak redis nats nats-box smtp4dev filebrowser -d 5 + 6 + superset-init: 7 + docker-compose up superset-init -d 8 + 9 + superset-up: #after the superset-init 10 + docker-compose up superset-worker-beat superset-worker superset-app hello-data-superset-sidecar -d 11 + 12 + down: #stop all containers 13 + docker-compose down 14 + 15 + up: basic superset-init superset-up 16 + 17 + help: ## Show all Makefile targets 18 + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
+31
nvim/.config/nvim/templates/docker-compose.yml
··· 1 + services: 2 + windows: 3 + image: dockurr/windows 4 + container_name: omarchy-windows 5 + environment: 6 + VERSION: "11" 7 + RAM_SIZE: "32G" 8 + CPU_CORES: "4" 9 + DISK_SIZE: "32G" 10 + USERNAME: "sspaeti" 11 + PASSWORD: "admin" 12 + devices: 13 + - /dev/kvm 14 + - /dev/net/tun 15 + cap_add: 16 + - NET_ADMIN 17 + ports: 18 + - 8006:8006 19 + - 3389:3389/tcp 20 + - 3389:3389/udp 21 + volumes: 22 + - /home/sspaeti/.windows:/storage 23 + # Mount specific Sync subdirectories to avoid heavy I/O from git repos 24 + - /home/sspaeti/Simon/Sync/1 Areas:/data/1 Areas 25 + - /home/sspaeti/Simon/Sync/2 Project:/data/2 Project 26 + - /home/sspaeti/Simon/Sync/3 Resources:/data/3 Resources 27 + # - /home/sspaeti/Simon/Sync/Pics:/data/Pics 28 + # - /home/sspaeti/Simon/Sync/PicsUpload:/data/PicsUpload 29 + # 4 Archive excluded 30 + restart: always 31 + stop_grace_period: 2m