summaryrefslogtreecommitdiff
path: root/lua/plugins/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/lsp')
-rw-r--r--lua/plugins/lsp/efm-config.lua26
1 files changed, 26 insertions, 0 deletions
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,
+ },
+}