From 7dbd821165eb7746710476b4c99e25b63e2b5353 Mon Sep 17 00:00:00 2001 From: Aniket Patel Date: Thu, 29 Aug 2024 18:09:30 +0530 Subject: [PATCH] added go formats and added packages which need to be installed with mason --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index b7fa032f..0c8b6830 100644 --- a/init.lua +++ b/init.lua @@ -610,7 +610,7 @@ require('lazy').setup({ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { -- clangd = {}, - -- gopls = {}, + gopls = {}, pyright = {}, rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs @@ -651,6 +651,11 @@ require('lazy').setup({ local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { 'stylua', -- Used to format Lua code + 'pyright', + 'rust-analyzer', + 'delve', + 'debugpy', + 'goimports', }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } @@ -705,6 +710,7 @@ require('lazy').setup({ lua = { 'stylua' }, -- Conform can also run multiple formatters sequentially python = { 'isort', 'black' }, + go = { 'goimports' }, -- -- You can use 'stop_after_first' to run the first available formatter from the list -- javascript = { "prettierd", "prettier", stop_after_first = true },