init basic packages

This commit is contained in:
Christoph Wagner 2024-03-26 20:55:35 +01:00
parent dbba54cfd8
commit ebd899d3d3
7 changed files with 71 additions and 2 deletions

View File

@ -540,7 +540,7 @@ require('lazy').setup({
local servers = {
-- clangd = {},
-- gopls = {},
-- pyright = {},
pyright = {},
-- rust_analyzer = {},
-- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs
--
@ -836,7 +836,8 @@ require('lazy').setup({
--
-- 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`
-- { import = 'custom.plugins' },
{ import = 'custom.plugins' },
{ import = 'basic.plugins' },
}, {
ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the

View File

@ -0,0 +1,5 @@
return {
{
'norcalli/nvim-colorizer.lua',
},
}

View File

@ -0,0 +1,15 @@
return {
'kdheepak/lazygit.nvim',
cmd = {
'LazyGit',
'LazyGitConfig',
'LazyGitCurrentFile',
'LazyGitFilter',
'LazyGitFilterCurrentFile',
},
-- optional for floating window border decoration
dependencies = {
'nvim-lua/plenary.nvim',
},
vim.keymap.set('n', '<leader>lg', '<cmd>LazyGit<cr>'),
}

22
lua/basic/plugins/oil.lua Normal file
View File

@ -0,0 +1,22 @@
return {
{
'stevearc/oil.nvim',
opts = {},
-- Optional dependencies
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
require('oil').setup {
columns = {
{ 'mtime', format = '%y-%m-%d %T' },
{ 'size', highlight = 'Special' },
'icon',
},
view_options = {
show_hidden = true,
},
}
end,
},
vim.keymap.set('n', '<leader>so', ':Oil<CR>'),
}

View File

@ -0,0 +1,3 @@
return {
'godlygeek/tabular',
}

View File

@ -0,0 +1,11 @@
return {
{
'folke/todo-comments.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
},
}

View File

@ -0,0 +1,12 @@
return {
'folke/trouble.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
vim.keymap.set('n', '<leader>xx', function()
require('trouble').toggle()
end),
}