Better projects
This commit is contained in:
+1
-1
@@ -428,7 +428,7 @@ end, { desc = 'Luasnip accept copilot or jump forward' })
|
|||||||
-- directory if the file does not exist
|
-- directory if the file does not exist
|
||||||
vim.keymap.set('n', '<Leader>es', function()
|
vim.keymap.set('n', '<Leader>es', function()
|
||||||
local ft = vim.bo.filetype
|
local ft = vim.bo.filetype
|
||||||
if ft == 'vue' then
|
if ft == 'vue' or ft == 'typescript' then
|
||||||
ft = 'javascript'
|
ft = 'javascript'
|
||||||
end
|
end
|
||||||
local snippets_dir = vim.fn.stdpath 'config' .. '/lua/snippets'
|
local snippets_dir = vim.fn.stdpath 'config' .. '/lua/snippets'
|
||||||
|
|||||||
@@ -47,3 +47,4 @@ require('lazy').setup({
|
|||||||
})
|
})
|
||||||
|
|
||||||
require('helpers').edit_cf('l', '/lua/lazy_init.lua')
|
require('helpers').edit_cf('l', '/lua/lazy_init.lua')
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
require('blade-nav').setup {
|
require('blade-nav').setup {
|
||||||
close_tag_on_complete = false,
|
close_tag_on_complete = false,
|
||||||
|
integrations = {
|
||||||
|
cmp = false,
|
||||||
|
coq = false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
local ls = require 'luasnip'
|
local ls = require 'luasnip'
|
||||||
ls.filetype_extend('vue', { 'javascript' })
|
ls.filetype_extend('vue', { 'javascript' })
|
||||||
|
ls.filetype_extend('typescript', { 'javascript' })
|
||||||
local snippets_dir = vim.fn.stdpath 'config' .. '/lua/snippets'
|
local snippets_dir = vim.fn.stdpath 'config' .. '/lua/snippets'
|
||||||
require('luasnip.loaders.from_lua').load {
|
require('luasnip.loaders.from_lua').load {
|
||||||
paths = { snippets_dir },
|
paths = { snippets_dir },
|
||||||
@@ -24,3 +25,4 @@ return {
|
|||||||
end,
|
end,
|
||||||
opts = {},
|
opts = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
return {
|
||||||
|
'nvim-treesitter/nvim-treesitter-textobjects',
|
||||||
|
branch = 'main',
|
||||||
|
config = function()
|
||||||
|
-- put your config here
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ return function(dir)
|
|||||||
laravel_utils.laravel_keymaps 'server/'
|
laravel_utils.laravel_keymaps 'server/'
|
||||||
laravel_utils.laravel_makes 'server/'
|
laravel_utils.laravel_makes 'server/'
|
||||||
laravel_utils.laravel_utils 'server/'
|
laravel_utils.laravel_utils 'server/'
|
||||||
laravel_utils.laravel_bookmarks 'server/'
|
laravel_utils.laravel_bookmarks(dir .. '/server/')
|
||||||
|
|
||||||
create_bookmark('s', dir .. '/frontend2/src/types/api/server-types.d.ts')
|
create_bookmark('s', dir .. '/frontend2/src/types/api/server-types.d.ts')
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ return {
|
|||||||
|
|
||||||
s(etr('const ', 'const declaration'), {
|
s(etr('const ', 'const declaration'), {
|
||||||
c(1, {
|
c(1, {
|
||||||
sn(nil, fmta('const #~ = #~;', { i(1, 'variableName'), i(2, 'value') })),
|
sn(nil, fmta('const #~ = #~;', { i(1), i(2) })),
|
||||||
sn(
|
sn(
|
||||||
nil,
|
nil,
|
||||||
fmta(
|
fmta(
|
||||||
@@ -60,6 +60,38 @@ return {
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
s(etr('ref ', 'ref'), {
|
||||||
|
c(1, {
|
||||||
|
sn(nil, fmta('const #~ = ref(#~);', { i(1), i(2) })),
|
||||||
|
sn(
|
||||||
|
nil,
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
const #~ = ref<#~>(#~);
|
||||||
|
]],
|
||||||
|
{ i(1), i(2), i(3) }
|
||||||
|
)
|
||||||
|
),
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
|
||||||
|
s(etr('com ', 'computed'), {
|
||||||
|
c(1, {
|
||||||
|
sn(nil, fmta('const #~ = computed(() => #~);', { i(1), i(2) })),
|
||||||
|
sn(
|
||||||
|
nil,
|
||||||
|
fmta(
|
||||||
|
[[
|
||||||
|
const #~ = computed(() => {
|
||||||
|
#~
|
||||||
|
})
|
||||||
|
]],
|
||||||
|
{ i(1), i(2) }
|
||||||
|
)
|
||||||
|
),
|
||||||
|
}),
|
||||||
|
}),
|
||||||
|
|
||||||
s(
|
s(
|
||||||
etr('fn ', 'function block'),
|
etr('fn ', 'function block'),
|
||||||
fmta(
|
fmta(
|
||||||
@@ -126,3 +158,4 @@ return {
|
|||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user