merged update on lua config
This commit is contained in:
parent
8e95477272
commit
3b163629e0
2 changed files with 51 additions and 37 deletions
|
|
@ -1,44 +1,50 @@
|
||||||
vim.cmd [[packadd packer.nvim]]
|
vim.cmd [[packadd packer.nvim]]
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
return require('packer').startup(function(use)
|
||||||
-- Packer can manage itself
|
-- Packer can manage itself
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
use 'lewis6991/gitsigns.nvim'
|
use 'lewis6991/gitsigns.nvim'
|
||||||
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' })
|
||||||
|
|
||||||
use {
|
use {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter/nvim-treesitter',
|
||||||
run = function()
|
run = function()
|
||||||
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
|
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
|
||||||
ts_update()
|
ts_update()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
use 'tpope/vim-fugitive'
|
use 'tpope/vim-fugitive'
|
||||||
use {
|
use {
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
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)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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