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? |
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.