diff options
| author | Folke Lemaitre <folke.lemaitre@gmail.com> | 2023-01-10 11:13:23 +0100 |
|---|---|---|
| committer | Folke Lemaitre <folke.lemaitre@gmail.com> | 2023-01-10 11:13:23 +0100 |
| commit | 60424fddce5dca0853dc90b60cef0924367673a0 (patch) | |
| tree | 9457674e50d388615191c7d17292caa17da81e18 /lua/plugins/example.lua | |
| parent | 65c17c51a74069a339e42f600600dddb8d78117e (diff) | |
feat: updated examples
Diffstat (limited to 'lua/plugins/example.lua')
| -rw-r--r-- | lua/plugins/example.lua | 40 |
1 files changed, 34 insertions, 6 deletions
diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index edb3ab1..d06d4cd 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -9,6 +9,17 @@ if true then return {} end -- * disable/enabled LazyVim plugins -- * override the configuration of LazyVim plugins return { + -- add gruvbox + { "ellisonleao/gruvbox.nvim" }, + + -- Configure LazyVim to load gruvbox + { + "LazyVim/LazyVim", + opts = { + colorscheme = "gruvbox", + }, + }, + -- change trouble config { "folke/trouble.nvim", @@ -38,10 +49,9 @@ return { 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", - dependencies = { { "nvim-telescope/telescope-fzf-native.nvim", build = "make" } }, keys = { -- add a keymap to browse plugin files -- stylua: ignore @@ -60,6 +70,12 @@ return { 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 config = function(_, opts) local telescope = require("telescope") @@ -68,7 +84,20 @@ return { 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", dependencies = { @@ -85,8 +114,7 @@ return { opts = { ---@type lspconfig.options servers = { - -- pyright will be automatically installed with mason and loaded with lspconfig - pyright = {}, + -- tsserver will be automatically installed with mason and loaded with lspconfig tsserver = {}, }, -- you can do any additional lsp server setup here @@ -133,7 +161,7 @@ return { }, -- 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: { "nvim-treesitter/nvim-treesitter", |
