This is a small tool designed to emulate the Sublime style Command Palette as follows.
It requires the use of a specific extension to load the js file from this gist.
I'm using the APC extension, and the usage is as follows.
| blueprint: | |
| name: Sun Tracking Cover | |
| description: >- | |
| Automatically adjusts cover/blind positions based on sun position to prevent | |
| direct sunlight from reaching a target area (desk, couch, artwork, plants, etc.). | |
| **How it works:** The automation calculates the optimal cover position using | |
| window geometry and sun elevation to block direct sunlight while maximizing | |
| natural light. |
| local root = vim.fn.fnamemodify("./.repro", ":p") | |
| -- set stdpaths to use .repro | |
| for _, name in ipairs({ "config", "data", "state", "cache" }) do | |
| vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name | |
| end | |
| -- bootstrap lazy | |
| local lazypath = root .. "/plugins/lazy.nvim" | |
| if not vim.loop.fs_stat(lazypath) then | |
| vim.fn.system({ | |
| "git", |
| type: custom:button-card | |
| name: Living Room | |
| icon: mdi:sofa | |
| tap_action: | |
| action: navigate | |
| navigation_path: '#livingroom' | |
| entity: sensor.living_room_temp_and_hum | |
| custom_fields: | |
| btn: | |
| card: |
| type: custom:button-card | |
| entity: media_player.living_room_hifi | |
| show_entity_picture: true | |
| show_name: false | |
| show_icon: false | |
| custom_fields: | |
| info: | |
| card: | |
| type: vertical-stack | |
| cards: |
| [ | |
| // Navigation | |
| { | |
| "key": "ctrl-h", | |
| "command": "workbench.action.navigateLeft" | |
| }, | |
| { | |
| "key": "ctrl-l", | |
| "command": "workbench.action.navigateRight" | |
| }, |
This is a small tool designed to emulate the Sublime style Command Palette as follows.
It requires the use of a specific extension to load the js file from this gist.
I'm using the APC extension, and the usage is as follows.
| -- Returns a string with a list of attached LSP clients, including | |
| -- formatters and linters from null-ls, nvim-lint and formatter.nvim | |
| local function get_attached_clients() | |
| local buf_clients = vim.lsp.get_active_clients({ bufnr = 0 }) | |
| if #buf_clients == 0 then | |
| return "LSP Inactive" | |
| end | |
| local buf_ft = vim.bo.filetype |
The following shows how to replicate some of Surround's features if you don't happen to have it installed.
NOTE: We only dealt with the simplest cases, here, and the convoluted nature of some of these commands shows how well designed and useful that plugin is. And let's not talk about all the corner cases it handles.
Install it, it's worth it.
3.3 Adicione as configurações de conexão ssh utilizando as enviroments do repositório seguindo padrão de prefixo no nome SSH SSH_HOST -> ip da maquina SSH_PORT -> porta ssh 22
| # ================================================================================================== | |
| # | |
| # NOTICE | |
| # | |
| # This gist is no longer maintained. It was moved to repo: | |
| # | |
| # https://github.com/maratori/golangci-lint-config | |
| # | |
| # Full history and all v2 releases are preserved in the repo. | |
| # |