{"id":16586279,"url":"https://github.com/tjdevries/failwind.nvim","last_synced_at":"2025-02-28T18:14:37.493Z","repository":{"id":251956781,"uuid":"838936259","full_name":"tjdevries/failwind.nvim","owner":"tjdevries","description":"KEKW","archived":false,"fork":false,"pushed_at":"2024-08-29T18:10:05.000Z","size":76,"stargazers_count":89,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T16:14:39.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tjdevries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-06T16:23:35.000Z","updated_at":"2025-02-06T12:35:09.000Z","dependencies_parsed_at":"2024-10-11T22:51:07.554Z","dependency_job_id":"ecef1fe0-b4f0-4da0-af6e-b8968b057ca3","html_url":"https://github.com/tjdevries/failwind.nvim","commit_stats":null,"previous_names":["tjdevries/failwind.nvim"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Ffailwind.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Ffailwind.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Ffailwind.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjdevries%2Ffailwind.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjdevries","download_url":"https://codeload.github.com/tjdevries/failwind.nvim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240054092,"owners_count":19740764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T22:51:03.268Z","updated_at":"2025-02-21T17:12:55.863Z","avatar_url":"https://github.com/tjdevries.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"# `failwind.nvim`\n\nFailwind.nvim is not ready for production. You shouldn't even be LOOKING at this repo, but diabloproject was nice enough to gift some subs.\n\nSo... here it is :)\n\nThe goal of `failwind.nvim` is to allow you to write neovim config in a declarative way using CSS.\nAs we all know, css is a very powerful and beautiful language, and we thought that more software should use it.\n## Installation\n### Step 0: Install neovim\nnightly or stable \u003e 0.11.0 is recommended\n### Step 1: Install nvim-treesitter \u0026 css parser\nYou will need nvim-treesitter for failwind to work becuase\nit relies on tresitter queries to parse your `init.css` file.\nMost distributions and configs have it out of the box, but if your does not, refer to [nvim-treesitter docs](https://github.com/nvim-treesitter/nvim-treesitter).\nThen run `:TSInstall css` or add css to `ensure_installed`.\n### Step 2: Add `failwind.nvim` as a dependency\nInstall failwind using your favorite package manager.\nE.g. with Lazy:\n```lua\n{\n\t\"tjdevries/failwind.nvim\",\n\tinit = function()\n\t\trequire('failwind').evaluate('\u003cyour-init-css-file\u003e')\n\tend,\n\t-- This ensures that nvim-treesitter is installed and loaded **before** failwind.\n\tdependencies = {\"nvim-treesitter\"}\n}\n```\n## `init.css` file\nYou can look at the examples/kickstart.css for some inspiration.\n\n### Basic operations\n#### `lua(\"lua-expression\")`\nCalls lua expression. For example: `lua(\"vim.diagnostic.setloclist()\")`\n#### `vim-fn-stdpath(\"path\")`\nCalls vim function `vim.fn.stdpath(\"path\")`\nYou can call any lua function with this syntax.\n\nFailwind expects your init.css file to contain following sections:\n - `options`\n - `keymaps`\n - `plugins`\n - `highlight`\n - `autocmds`\n\n### `options` section\nThis section is used to set global options for Neovim.\nDo your usual `vim.opt` calls here.\n\n### `keymaps` section\nThis section is used to define keymaps.\nfor each vim mode (normal, visual, etc.) it can have a ruleset with keymaps for that mode.\nEach keymap is a table with pseudoclass `key(\"key\")`and the following fields:\n - `command`: string with the name of the command to call.\n   Use this field to set specific command to execute.\n   For example: `\"Telescope find_files\"`\n - `action`: string or call expression to execute.\n   For example: `lua(\"vim.diagnostic.setloclist()\")` (lua call) or `\u003cC-\\\u003e\u003cC-n\u003e` (literally key presses)\n - `desc`: Description of the keymap.\n   For example: `\"Search Neovim Files\"`\n### `plugins` section\nThis section is used to define plugins.\nIt is a ruleset with `:repo(\"repo-name\")` pseudoclasses as keys.\nInside each ruleset you can define the following things:\n - `setup`: array of strings with names of plugins to setup from this repo.\n   For example: `\"mason\" \"mason-lspconfig\"`\n - `:setup(\"plugin-name\")` pseudoclasses to set up plugins from this repo. The ruleset provided will be used as plugin options to setup function.\n - `depends`: array of strings with names of plugins to be installed/loaded prior to the target plugin.\n   For example: `\"nvim-treesitter\" \"nvim-treesitter-textobjects\"`\n - `keymaps`: See `keymaps` section.\nAll other fields will be directly passed to plugin's table\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjdevries%2Ffailwind.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjdevries%2Ffailwind.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjdevries%2Ffailwind.nvim/lists"}