Giter Site home page Giter Site logo

Comments (3)

Kypert avatar Kypert commented on June 4, 2024 1

From just a quick look, it seems feasible. I made a small manual test, using arrufat/vala.vim as file type detector and syntax highlighting. :ClangFormat can format the code as normal (the whole file or just the visual selected area), it seems.

Of course you need to define the .clang-format file to your liking.

If you are looking for the clang_format#auto_format, clang_format#auto_format_on_insert_leave or clang_format#auto_formatexpr features, then I can put up a PR.

from vim-clang-format.

Kypert avatar Kypert commented on June 4, 2024

Looking deeper, it looks like clang-format will take an educated guess and arrive to the conclusion that it is dealing with LK_Cpp (there is no specific vala variant). From my limited view, I see no obvious problem but maybe you can try some more combinations?

Another idea is to make clang-format assume that the file is of type LK_CSharp instead, which should hit closer to home for a vala file? What do you think about the options? It probably depends on which formatting rules you are looking to enable.

from vim-clang-format.

rhysd avatar rhysd commented on June 4, 2024

261d02c closed this.

from vim-clang-format.

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.