From cc4602ef023b11e830c3fa70caadc4774c6f4340 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 7 Jan 2023 10:59:10 +0100 Subject: [PATCH] docs: more examples --- lua/plugins/example.lua | 33 +++++++++++++++++++++++++++++ lua/plugins/lsp.lua | 46 ++++++++++++++++++++--------------------- 2 files changed, 56 insertions(+), 23 deletions(-) create mode 100644 lua/plugins/example.lua diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua new file mode 100644 index 0000000..928c8b9 --- /dev/null +++ b/lua/plugins/example.lua @@ -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 = { { "cs", "SymbolsOutline", desc = "Symbols Outline" } }, + config = true, + }, + + -- add zen-mode + { + "folke/zen-mode.nvim", + cmd = "ZenMode", + config = true, + keys = { { "z", "ZenMode", desc = "Zen Mode" } }, + }, + + -- use mini.starter instead of alpha + -- { "goolord/alpha-nvim", enabled = false }, + -- { "echasnovski/mini.starter", enabled = true }, +} diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 98e92c3..bb431b2 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -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", + -- }, }, }