diff --git a/init.lua b/init.lua index 0d2f3a6c..0c824aeb 100644 --- a/init.lua +++ b/init.lua @@ -597,8 +597,8 @@ require('lazy').setup({ local servers = { -- clangd = {}, -- gopls = {}, - -- pyright = {}, - -- rust_analyzer = {}, + pyright = {}, + rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- -- Some languages (like typescript) have entire language plugins that can be useful: @@ -661,8 +661,11 @@ require('lazy').setup({ 'mypy', 'powershell-editor-services', 'prettier', + 'pyright', + 'ruff', 'shellcheck', 'stylua', + 'tflint', 'yaml-language-server', 'yamlfix', 'yamlfmt', @@ -713,9 +716,11 @@ require('lazy').setup({ } end, formatters_by_ft = { + hcl = { 'fmt' }, lua = { 'stylua' }, -- Conform can also run multiple formatters sequentially python = { 'isort', 'black' }, + terraform = { 'terraform_fmt' }, -- -- You can use 'stop_after_first' to run the first available formatter from the list javascript = { 'prettierd', 'prettier', stop_after_first = true },