Conversation
horriblename
left a comment
There was a problem hiding this comment.
I don't think these kinds of options are needed, vim typically provides a good default for most filetypes so it feels weird providing the same default for most filetypes. If you feel like vim's default is not good, consider making a PR upstream.
If the goal is a more convenient per-filetype option API, there are better ways to do so, e.g. mimicking the vim.options API, but for each filetype.
oh I wasn't aware vim had any per filetype defaults, I'm not really finding much info on this. I had always thought the tab configuration was static.
I'm not sure I follow. Are you suggesting something like |
something like though I'd ask for opinions from @NotAShelf and @Soliprem first |
I'm not sure honestly. Adding yet another namespace under P.S.: rather than this: function()
vim.bo.tabstop = ${toString indentSize}
vim.bo.softtabstop = ${toString indentSize}
vim.bo.shiftwidth = ${toString indentSize}
endwe'll want each option to be customizable separately. P.P.S: Allow nulling the values to avoid setting the option altogether. If |
|
@NotAShelf what do you think about these changes? |
|
I personally see little reason for this, as Yes, this is per-project config, not global config, but at the point where you share your projects with others, you prolly will need to add one anyways |
I agree, I originally was going into this without much knowledge of .editorconfig. But now Im more aware, I don't think my changes here are worth it. |
|
I'm in favor of keeping this change. |
Wdym not properly standardized? |
|
Not all LSPs or formatters support it. An autocmd for setting the indent, however, will always work. |
|
Well if you're cool with current implementation here I'll try to publish the PR sometime in the near future. |
some don't support it, because the language standardized the indentations, like go and make. But yes, there are LSPs out there, that don't support the protocol, or act as IF (im talking about you tombi the AI slop) |
Sanity Checking
nix fmt).#nix(default package).#maximal.#docs-html(manual, must build).#docs-linkcheck(optional, please build if adding links)x86_64-linuxaarch64-linuxx86_64-darwinaarch64-darwinAdd a 👍 reaction to pull requests you find important.