Giter Site home page Giter Site logo

detect-language.nvim's Introduction

Hi πŸ‘‹

My daily drivers

This week I spent my time on

Swift          11 hrs 59 mins  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–“β–‘β–‘β–‘   87.11 %
Other          1 hr 10 mins    β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   08.52 %
C#             10 mins         β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   01.24 %
Bash           10 mins         β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   01.21 %
Markdown       5 mins          β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   00.71 %

Some statistics

spywhere's Most Used Languages spywhere's GitHub Stats

Latest blog posts

Organization-based accounts

spywhere @spywhere

detect-language.nvim's People

Contributors

spywhere 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

detect-language.nvim's Issues

Parsing timeout

Allow each of the language to timed out for better performance and not keep hanging the process.

doesnt work with lua files

Should instead make an exclusion list of filetypes you want to disable and also make it available in opts={} as well

disabled_filetypes = { "help", "text", "markdown" },

it's mainly because i sometimes have .bak backup files with source code and want to have treesitter enabled in them as well.

and also you'll probably never see a [No Name] file if you use a startpanel plugin like dashboard.nvim

related: #1

Add eager picker support

A picker that evaluate as each language get analyzed. Once the score stopped getting higher, it stop the analysis and return the last language immediately.

Try modular design

So behavior customization can be achieve easier.

For example, picker behavior can be import and customized separately to core detection logic.

Do not trigger for unsupported file types

When file type is set and it is not supported by tree-sitter, do not trigger auto detection. This should also make it ignore startify and nvimtree without any hard coded value as well.

For example, markdown is not supported by tree-sitter. Auto-detect would mess up the file type settings here.

Also only limited to only buftype= (empty)

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.