Git Product home page Git Product logo

nvim-emmet's People

Contributors

olrtg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

karchz b0o

nvim-emmet's Issues

Does not work on .svelte files.

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?

When in visual mode, with a selected "emmet expression", the normal mode inputbox pops up

I'm not sure I'm doing something wrong.

Modes:

Visual (v), visual line (V) and visual block ().

Prerequisite:

A visual selected "emmet expression" (e.g. headers>h1{hello}).
set filetype? returns filetype=html

How nvim-emmet is invoked:

      vim.keymap.set(
        { "n", "v" },
        "<leader>e",
        require("nvim-emmet").wrap_with_abbreviation,
        { desc = "Expand with Emmet" })

What happens:

I press <leader>e and the normal mode input box appears.

What I expected to happen:

The visually selected text is replaced with the expanded *ML tags.

NVIM Info:

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

โ— emmet-language-server emmet_language_server

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                          

Feature: wrap abbreviation on each visually selected item

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.