From 7ba677f20a83eb0726f3ddc83532f52870768e03 Mon Sep 17 00:00:00 2001 From: Alex Muszynski Date: Wed, 11 Jun 2025 20:14:43 -0400 Subject: [PATCH] pyrefly in, clang formatter --- lua/custom/plugins/ast-grep.lua | 7 +++++++ lua/custom/plugins/conform.lua | 1 + lua/custom/plugins/lsp-config.lua | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/ast-grep.lua diff --git a/lua/custom/plugins/ast-grep.lua b/lua/custom/plugins/ast-grep.lua new file mode 100644 index 0000000..89711f5 --- /dev/null +++ b/lua/custom/plugins/ast-grep.lua @@ -0,0 +1,7 @@ +return { + 'ray-x/telescope-ast-grep.nvim', + dependencies = { + { 'nvim-lua/plenary.nvim' }, + { 'nvim-telescope/telescope.nvim' }, + }, +} diff --git a/lua/custom/plugins/conform.lua b/lua/custom/plugins/conform.lua index 1f16f07..86edc23 100644 --- a/lua/custom/plugins/conform.lua +++ b/lua/custom/plugins/conform.lua @@ -25,6 +25,7 @@ return { -- Autoformat end, formatters_by_ft = { lua = { 'stylua' }, + c = { 'clang-format' }, -- Conform can also run multiple formatters sequentially -- python = { "isort", "black" }, -- diff --git a/lua/custom/plugins/lsp-config.lua b/lua/custom/plugins/lsp-config.lua index 2659002..ee25efa 100644 --- a/lua/custom/plugins/lsp-config.lua +++ b/lua/custom/plugins/lsp-config.lua @@ -157,7 +157,7 @@ return { -- LSP Configuration & Plugins local servers = { clangd = {}, gopls = {}, - pyright = {}, + pyrefly = {}, rust_analyzer = {}, markdownlint = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs