Skip to content

Commit cf7ef1c

Browse files
authored
Merge pull request #21 from rodneylab/fix__add_elixir_tooling
fix add elixir tooling
2 parents 43c4bc7 + d8d7537 commit cf7ef1c

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

nvim/lua/rodneylab/plugins/formatting.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ conform.setup({
44
cpp = { "clang-format" },
55
cmake = { "cmake_format" },
66
css = { "prettierd", "prettier", stop_after_first = true },
7+
elixir = { "mix" },
78
gdscript = { "gdformat" },
89
graphql = { "prettierd", "prettier", stop_after_first = true },
910
html = { "prettierd", "prettier", stop_after_first = true },

nvim/lua/rodneylab/plugins/linting.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@ local lint = require("lint")
22

33
lint.linters_by_ft = {
44
astro = { "eslint_d" },
5+
css = { "stylelint" },
6+
elixir = { "credo" },
57
javascript = { "eslint_d" },
6-
typescript = { "eslint_d" },
78
javascriptreact = { "eslint_d" },
8-
typescriptreact = { "eslint_d" },
9-
svelte = { "eslint_d" },
109
python = { "ruff" },
10+
scss = { "stylelint" },
11+
svelte = { "eslint_d" },
12+
typescript = { "eslint_d" },
13+
typescriptreact = { "eslint_d" },
1114
}
1215

1316
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })

nvim/lua/rodneylab/plugins/lsp.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ local servers = {
9292
"docker_compose_language_service",
9393
"dockerls",
9494
-- "dprint", -- initialised individually below
95+
-- "elixirls",
9596
"gdscript",
9697
"graphql",
9798
"html",
@@ -132,6 +133,12 @@ nvim_lsp.dprint.setup({
132133
fileypes = nvim_lsp.util.root_pattern("dockerfile", "json", "jsonc", "markdown", "toml"),
133134
})
134135

136+
nvim_lsp.elixirls.setup({
137+
capabilities = capabilities,
138+
on_attach = on_attach,
139+
cmd = { "/usr/local/Cellar/elixir-ls/0.26.0/libexec/language_server.sh" },
140+
})
141+
135142
nvim_lsp.lua_ls.setup({
136143
capabilities = capabilities,
137144
on_attach = on_attach,

nvim/lua/rodneylab/plugins/treesitter.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ treesitter.setup({
3232
"cpp",
3333
"css",
3434
"dockerfile",
35+
"elixir",
3536
"gdscript",
3637
"gitignore",
3738
"graphql",

0 commit comments

Comments
 (0)