docs: more examples

This commit is contained in:
Folke Lemaitre 2023-01-07 10:59:10 +01:00
parent f28f0fcaac
commit cc4602ef02
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 56 additions and 23 deletions

33
lua/plugins/example.lua Normal file
View File

@ -0,0 +1,33 @@
-- every spec file under config.plugins 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
return {
-- change trouble config
{
"folke/trouble.nvim",
-- config = { use_diagnostic_signs = true },
},
-- add symbols-outline
{
"simrat39/symbols-outline.nvim",
cmd = "SymbolsOutline",
keys = { { "<leader>cs", "<cmd>SymbolsOutline<cr>", desc = "Symbols Outline" } },
config = true,
},
-- add zen-mode
{
"folke/zen-mode.nvim",
cmd = "ZenMode",
config = true,
keys = { { "<leader>z", "<cmd>ZenMode<cr>", desc = "Zen Mode" } },
},
-- use mini.starter instead of alpha
-- { "goolord/alpha-nvim", enabled = false },
-- { "echasnovski/mini.starter", enabled = true },
}

View File

@ -1,34 +1,34 @@
return {
-- lsp servers
-- uncomment and add lsp servers with their config to servers below
{
"neovim/nvim-lspconfig",
---@type lspconfig.options
servers = {
jsonls = {},
sumneko_lua = {
settings = {
Lua = {
workspace = {
checkThirdParty = false,
},
completion = {
callSnippet = "Replace",
},
},
},
},
},
-- servers = {
-- jsonls = {},
-- sumneko_lua = {
-- settings = {
-- Lua = {
-- workspace = {
-- checkThirdParty = false,
-- },
-- completion = {
-- callSnippet = "Replace",
-- },
-- },
-- },
-- },
-- },
},
-- tools
-- uncomment and add tools to ensure_installed below
{
"williamboman/mason.nvim",
ensure_installed = {
"stylua",
"shellcheck",
"shfmt",
"flake8",
},
-- ensure_installed = {
-- "stylua",
-- "shellcheck",
-- "shfmt",
-- "flake8",
-- },
},
}