olrtg / nvim-emmet Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
This doesn't work on svelte files despite it being supported by emmet. The input box opens, but after typing in the abbreviation, nothing happens. Is there a config option to add support for svelte files that I can't see?
I'm not sure I'm doing something wrong.
Visual (v), visual line (V) and visual block ().
A visual selected "emmet expression" (e.g. headers>h1{hello}
).
set filetype?
returns filetype=html
vim.keymap.set(
{ "n", "v" },
"<leader>e",
require("nvim-emmet").wrap_with_abbreviation,
{ desc = "Expand with Emmet" })
I press <leader>e
and the normal mode input box appears.
The visually selected text is replaced with the expanded *ML tags.
NVIM v0.10.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -ffile-prefix-map=/build/neovim-NnzJnj/neovim-0.10.0~ubuntu1+git202402292105-6ab0876f5-971e32c87=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -O2 -g -Og -g -flto -fno-fat-lto-objects -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wvla -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -fsigned-char -fstack-protector-strong -Wno-conversion -fno-common -Wno-unused-result -Wimplicit-fallthrough -fdiagnostics-color=auto -DUNIT_TESTING -DHAVE_UNIBILIUM -D_GNU_SOURCE -DINCLUDE_GENERATED_DECLARATIONS -I/usr/include/luajit-2.1 -I/build/neovim-NnzJnj/neovim-0.10.0~ubuntu1+git202402292105-6ab0876f5-971e32c87/.deps/usr/include -I/build/neovim-NnzJnj/neovim-0.10.0~ubuntu1+git202402292105-6ab0876f5-971e32c87/build/src/nvim/auto -I/build/neovim-NnzJnj/neovim-0.10.0~ubuntu1+git202402292105-6ab0876f5-971e32c87/build/include -I/build/neovim-NnzJnj/neovim-0.10.0~ubuntu1+git202402292105-6ab0876f5-971e32c87/build/cmake.config -I/build/neovim-NnzJnj/neovim-0.10.0~ubuntu1+git202402292105-6ab0876f5-971e32c87/src -I/usr/include
A language server for emmet.io.
installed version 2.5.0
homepage https://github.com/olrtg/emmet-language-server
languages Emmet
categories LSP
executables emmet-language-server
Given the following example
test
test
test
In vscode if you visually select all 3 lines and then do Emmet: wrap with abbreviation
and you pass in the arguments ul>li*
the result will be
<ul>
<li>test</li>
<li>test</li>
<li>test</li>
</ul>
But when using this plugin in Neovim the result is
<ul>
<li>
test
test
test
</li>
</ul>
Do you think this plugin could support abbreviation multiplication in visually selected items as well just like in insert mode with emmet-language-server
?
Moving here olrtg/emmet-language-server#28.
@kola-web we can continue here if you want.
Wrapping with a.foo.bar
expands to <a href="" class="foo bar">
when it should be <a href="" className="foo bar">
. Doing the expansion via the LSP with nvim-cmp results in the correct expansion.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.