@@ -204,107 +204,7 @@ vim.g.strive_install_with_retry = false -- Retry failed installations
204204
205205## Example Configuration
206206
207- ``` lua
208- -- Initialize
209- local use = require (' strive' ).use
210-
211- -- UI
212- use ' folke/tokyonight.nvim'
213- :theme (' tokyonight-storm' )
214-
215- use ' nvim-lualine/lualine.nvim'
216- :depends (' kyazdani42/nvim-web-devicons' )
217- :config (function ()
218- require (' lualine' ).setup ({
219- options = {
220- theme = ' tokyonight'
221- }
222- })
223- end )
224-
225- -- Editing
226- use ' tpope/vim-surround'
227- use ' tpope/vim-commentary'
228- use ' windwp/nvim-autopairs'
229- :config (function ()
230- require (' nvim-autopairs' ).setup ()
231- end )
232-
233- -- Navigation
234- use ' nvim-telescope/telescope.nvim'
235- :depends ({
236- ' nvim-lua/plenary.nvim' ,
237- ' nvim-telescope/telescope-fzf-native.nvim'
238- })
239- :cmd ({
240- ' Telescope' ,
241- ' Telescope find_files' ,
242- ' Telescope live_grep'
243- })
244- :keys (' <leader>f' )
245- :config (function ()
246- require (' telescope' ).setup ({
247- extensions = {
248- fzf = {
249- fuzzy = true ,
250- override_generic_sorter = true ,
251- override_file_sorter = true ,
252- case_mode = " smart_case" ,
253- }
254- }
255- })
256- require (' telescope' ).load_extension (' fzf' )
257- end )
258-
259- -- LSP & Completion
260- use ' neovim/nvim-lspconfig'
261- :config (function ()
262- local lspconfig = require (' lspconfig' )
263- lspconfig .lua_ls .setup ({})
264- lspconfig .tsserver .setup ({})
265- end )
266-
267- use ' hrsh7th/nvim-cmp'
268- :depends ({
269- ' hrsh7th/cmp-nvim-lsp' ,
270- ' hrsh7th/cmp-buffer' ,
271- ' hrsh7th/cmp-path' ,
272- ' L3MON4D3/LuaSnip' ,
273- ' saadparwaiz1/cmp_luasnip'
274- })
275- :config (function ()
276- local cmp = require (' cmp' )
277- local luasnip = require (' luasnip' )
278-
279- cmp .setup ({
280- snippet = {
281- expand = function (args )
282- luasnip .lsp_expand (args .body )
283- end ,
284- },
285- mapping = cmp .mapping .preset .insert ({
286- [' <C-b>' ] = cmp .mapping .scroll_docs (- 4 ),
287- [' <C-f>' ] = cmp .mapping .scroll_docs (4 ),
288- [' <C-Space>' ] = cmp .mapping .complete (),
289- [' <C-e>' ] = cmp .mapping .abort (),
290- [' <CR>' ] = cmp .mapping .confirm ({ select = true }),
291- }),
292- sources = cmp .config .sources ({
293- { name = ' nvim_lsp' },
294- { name = ' luasnip' },
295- }, {
296- { name = ' buffer' },
297- })
298- })
299- end )
300-
301- -- Git
302- use ' lewis6991/gitsigns.nvim'
303- :on (' BufRead' )
304- :config (function ()
305- require (' gitsigns' ).setup ()
306- end )
307- ```
207+ see [ glepnir/nvim] ( https://github.com/glepnir/nvim/blob/main/plugin/package.lua )
308208
309209## Best Practices
310210
0 commit comments