This repository has been archived on 2023-12-28. You can view files and clone it, but cannot push or open issues or pull requests.
nvim-config/lua/plugins.lua

95 lines
1.9 KiB
Lua
Raw Normal View History

2022-11-01 17:34:57 +01:00
return require('packer').startup(function()
-- automatic rebuild on plugins.lua change
vim.cmd([[
augroup packer_user_config
autocmd!
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
augroup end
]])
use 'wbthomason/packer.nvim'
use 'RRethy/nvim-base16'
use 'tpope/vim-commentary'
use {
'nvim-lualine/lualine.nvim',
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
config = function()
2023-01-18 15:11:36 +01:00
local git_blame = require('gitblame')
require('lualine').setup({
sections = {
lualine_c = {
{ git_blame.get_current_blame_text, cond = git_blame.is_blame_text_available }
}
}
})
2022-11-01 17:34:57 +01:00
vim.o.showmode = false
end
}
use {
2023-01-18 15:11:36 +01:00
'junegunn/goyo.vim',
2022-11-01 17:34:57 +01:00
config = function()
2023-01-18 15:11:36 +01:00
vim.keymap.set('n', '<leader>f', ':lua goyo_toggle()<cr>:Goyo<cr>')
end
}
-- Git
use {
'f-person/git-blame.nvim',
config = function()
vim.g.gitblame_date_format = '%r'
vim.g.gitblame_message_when_not_committed = ''
vim.g.gitblame_display_virtual_text = 0
2022-11-01 17:34:57 +01:00
end
}
use {
2023-01-18 15:11:36 +01:00
'lewis6991/gitsigns.nvim',
2022-11-01 17:34:57 +01:00
config = function()
2023-01-18 15:11:36 +01:00
require('gitsigns').setup()
2022-11-01 17:34:57 +01:00
end
}
-- completion
use 'hrsh7th/nvim-cmp'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/cmp-path'
use 'hrsh7th/cmp-cmdline'
use 'saadparwaiz1/cmp_luasnip'
-- snippets
use 'L3MON4D3/LuaSnip'
use 'rafamadriz/friendly-snippets'
2022-11-29 13:23:33 +01:00
-- emmet
use 'mattn/emmet-vim'
2022-11-01 17:34:57 +01:00
-- LSP
use 'neovim/nvim-lspconfig'
2022-11-29 13:25:43 +01:00
-- LSP, DAP, linters and formatters
-- use 'jose-elias-alvarez/null-ls.nvim'
use {
'dense-analysis/ale',
config = function()
vim.cmd [[ g:ale_sign_column_always = 1 ]]
end
}
-- management for LSP, DAP, linters and formatters
2022-11-01 17:34:57 +01:00
use {
'williamboman/mason.nvim',
config = function()
2022-11-29 13:25:43 +01:00
require('mason').setup({
ui = {
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = ""
}
}
})
2022-11-01 17:34:57 +01:00
end
}
use 'williamboman/mason-lspconfig.nvim'
end)