trying to do formatting

This commit is contained in:
vince 2024-06-19 17:13:19 +02:00
parent d250ccc6e5
commit b1ebb6076b
2 changed files with 23 additions and 0 deletions

View File

@ -84,6 +84,18 @@ I hope you enjoy your Neovim journey,
P.S. You can delete this when you're done too. It's your config now! :)
--]]
-- Set how many spaces a tab counts for
-- See `:help 'tabstop'`
vim.opt.tabstop = 2
-- Set the number of spaces inserted for each indentation
-- See `:help 'shiftwidth'`
vim.opt.shiftwidth = 2
-- Use spaces instead of tabs
-- See `:help 'expandtab'`
-- vim.opt.expandtab = true
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)

View File

@ -10,4 +10,15 @@ return {
vim.cmd 'Copilot setup'
end,
},
{
'sbdchd/neoformat',
cmd = 'Neoformat',
config = function()
vim.g.neoformat_enabled_javascript = { 'prettier' }
vim.g.neoformat_enabled_python = { 'black' }
vim.g.neoformat_enabled_typescript = { 'prettier' }
vim.g.neoformat_enabled_yaml = { 'prettier' }
vim.g.neoformat_run_on_save = 1
end,
},
}