mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
docs: updated examples
This commit is contained in:
40
README.md
40
README.md
@@ -174,6 +174,17 @@ For the full plugin spec documentation please check the **lazy.nvim**
|
|||||||
-- * disable/enabled LazyVim plugins
|
-- * disable/enabled LazyVim plugins
|
||||||
-- * override the configuration of LazyVim plugins
|
-- * override the configuration of LazyVim plugins
|
||||||
return {
|
return {
|
||||||
|
-- add gruvbox
|
||||||
|
{ "ellisonleao/gruvbox.nvim" },
|
||||||
|
|
||||||
|
-- Configure LazyVim to load gruvbox
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = {
|
||||||
|
colorscheme = "gruvbox",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
-- change trouble config
|
-- change trouble config
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
@@ -203,10 +214,9 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- change some telescope options and add telescope-fzf-native
|
-- change some telescope options and a keymap to browse plugin files
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
dependencies = { { "nvim-telescope/telescope-fzf-native.nvim", build = "make" } },
|
|
||||||
keys = {
|
keys = {
|
||||||
-- add a keymap to browse plugin files
|
-- add a keymap to browse plugin files
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
@@ -225,6 +235,12 @@ return {
|
|||||||
winblend = 0,
|
winblend = 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- add telescope-fzf-native
|
||||||
|
{
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
dependencies = { { "nvim-telescope/telescope-fzf-native.nvim", build = "make" } },
|
||||||
-- apply the config and additionally load fzf-native
|
-- apply the config and additionally load fzf-native
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
@@ -233,7 +249,20 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- add pyright and setup tsserver with typescript.nvim
|
-- add pyright to lspconfig
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
---@class PluginLspOpts
|
||||||
|
opts = {
|
||||||
|
---@type lspconfig.options
|
||||||
|
servers = {
|
||||||
|
-- pyright will be automatically installed with mason and loaded with lspconfig
|
||||||
|
pyright = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- add tsserver and setup with typescript.nvim instead of lspconfig
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
@@ -250,8 +279,7 @@ return {
|
|||||||
opts = {
|
opts = {
|
||||||
---@type lspconfig.options
|
---@type lspconfig.options
|
||||||
servers = {
|
servers = {
|
||||||
-- pyright will be automatically installed with mason and loaded with lspconfig
|
-- tsserver will be automatically installed with mason and loaded with lspconfig
|
||||||
pyright = {},
|
|
||||||
tsserver = {},
|
tsserver = {},
|
||||||
},
|
},
|
||||||
-- you can do any additional lsp server setup here
|
-- you can do any additional lsp server setup here
|
||||||
@@ -298,7 +326,7 @@ return {
|
|||||||
},
|
},
|
||||||
|
|
||||||
-- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above
|
-- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above
|
||||||
-- would overwrite `ensure_installed` with the ne value.
|
-- would overwrite `ensure_installed` with the new value.
|
||||||
-- If you'd rather extend the default config, use the code below instead:
|
-- If you'd rather extend the default config, use the code below instead:
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
|||||||
Reference in New Issue
Block a user