diff options
| author | José Juan Loeza Sierra <jj@xz6ze.com> | 2025-11-07 23:42:52 -0800 |
|---|---|---|
| committer | José Juan Loeza Sierra <jj@xz6ze.com> | 2025-11-07 23:53:00 -0800 |
| commit | 5dc89fe9789701abbe4a73c2998d397a6d7d964c (patch) | |
| tree | cf43ae482b0c2bbfabd3370faf127a4e21a21086 /dot-config/nvim/plugin/lsp.lua | |
| parent | 617c3b29dbf03322ef3ccb0cd9663532e94adb68 (diff) | |
replace lazyvim with custom config
Diffstat (limited to 'dot-config/nvim/plugin/lsp.lua')
| -rw-r--r-- | dot-config/nvim/plugin/lsp.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dot-config/nvim/plugin/lsp.lua b/dot-config/nvim/plugin/lsp.lua new file mode 100644 index 0000000..4b8a66b --- /dev/null +++ b/dot-config/nvim/plugin/lsp.lua @@ -0,0 +1,26 @@ +vim.pack.add({ + "https://github.com/neovim/nvim-lspconfig", + "https://github.com/mason-org/mason.nvim", + "https://github.com/stevearc/conform.nvim", +}) + +require("mason").setup() + +vim.lsp.enable({ + "expert", -- elixir + "lua_ls", -- lua +}) + +require("conform").setup({ + -- Formatters + formatters_by_ft = { + elixir = { "mix" }, + lua = { "stylua" }, + }, + + format_on_save = { + -- I recommend these options. See :help conform.format for details. + lsp_format = "fallback", + timeout_ms = 500, + }, +}) |
