feat(nvim): add formatting and linting for ruby

This commit is contained in:
Stefan Imhoff
2024-03-13 20:50:26 +01:00
parent 01d3feb2a4
commit e8922d5fde
4 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ require("lazy").setup({
{ import = "lazyvim.plugins.extras.editor.aerial" }, { import = "lazyvim.plugins.extras.editor.aerial" },
{ import = "lazyvim.plugins.extras.formatting.prettier" }, { import = "lazyvim.plugins.extras.formatting.prettier" },
{ import = "lazyvim.plugins.extras.lang.json" }, { import = "lazyvim.plugins.extras.lang.json" },
{ import = "lazyvim.plugins.extras.lang.ruby" },
{ import = "lazyvim.plugins.extras.lang.tailwind" }, { import = "lazyvim.plugins.extras.lang.tailwind" },
{ import = "lazyvim.plugins.extras.lang.typescript" }, { import = "lazyvim.plugins.extras.lang.typescript" },
{ import = "lazyvim.plugins.extras.lang.yaml" }, { import = "lazyvim.plugins.extras.lang.yaml" },

View File

@@ -40,6 +40,8 @@ return {
markdown = { { "prettierd", "prettier" } }, markdown = { { "prettierd", "prettier" } },
mdx = { { "prettierd", "prettier" } }, mdx = { { "prettierd", "prettier" } },
python = { "isort", "black" }, python = { "isort", "black" },
ruby = { "rubyfmt", "rubocop" },
eruby = { "htmlbeautifier" },
svelte = { { "prettierd", "prettier" } }, svelte = { { "prettierd", "prettier" } },
typescript = { { "prettierd", "prettier" }, "eslint_d" }, typescript = { { "prettierd", "prettier" }, "eslint_d" },
typescriptreact = { { "prettierd", "prettier" }, "eslint_d" }, typescriptreact = { { "prettierd", "prettier" }, "eslint_d" },

View File

@@ -25,6 +25,7 @@ return {
javascript = { "eslint_d", "cspell" }, javascript = { "eslint_d", "cspell" },
javascriptreact = { "eslint_d", "cspell" }, javascriptreact = { "eslint_d", "cspell" },
python = { "pylint" }, python = { "pylint" },
ruby = { "rubocop" },
svelte = { "eslint_d" }, svelte = { "eslint_d" },
typescript = { "eslint_d", "cspell" }, typescript = { "eslint_d", "cspell" },
typescriptreact = { "eslint_d", "cspell" }, typescriptreact = { "eslint_d", "cspell" },

View File

@@ -15,12 +15,16 @@ return {
"eslint-lsp", "eslint-lsp",
"eslint_d", "eslint_d",
"html-lsp", "html-lsp",
"htmlbeautifier",
"isort", "isort",
"json-lsp", "json-lsp",
"lua-language-server", "lua-language-server",
"prettier", "prettier",
"prettierd", "prettierd",
"pyright", "pyright",
"rubocop",
"ruby",
"rubyfmt",
"shellcheck", "shellcheck",
"stylua", "stylua",
"svelte-language-server", "svelte-language-server",