{"id":13896161,"url":"https://github.com/jocap/vis-filetype-settings","last_synced_at":"2025-07-17T12:30:55.425Z","repository":{"id":53784760,"uuid":"152791757","full_name":"jocap/vis-filetype-settings","owner":"jocap","description":"A plugin for the vis editor that lets the user set options depending on filetype.","archived":false,"fork":false,"pushed_at":"2023-12-12T11:14:12.000Z","size":6,"stargazers_count":10,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-25T01:33:31.364Z","etag":null,"topics":["vis","vis-editor","vis-plugin"],"latest_commit_sha":null,"homepage":"","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/jocap.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":"2018-10-12T18:22:31.000Z","updated_at":"2024-10-24T17:53:37.000Z","dependencies_parsed_at":"2024-11-25T01:31:11.328Z","dependency_job_id":"ca7dece2-a786-4847-ac26-7cfee7bdb16c","html_url":"https://github.com/jocap/vis-filetype-settings","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jocap/vis-filetype-settings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jocap%2Fvis-filetype-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jocap%2Fvis-filetype-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jocap%2Fvis-filetype-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jocap%2Fvis-filetype-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jocap","download_url":"https://codeload.github.com/jocap/vis-filetype-settings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jocap%2Fvis-filetype-settings/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265606598,"owners_count":23796969,"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":["vis","vis-editor","vis-plugin"],"created_at":"2024-08-06T18:02:42.057Z","updated_at":"2025-07-17T12:30:55.162Z","avatar_url":"https://github.com/jocap.png","language":"Lua","funding_links":[],"categories":["Lua"],"sub_categories":[],"readme":"## vis-filetype-settings\n\nThis plugin provides a declarative interface for setting vis\noptions depending on filetype.\n\nIt expects a global variable called `settings` to be defined:\n\n```lua\nsettings = {\n    markdown = {\"set expandtab on\", \"set tabwidth 4\"}\n}\n```\n\nIn this variable, filetypes are mapped to sets of settings that are\nto be executed when a window containing the specified filetype is\nopened.\n\nIf you want to do more than setting simple options, you can specify a function instead:\n\n```lua\nsettings = {\n    bash = function(win)\n        -- do things for shell scripts\n    end\n}\n```\n\nBe sure not to run commands that open another window with the same\nfiletype, leading to an infinite loop.\n\n### Installation\n\nAs a suggestion, copy `vis-filetype-settings.lua` into\n`~/.config/vis/plugins/` and add the following to your `visrc.lua`:\n\n```lua\nrequire(\"plugins/vis-filetype-settings\")\n\nsettings = {\n    filetype = settings\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjocap%2Fvis-filetype-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjocap%2Fvis-filetype-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjocap%2Fvis-filetype-settings/lists"}