Comments (6)
To be clear you want the following to be configured.
local foo = "bar" -- comment
-- ^
-- This padding
Your request seems usable but it's useless in most cases. Because most of the formatters only prefer one space between the end-of-line and the start of the comment. They'll just remove extra whitespace in b/w. So personally, I am not a fan of this idea even if this is just for norm_A
. Thoughts??
from comment.nvim.
The Python style guide recommends two spaces between the statement and the comment:
Inline comments should be separated by at least two spaces from the statement. They should start with a # and a single space.
from comment.nvim.
Seriously! That is odd (maybe because I never wrote python 🤷🏻). A question though, Does python formatter automatically adds 2 spaces if it found 0 or 1 space b/w statement and comment?
from comment.nvim.
Yes, you can see that here: Example with Black
from comment.nvim.
Thanks for explaining. I'll see what I can do about this.
from comment.nvim.
I've added a patch for python
for now. We'll see If someone wants to configure it manually.
from comment.nvim.
Related Issues (20)
- Issue with HCL files HOT 1
- how to add a header comment? HOT 3
- [Comment.nvim] nil for .lua files
- Adding a shortcut that selects the kind of comment
- Wrong commenting on HTML files. HOT 1
- Add blockwise comment support for verilog/systemverilog
- Support templ HOT 1
- How to support context filetype?
- Uses `//` as commentstring in html HOT 4
- NOT A BUG/ISSUE [a gen qs] HOT 2
- How to just do comment or uncomment?
- Willing to accept a PR if I add a setup option "default commentstring"? HOT 2
- comment config working on arch but not on linux (arch) HOT 1
- Retain visual mode after commenting HOT 1
- [BUG] When I try to comment linewise in visual mode, unrelated or extra code gets commented HOT 5
- Adding a FOSS license HOT 2
- Not working for typescript react HOT 1
- BUG: fails silently in absence of LuaJIT HOT 1
- ft.set() not working for blade files defaults to html comments HOT 1
- Support inline commenting of wrapped shell commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comment.nvim.