add support for vue
This commit is contained in:
parent
b4c5efab11
commit
6a9d53df72
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
filetypes = {
|
||||
'javascript',
|
||||
'javascriptreact',
|
||||
'typescript',
|
||||
'typescriptreact',
|
||||
'vue',
|
||||
},
|
||||
init_options = {
|
||||
plugins = {
|
||||
{
|
||||
languages = { 'vue' },
|
||||
location = vim.fn.expand '$MASON/packages' .. '/vue-language-server' .. '/node_modules/@vue/language-server',
|
||||
name = '@vue/typescript-plugin',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ return {
|
|||
auto_show_delay_ms = 500,
|
||||
},
|
||||
accept = { auto_brackets = { enabled = true } },
|
||||
list = { selection = { preselect = false, auto_insert = false } },
|
||||
list = { selection = { preselect = false, auto_insert = true } },
|
||||
-- Display a preview of the selected item on the current line
|
||||
ghost_text = { enabled = true },
|
||||
},
|
||||
|
|
|
|||
|
|
@ -40,13 +40,6 @@ return {
|
|||
},
|
||||
keys = {
|
||||
-- Top Pickers & Explorer
|
||||
{
|
||||
'<leader><space>',
|
||||
function()
|
||||
Snacks.picker.smart()
|
||||
end,
|
||||
desc = 'Smart Find Files',
|
||||
},
|
||||
{
|
||||
'<C-p>',
|
||||
function()
|
||||
|
|
@ -118,6 +111,13 @@ return {
|
|||
end,
|
||||
desc = 'Find Files',
|
||||
},
|
||||
{
|
||||
'<leader><space>',
|
||||
function()
|
||||
Snacks.picker.files()
|
||||
end,
|
||||
desc = 'Find Files',
|
||||
},
|
||||
-- {
|
||||
-- '<C-p>',
|
||||
-- function()
|
||||
|
|
|
|||
Loading…
Reference in New Issue