From 6095c18887b6cf47c2c97a79f84af3421e3ef087 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 31 Mar 2024 11:24:02 +0200 Subject: add efm --- lua/plugins/lsp/efm-config.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lua/plugins/lsp/efm-config.lua diff --git a/lua/plugins/lsp/efm-config.lua b/lua/plugins/lsp/efm-config.lua new file mode 100644 index 0000000..a6d8e40 --- /dev/null +++ b/lua/plugins/lsp/efm-config.lua @@ -0,0 +1,26 @@ +return { + { + "creativenull/efmls-configs-nvim", + dependencies = { "neovim/nvim-lspconfig" }, + }, + + { + "neovim/nvim-lspconfig", + opts = function(_, opts) + if type(opts) == "table" then + opts.servers = opts.servers or {} + opts.servers.efm = + vim.tbl_deep_extend("error", opts.servers.efm or {}, { + settings = { + version = 2, + rootMarkers = { ".git/" }, + }, + init_options = { + documentFormatting = true, + documentRangeFormatting = true, + }, + }) + end + end, + }, +} -- cgit v1.2.3