diff options
author | Christian Segundo | 2024-03-31 11:24:02 +0200 |
---|---|---|
committer | Christian Segundo | 2024-03-31 11:24:02 +0200 |
commit | 6095c18887b6cf47c2c97a79f84af3421e3ef087 (patch) | |
tree | c57c8b186f29c3131b187656860f8ee4f3dc31ac /lua/plugins/lsp/efm-config.lua | |
parent | 7ac1b516389edec9b3290faaa49b0c48a073700b (diff) | |
download | config-6095c18887b6cf47c2c97a79f84af3421e3ef087.tar.gz |
add efm
Diffstat (limited to 'lua/plugins/lsp/efm-config.lua')
-rw-r--r-- | lua/plugins/lsp/efm-config.lua | 26 |
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, + }, +} |