mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 22:47:18 +01:00
add some common stuff
This commit is contained in:
12
lua/plugins/common.lua
Normal file
12
lua/plugins/common.lua
Normal 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
10
lua/plugins/format.lua
Normal 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
6
lua/plugins/git.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
'tpope/vim-fugitive',
|
||||
keys = {
|
||||
{ '<leader>gg', '<cmd>Git<cr>', desc = 'Git' },
|
||||
},
|
||||
}
|
||||
8
lua/plugins/project.lua
Normal file
8
lua/plugins/project.lua
Normal 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
19
lua/plugins/tree.lua
Normal 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' },
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user