Update snippets
This commit is contained in:
@@ -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',
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user