64 lines
1.5 KiB
Lua
64 lines
1.5 KiB
Lua
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
|
|
--
|
|
-- In your plugin files, you can:
|
|
-- * add extra plugins
|
|
-- * disable/enabled LazyVim plugins
|
|
-- * override the configuration of LazyVim plugins
|
|
|
|
-- N.B. I could restore neo-tree and/or mini-starter
|
|
|
|
return {
|
|
-- TODO: Disable the weird command line popup while leaving `:Noice all` effective
|
|
|
|
"kovisoft/paredit",
|
|
{
|
|
"monkoose/nvlime",
|
|
event = "VeryLazy",
|
|
dependencies = {
|
|
"monkoose/parsley",
|
|
},
|
|
},
|
|
|
|
-- mason.nvim v2 is incompatible with LazyVim, so we pin it to v1
|
|
{
|
|
"mason-org/mason.nvim",
|
|
version = "^1.0.0",
|
|
opts = {
|
|
ensure_installed = {
|
|
"stylua",
|
|
"shellcheck",
|
|
"shfmt",
|
|
"flake8",
|
|
},
|
|
},
|
|
},
|
|
{ "mason-org/mason-lspconfig.nvim", version = "^1.0.0" },
|
|
|
|
-- Enable the Snacks undo history as LazyVim is supposed to do.
|
|
{
|
|
"folke/snacks.nvim",
|
|
keys = {
|
|
{
|
|
"<leader>su",
|
|
function()
|
|
Snacks.picker.undo()
|
|
end,
|
|
desc = "Undo History",
|
|
},
|
|
},
|
|
},
|
|
|
|
-- Restore i_CTRL-K for digraphs and use i_CTRL-H for signature help
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = function()
|
|
local keys = require("lazyvim.plugins.lsp.keymaps").get()
|
|
-- change a keymap
|
|
-- keys[#keys + 1] = { "K", "<cmd>echo 'hello'<cr>" }
|
|
-- disable a keymap
|
|
keys[#keys + 1] = { "<c-k>", false, mode = "i" }
|
|
-- add a keymap
|
|
keys[#keys + 1] = { "<c-h>", vim.lsp.buf.signature_help, mode = "i" }
|
|
end,
|
|
},
|
|
}
|