Add copilot and linters

This commit is contained in:
Adam Beck 2025-05-28 10:58:23 -04:00
parent 247de5aaf1
commit 7e073685eb
2 changed files with 36 additions and 0 deletions

View File

@ -768,6 +768,11 @@ require('lazy').setup({
end, end,
formatters_by_ft = { formatters_by_ft = {
lua = { 'stylua' }, lua = { 'stylua' },
astro = { 'biome', 'prettierd' },
javascript = { 'biome', 'prettierd' },
typescript = { 'biome', 'prettierd' },
javascriptreact = { 'biome', 'prettierd' },
typescriptreact = { 'biome', 'prettierd' },
-- Conform can also run multiple formatters sequentially -- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" }, -- python = { "isort", "black" },
-- --

View File

@ -4,6 +4,9 @@
-- See the kickstart.nvim README for more information -- See the kickstart.nvim README for more information
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' }) vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
vim.keymap.set('n', '<leader>cpd', ':Copilot disable<cr>', { silent = true, noremap = true }) -- Disable Copilot
vim.keymap.set('n', '<leader>cpe', ':Copilot enable<cr>', { silent = true, noremap = true }) -- Enable Copilot
return { return {
{ {
'ibhagwan/fzf-lua', 'ibhagwan/fzf-lua',
@ -142,4 +145,32 @@ return {
require('lsp_signature').setup(opts) require('lsp_signature').setup(opts)
end, end,
}, },
{
'olimorris/codecompanion.nvim',
opts = {},
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-treesitter/nvim-treesitter',
},
config = function()
require('codecompanion').setup {
strategies = {
chat = {
adapter = 'copilot',
},
inline = {
adapter = 'copilot',
},
agent = {
adapter = 'copilot',
},
},
}
end,
},
{
'github/copilot.vim',
lazy = false,
config = function() end,
},
} }