GithubHelp home page GithubHelp logo

andreyorst / smarttab.kak Goto Github PK

View Code? Open in Web Editor NEW
62.0 6.0 4.0 24 KB

Automatic handling different styles of indentation and alignment.

License: MIT License

KakouneScript 100.00%
kakoune plugin spaces tabs

smarttab.kak's People

Contributors

andreyorst avatar clarfonthey avatar ordoviz avatar valpackett avatar vbauerster 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

smarttab.kak's Issues

Overwrite default mode only when .editorconfig file is present

I want to use smarttab as the default option, but allow overwriting it when an editorconfig file is present.

I've tried the following setup:

hook global BufOpenFile .* smarttab
hook global BufNewFile  .* smarttab
hook global BufCreate .* %{
	editorconfig-load
	set-option buffer aligntab false
	autoconfigtab
}

but it doesn't seem to do what I want (I'm not knowledgeable enough about kakoune to figure out how to properly configure it).

Is there a way to make this work with smarttab.kak?

Indentation is always 8 spaces wide.

Hi,

I installed the plugin with kak following your example:

plug "andreyorst/smarttab.kak" %{
    set-option global softtabstop 4 # or other preferred value
}

then: :plug-install

Installation done, I close kakoune and open a new one. When I start to write and press tab is always 8 spaces wide.

The only other addon installed is fzf.

--

Not really related but where should I declare the option expandtab? I'm new to kakoune and don't find the correct place or way to declare it (excepting doing it manually).

How to set default mode?

I understand that this plugin provides commands. I can run these commands manually from within a Kakoune buffer. But how do I set one of the commands in my kakrc so it becomes the default? For example, I added expandtab at the end of my kakrc, but it didn't work. Also, I don't think I can set expandtab as an option a la, set-option global expandtab. So how can I do it?

Thanks

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.