added some efm linter

This commit is contained in:
Oliver Hartmann 2024-06-13 23:42:50 +02:00
parent 02182b7711
commit 7548554a89

View File

@ -117,13 +117,15 @@ return {
automatic_installation = false, automatic_installation = false,
ensure_installed = { ensure_installed = {
'clangd', 'clangd',
'denols', 'basedpyright',
-- 'neocmake', -- 'neocmake',
-- 'pyright', 'efm',
-- 'zk', -- No support for windows
'lua_ls', 'lua_ls',
'jsonls', 'jsonls',
-- 'groovyls', -- Doesn't work in WSL 'markdown_oxide',
'black',
'flake8',
'cmakelang',
}, },
}) })
local lspconfig = require('lspconfig') local lspconfig = require('lspconfig')
@ -298,11 +300,13 @@ return {
local gersemi = require('efmls-configs.formatters.gersemi') local gersemi = require('efmls-configs.formatters.gersemi')
local black = require('efmls-configs.formatters.black') local black = require('efmls-configs.formatters.black')
local isort = require('efmls-configs.formatters.isort') local isort = require('efmls-configs.formatters.isort')
local cmake_lint = require('efmls-configs.linters.cmake_lint')
local flake8 = require('efmls-configs.linters.flake8')
local languages = { local languages = {
lua = { stylua }, lua = { stylua },
markdown = { prettier }, markdown = { prettier },
cmake = { gersemi }, cmake = { gersemi, cmake_lint },
python = { isort, black }, python = { isort, black, flake8 },
} }
local efmls_config = { local efmls_config = {