mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 11:55:22 +00:00
chore: preset enable docs
This commit is contained in:
parent
c5a83d3a6a
commit
a3aa4e49d1
75 changed files with 252 additions and 228 deletions
|
|
@ -6,13 +6,70 @@
|
|||
}: let
|
||||
inherit (lib.meta) getExe;
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (lib.options) mkEnableOption;
|
||||
inherit (lib.nvim.types) mkLspPresetEnableOption;
|
||||
inherit (lib.generators) mkLuaInline;
|
||||
|
||||
cfg = config.vim.lsp.presets.tailwindcss-language-server;
|
||||
|
||||
filetypes = [
|
||||
# html
|
||||
"aspnetcorerazor"
|
||||
"astro"
|
||||
"astro-markdown"
|
||||
"blade"
|
||||
"clojure"
|
||||
"django-html"
|
||||
"htmldjango"
|
||||
"edge"
|
||||
"eelixir"
|
||||
"elixir"
|
||||
"ejs"
|
||||
"erb"
|
||||
"eruby"
|
||||
"gohtml"
|
||||
"gohtmltmpl"
|
||||
"haml"
|
||||
"handlebars"
|
||||
"hbs"
|
||||
"html"
|
||||
"htmlangular"
|
||||
"html-eex"
|
||||
"heex"
|
||||
"jade"
|
||||
"leaf"
|
||||
"liquid"
|
||||
"markdown"
|
||||
"mdx"
|
||||
"mustache"
|
||||
"njk"
|
||||
"nunjucks"
|
||||
"php"
|
||||
"razor"
|
||||
"slim"
|
||||
"twig"
|
||||
# css
|
||||
"css"
|
||||
"less"
|
||||
"postcss"
|
||||
"sass"
|
||||
"scss"
|
||||
"stylus"
|
||||
"sugarss"
|
||||
# js
|
||||
"javascript"
|
||||
"javascriptreact"
|
||||
"reason"
|
||||
"rescript"
|
||||
"typescript"
|
||||
"typescriptreact"
|
||||
# mixed
|
||||
"vue"
|
||||
"svelte"
|
||||
"templ"
|
||||
];
|
||||
in {
|
||||
options.vim.lsp.presets.tailwindcss-language-server = {
|
||||
enable = mkEnableOption "the Tailwind CSS Language Server";
|
||||
enable = mkLspPresetEnableOption "tailwindcss-language-server" "Tailwind CSS" filetypes;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
|
@ -20,62 +77,7 @@ in {
|
|||
enable = true;
|
||||
cmd = [(getExe pkgs.tailwindcss-language-server) "--stdio"];
|
||||
root_markers = [".git"];
|
||||
filetypes = [
|
||||
# html
|
||||
"aspnetcorerazor"
|
||||
"astro"
|
||||
"astro-markdown"
|
||||
"blade"
|
||||
"clojure"
|
||||
"django-html"
|
||||
"htmldjango"
|
||||
"edge"
|
||||
"eelixir"
|
||||
"elixir"
|
||||
"ejs"
|
||||
"erb"
|
||||
"eruby"
|
||||
"gohtml"
|
||||
"gohtmltmpl"
|
||||
"haml"
|
||||
"handlebars"
|
||||
"hbs"
|
||||
"html"
|
||||
"htmlangular"
|
||||
"html-eex"
|
||||
"heex"
|
||||
"jade"
|
||||
"leaf"
|
||||
"liquid"
|
||||
"markdown"
|
||||
"mdx"
|
||||
"mustache"
|
||||
"njk"
|
||||
"nunjucks"
|
||||
"php"
|
||||
"razor"
|
||||
"slim"
|
||||
"twig"
|
||||
# css
|
||||
"css"
|
||||
"less"
|
||||
"postcss"
|
||||
"sass"
|
||||
"scss"
|
||||
"stylus"
|
||||
"sugarss"
|
||||
# js
|
||||
"javascript"
|
||||
"javascriptreact"
|
||||
"reason"
|
||||
"rescript"
|
||||
"typescript"
|
||||
"typescriptreact"
|
||||
# mixed
|
||||
"vue"
|
||||
"svelte"
|
||||
"templ"
|
||||
];
|
||||
inherit filetypes;
|
||||
settings = {
|
||||
tailwindCSS = {
|
||||
validate = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue