merged update on lua config
This commit is contained in:
parent
8e95477272
commit
3b163629e0
2 changed files with 51 additions and 37 deletions
|
|
@ -40,5 +40,11 @@ return require('packer').startup(function(use)
|
||||||
{ 'mhartington/formatter.nvim' },
|
{ 'mhartington/formatter.nvim' },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
use {
|
||||||
|
"ThePrimeagen/refactoring.nvim",
|
||||||
|
requires = {
|
||||||
|
{ "nvim-lua/plenary.nvim" },
|
||||||
|
{ "nvim-treesitter/nvim-treesitter" }
|
||||||
|
}
|
||||||
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,14 @@ vim.opt.smartindent = true
|
||||||
|
|
||||||
vim.opt.wrap = false
|
vim.opt.wrap = false
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("FileTYpe", {
|
||||||
|
pattern = "cpp",
|
||||||
|
callback = function()
|
||||||
|
vim.opt_local.shiftwidth = 2
|
||||||
|
vim.opt_local.tabstop = 2
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
vim.opt.scrolloff = 8
|
vim.opt.scrolloff = 8
|
||||||
vim.opt.signcolumn = 'yes'
|
vim.opt.signcolumn = 'yes'
|
||||||
vim.opt.updatetime = 500
|
vim.opt.updatetime = 500
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue