merged update on lua config

This commit is contained in:
Thies Lennart Alff 2023-08-16 15:20:24 +02:00
parent 8e95477272
commit 3b163629e0
2 changed files with 51 additions and 37 deletions

View file

@ -7,7 +7,7 @@ return require('packer').startup(function(use)
use { use {
'nvim-telescope/telescope.nvim', tag = '0.1.1', 'nvim-telescope/telescope.nvim', tag = '0.1.1',
-- or , branch = '0.1.x', -- or , branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} } requires = { { 'nvim-lua/plenary.nvim' } }
} }
use({ 'rose-pine/neovim', as = 'rose-pine' }) use({ 'rose-pine/neovim', as = 'rose-pine' })
@ -24,21 +24,27 @@ return require('packer').startup(function(use)
branch = 'v2.x', branch = 'v2.x',
requires = { requires = {
-- LSP Support -- LSP Support
{'neovim/nvim-lspconfig'}, -- Required { 'neovim/nvim-lspconfig' }, -- Required
{ -- Optional { -- Optional
'williamboman/mason.nvim', 'williamboman/mason.nvim',
run = function() run = function()
pcall(vim.cmd, 'MasonUpdate') pcall(vim.cmd, 'MasonUpdate')
end, end,
}, },
{'williamboman/mason-lspconfig.nvim'}, -- Optional { 'williamboman/mason-lspconfig.nvim' }, -- Optional
-- Autocompletion -- Autocompletion
{'hrsh7th/nvim-cmp'}, -- Required { 'hrsh7th/nvim-cmp' }, -- Required
{'hrsh7th/cmp-nvim-lsp'}, -- Required { 'hrsh7th/cmp-nvim-lsp' }, -- Required
{'L3MON4D3/LuaSnip'}, -- Required { 'L3MON4D3/LuaSnip' }, -- Required
{'mhartington/formatter.nvim'}, { 'mhartington/formatter.nvim' },
}
}
use {
"ThePrimeagen/refactoring.nvim",
requires = {
{ "nvim-lua/plenary.nvim" },
{ "nvim-treesitter/nvim-treesitter" }
}
} }
}
end) end)

View file

@ -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