andreyorst / smarttab.kak Goto Github PK
View Code? Open in Web Editor NEWAutomatic handling different styles of indentation and alignment.
License: MIT License
Automatic handling different styles of indentation and alignment.
License: MIT License
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?
Regression of mawww/kakoune#2861
as of
Kakoune git: 1ebea85e6f07aeb6a8287b8043480f56f0e58edb
smarttab.kak git: 933a784
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).
In README there is a mention of powerline-rebuild
command. Looks like it is stale from some template.
I'm trying to debug some hooks that trigger this, and I need to know which mode was actually selected. :)
I've created a tabs-spaces-smarttab indicator for my powerline config for my own use here: https://github.com/insipx/dotfiles/blob/master/.config/kak/config/90-powerline.kak
I think it may be cool to integrate it into this plugin -- if so, i'll create a PR!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.