Enable colorizer, dashboard, and trouble plugins with initial configs.

This commit is contained in:
Aaron Weinberger 2024-06-20 17:28:34 -04:00
parent 0fe67f0586
commit aebe535298
No known key found for this signature in database
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,14 @@
return {
'norcalli/nvim-colorizer.lua',
config = function()
require('colorizer').setup({
'css',
'scss',
'javascript',
'javascriptreact',
'typescript',
'typescriptreact',
'html',
})
end,
}

View File

@ -0,0 +1,11 @@
return {
'nvimdev/dashboard-nvim',
event = 'VimEnter',
config = function()
require('dashboard').setup {
-- config
theme = 'hyper',
}
end,
dependencies = { { 'nvim-tree/nvim-web-devicons' } },
}

View File

@ -0,0 +1,37 @@
return {
"folke/trouble.nvim",
opts = {}, -- for default options, refer to the configuration section for custom setup.
cmd = "Trouble",
keys = {
{
"<leader>xx",
"<cmd>Trouble diagnostics toggle<cr>",
desc = "Diagnostics (Trouble)",
},
{
"<leader>xX",
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
desc = "Buffer Diagnostics (Trouble)",
},
{
"<leader>cs",
"<cmd>Trouble symbols toggle focus=false<cr>",
desc = "Symbols (Trouble)",
},
{
"<leader>cl",
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
desc = "LSP Definitions / references / ... (Trouble)",
},
{
"<leader>xL",
"<cmd>Trouble loclist toggle<cr>",
desc = "Location List (Trouble)",
},
{
"<leader>xQ",
"<cmd>Trouble qflist toggle<cr>",
desc = "Quickfix List (Trouble)",
},
},
}