Added nvim-scissors to make snippets easier to configure Added colorful-menu to make completions cooler (more like IntelliJ/vsc*de), disabled for now until carbonight has colors for it Removed nvim-cmp Installed jq for formatting json snippets
28 lines
641 B
Lua
28 lines
641 B
Lua
return {
|
|
'chrisgrieser/nvim-scissors',
|
|
dependencies = 'folke/snacks.nvim',
|
|
event = 'VeryLazy',
|
|
opts = {
|
|
---@type "yq"|"jq"|"none"|string[]
|
|
jsonFormatter = 'jq',
|
|
},
|
|
keys = {
|
|
{
|
|
'<leader>sa',
|
|
function()
|
|
require('scissors').addNewSnippet()
|
|
end,
|
|
desc = '[S]nippet [A]dd',
|
|
mode = { 'n', 'x' },
|
|
},
|
|
{
|
|
'<leader>se',
|
|
function()
|
|
require('scissors').editSnippet()
|
|
end,
|
|
desc = '[S]nippet [E]dit',
|
|
mode = { 'n', 'x' },
|
|
},
|
|
},
|
|
}
|