add some common stuff

This commit is contained in:
Thomas Ruoff
2024-03-09 00:02:07 +01:00
parent 66e2a5a425
commit 4db2c45d52
7 changed files with 56 additions and 6 deletions

12
lua/plugins/common.lua Normal file
View File

@@ -0,0 +1,12 @@
return {
{ 'tpope/vim-abolish', lazy = false },
{ 'tpope/vim-unimpaired', lazy = false },
{
'folke/trouble.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = {},
keys = {
{ '<leader>d', '<cmd>TroubleToggle<cr>', desc = 'diagnostic quickfix' },
},
},
}

10
lua/plugins/format.lua Normal file
View File

@@ -0,0 +1,10 @@
return {
'stevearc/conform.nvim',
opts = {
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_fallback = true,
},
},
}

6
lua/plugins/git.lua Normal file
View File

@@ -0,0 +1,6 @@
return {
'tpope/vim-fugitive',
keys = {
{ '<leader>gg', '<cmd>Git<cr>', desc = 'Git' },
},
}

8
lua/plugins/project.lua Normal file
View File

@@ -0,0 +1,8 @@
return {
'ahmedkhalf/project.nvim',
config = function()
require('project_nvim').setup {
patterns = { '.git', '_darcs', '.hg', '.bzr', '.svn', 'Makefile' },
}
end,
}

19
lua/plugins/tree.lua Normal file
View File

@@ -0,0 +1,19 @@
vim.cmd [[ let g:neo_tree_remove_legacy_commands = 1 ]]
return {
'nvim-neo-tree/neo-tree.nvim',
version = '*',
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
'MunifTanjim/nui.nvim',
},
opts = {
follow_current_file = {
enabled = true,
},
},
keys = {
{ '<leader>e', '<cmd>:Neotree toggle<cr>', desc = 'NeoTree' },
},
}