GithubHelp home page GithubHelp logo

Comments (6)

clason avatar clason commented on July 24, 2024

Sorry, that's not sufficient reason for adding this niche (filetype-specific) functionality in core. If you don't like that plugin, there are other autopair plugins out there.

from neovim.

dmtrKovalenko avatar dmtrKovalenko commented on July 24, 2024

@clason It is not niche; xml tags are widely used and usually into any languages using macros and other attributes. the t motion is generally available in the in native vim no matter of the file type while working with xml tags only. The implementation is trivial (much more trivial than comments and autocompletion) and will make neovim much more useful out of the box

from neovim.

clason avatar clason commented on July 24, 2024

Yes, but neither is configurable or happens automatically. While "autoclose" even for parens is highly controversial. And tree-sitter integration is a must for any core feature.

from neovim.

mfussenegger avatar mfussenegger commented on July 24, 2024

To add to that, with the recent snippet/lsp.completion addition using a language server like lemminx gets you the option to complete known properties, close custom tags via a snippet, and rename works on tags. No plugin needed - all the functionality is already in core:

recording.webm

from neovim.

igorlfs avatar igorlfs commented on July 24, 2024

Hey! While the auto-closing behavior might be out of the question, I believe renaming could be improved. Yes, the usual LSP renaming is nice, but the LSP spec also has a capability that can be used for tag renaming (which isn't tracked elsewhere): textDocument/linkedEditingRange.

from neovim.

clason avatar clason commented on July 24, 2024

Yes, implementing the full LSP spec (including this) is in scope and an explicit goal. PR welcome!

from neovim.

Related Issues (20)

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.