mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 14:37:15 +01:00
add some common stuff
This commit is contained in:
2
init.lua
2
init.lua
@@ -818,7 +818,7 @@ require('lazy').setup({
|
|||||||
--
|
--
|
||||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||||
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
||||||
-- { import = 'custom.plugins' },
|
{ import = 'plugins' },
|
||||||
}, {
|
}, {
|
||||||
ui = {
|
ui = {
|
||||||
-- If you have a Nerd Font, set icons to an empty table which will use the
|
-- If you have a Nerd Font, set icons to an empty table which will use the
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
-- You can add your own plugins here or in other files in this directory!
|
|
||||||
-- I promise not to create any merge conflicts in this directory :)
|
|
||||||
--
|
|
||||||
-- See the kickstart.nvim README for more information
|
|
||||||
return {}
|
|
||||||
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