trying to do formatting
This commit is contained in:
parent
d250ccc6e5
commit
b1ebb6076b
12
init.lua
12
init.lua
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue