mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(neovim): Custom snippet configuration for Docker & Rust
- VS code format snippets for Docker & Rust - Blink.nvim configured to pick custom snippets automatically
This commit is contained in:
@@ -67,7 +67,10 @@ return {
|
||||
|
||||
signature = { enabled = true },
|
||||
|
||||
snippets = { preset = "luasnip" },
|
||||
snippets = {
|
||||
preset = "luasnip",
|
||||
opts = { search_paths = { vim.fn.stdpath("config") .. "/custom-snippets" } },
|
||||
},
|
||||
|
||||
cmdline = {
|
||||
enabled = true,
|
||||
@@ -122,7 +125,7 @@ return {
|
||||
providers = {
|
||||
lsp = { score_offset = 1000 },
|
||||
buffer = { score_offset = 950 },
|
||||
snippets = { score_offset = 1150 },
|
||||
snippets = { score_offset = 900 },
|
||||
path = { score_offset = 750 },
|
||||
conventional_commits = {
|
||||
name = "Conventional Commits",
|
||||
@@ -174,6 +177,11 @@ return {
|
||||
"rafamadriz/friendly-snippets",
|
||||
config = function()
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
require("luasnip.loaders.from_vscode").lazy_load({
|
||||
paths = {
|
||||
vim.fn.stdpath("config") .. "/custom-snippets",
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
build = (function()
|
||||
|
||||
Reference in New Issue
Block a user