Skip to content

Commit

Permalink
none_ls is dropping the eslint builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Feb 26, 2024
1 parent fd8cc73 commit 704e032
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions nvim/lua/conf/lspconfig/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
local lspconfig = require 'lspconfig'
lspconfig.bashls.setup { filetypes = { "sh" } }
lspconfig.docker_compose_language_service.setup {}
lspconfig.eslint.setup({
on_attach = function(client, bufnr)
vim.api.nvim_create_autocmd("BufWritePre", {
buffer = bufnr,
command = "EslintFixAll",
})
end,
})
lspconfig.lua_ls.setup {
settings = {
Lua = {
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/conf/mason/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require("mason-lspconfig").setup {
ensure_installed = {
"bashls",
"docker_compose_language_service",
"eslint",
"golangci_lint_ls",
"gopls",
"lua_ls",
Expand Down
1 change: 0 additions & 1 deletion nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ local null_ls = require("null-ls")

null_ls.setup({
sources = {
null_ls.builtins.formatting.eslint,
null_ls.builtins.formatting.goimports,
null_ls.builtins.formatting.gofumpt,
null_ls.builtins.formatting.prettier,
Expand Down

0 comments on commit 704e032

Please sign in to comment.