diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-11 19:53:59 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-11 20:08:37 +0200 |
| commit | b62430bb2610198bffb076a59755ad74b4a3d50a (patch) | |
| tree | 1fd55be01a1e31b35440b56bb5c6176dc59c0eb4 /.config/nvim/after/ftplugin/sh.lua | |
| parent | 796b523aa141dd6aff2d100ddcc46f2895859ecd (diff) | |
| download | dotfiles-b62430bb2610198bffb076a59755ad74b4a3d50a.tar.gz dotfiles-b62430bb2610198bffb076a59755ad74b4a3d50a.zip | |
refactor(nvim): rewrite the buffer formatting flow
Diffstat (limited to '.config/nvim/after/ftplugin/sh.lua')
| -rw-r--r-- | .config/nvim/after/ftplugin/sh.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/sh.lua b/.config/nvim/after/ftplugin/sh.lua new file mode 100644 index 0000000..3574ac0 --- /dev/null +++ b/.config/nvim/after/ftplugin/sh.lua @@ -0,0 +1,7 @@ +vim.opt_local.textwidth = vim.g.dotfiles.textwidth.sh -- gw wraps at this value +vim.opt_local.colorcolumn = "+1" -- Highlight one column after 'textwidth' +vim.opt_local.complete = { + "o", -- 'omnifunc' +} + +vim.b.format = true -- See plugin/50-format.lua |
