Update snippets

This commit is contained in:
Chris
2025-08-26 18:23:14 +01:00
parent ca6e7089fa
commit 2b1d2ed5be
15 changed files with 193 additions and 137 deletions

View File

@@ -4,9 +4,6 @@ return {
event = 'VimEnter',
version = '1.*',
dependencies = {
-- Compatibility for Avante with Blink (it typically only works with cmp)
-- 'Kaiser-Yang/blink-cmp-avante',
-- Snippet Engine
'L3MON4D3/LuaSnip',
'folke/lazydev.nvim',
},

View File

@@ -1,3 +1,21 @@
return {
'github/copilot.vim',
'zbirenbaum/copilot.lua',
event = 'InsertEnter',
config = function()
require('copilot').setup {
suggestion = {
enabled = true,
auto_trigger = true,
keymap = {
accept = '<Tab>',
},
},
filetypes = {
yaml = true,
markdown = true,
gitcommit = true,
gitrebase = true,
},
}
end,
}

View File

@@ -4,9 +4,10 @@ return {
event = { 'BufReadPre', 'BufNewFile' },
config = function()
local lint = require 'lint'
lint.linters_by_ft = {
markdown = { 'markdownlint' },
}
-- lint.linters_by_ft = {
-- markdown = { 'markdownlint' },
-- }
lint.linters_by_ft['markdown'] = nil
lint.linters_by_ft['javascript'] = nil
lint.linters_by_ft['vue'] = nil
lint.linters_by_ft['html'] = nil

View File

@@ -11,21 +11,12 @@ return {
return 'make install_jsregexp'
end)(),
config = function()
local ls = require 'luasnip'
ls.filetype_extend('vue', { 'javascript' })
local snippets_dir = vim.fn.stdpath 'config' .. '/lua/snippets'
require('luasnip.loaders.from_vscode').lazy_load {
require('luasnip.loaders.from_lua').load {
paths = { snippets_dir },
}
end,
dependencies = {
-- `friendly-snippets` contains a variety of premade snippets.
-- See the README about individual language/framework/plugin snippets:
-- https://github.com/rafamadriz/friendly-snippets
{
'rafamadriz/friendly-snippets',
config = function()
require('luasnip.loaders.from_vscode').lazy_load()
end,
},
},
opts = {},
}