From eea3e0eacc085f8caa7607ef0a150531ed947163 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Wed, 27 Mar 2024 11:24:28 +0100 Subject: [PATCH] moved linter setup to dedicated plugin --- lua/kickstart/plugins/lint.lua | 2 ++ lua/kickstart/plugins/lspconfig.lua | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/kickstart/plugins/lint.lua b/lua/kickstart/plugins/lint.lua index d0ad096..a75f2da 100644 --- a/lua/kickstart/plugins/lint.lua +++ b/lua/kickstart/plugins/lint.lua @@ -6,6 +6,8 @@ return { config = function() local lint = require 'lint' lint.linters_by_ft = { + javascript = { 'eslint' }, + typescript = { 'eslint' }, markdown = { 'markdownlint' }, } diff --git a/lua/kickstart/plugins/lspconfig.lua b/lua/kickstart/plugins/lspconfig.lua index 26db785..3eee972 100644 --- a/lua/kickstart/plugins/lspconfig.lua +++ b/lua/kickstart/plugins/lspconfig.lua @@ -178,9 +178,6 @@ return { local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { 'stylua', -- Used to format lua code - 'eslint_d', - 'prettier', - 'prettierd', 'node-debug2-adapter', }) require('mason-tool-installer').setup { ensure_installed = ensure_installed }