mostly added friendly-snippets and a dashboard

This commit is contained in:
Nikhil 2025-08-24 01:50:33 +05:30
parent c5d1b0ac8f
commit f01bb407cc
4 changed files with 240 additions and 22 deletions

View file

@ -52,7 +52,7 @@ return {
},
},
-- -- Autocompletion: `nvim-cmp` and its dependencies
-- Autocompletion: `nvim-cmp` and its dependencies
-- This is the core of the autocompletion system.
{
'hrsh7th/nvim-cmp',
@ -69,6 +69,11 @@ return {
end
return 'make install_jsregexp'
end)(),
-- ++ ADDED DEPENDENCY ++
dependencies = {
-- This plugin provides a collection of useful snippets.
'rafamadriz/friendly-snippets',
},
},
-- `cmp_luasnip` connects the snippet engine to the autocompletion.
'saadparwaiz1/cmp_luasnip',
@ -85,6 +90,10 @@ return {
local luasnip = require 'luasnip'
luasnip.config.setup {}
-- ++ ADDED SNIPPET LOADING ++
-- This line tells luasnip to load snippets from plugins like friendly-snippets.
require("luasnip.loaders.from_vscode").lazy_load()
-- Set up the `nvim-cmp` plugin.
cmp.setup {
-- Define how snippets are expanded.
@ -161,11 +170,11 @@ return {
end,
},
{ -- Adds indentation guides to all lines
'lukas-reineke/indent-blankline.nvim',
main = 'ibl',
opts = {},
},
-- { -- Adds indentation guides to all lines
-- 'lukas-reineke/indent-blankline.nvim',
-- main = 'ibl',
-- opts = {},
-- },
-- Detect tabstop and shiftwidth automatically
'tpope/vim-sleuth',