diff options
Diffstat (limited to '.config/nvim/after/indent/php.lua')
| -rw-r--r-- | .config/nvim/after/indent/php.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/after/indent/php.lua b/.config/nvim/after/indent/php.lua new file mode 100644 index 0000000..aeffba8 --- /dev/null +++ b/.config/nvim/after/indent/php.lua @@ -0,0 +1,8 @@ +vimrc.after_indent('php', function(conf) + -- The default indent plugin for PHP bundled with Neovim disables + -- 'smartindent' and 'autoindent' because the plugin fully handles + -- indentation by itself. However, I use nvim-treesitter plugin for PHP + -- indentation, which requires that these options are on. + vim.bo.smartindent = true + vim.bo.autoindent = true +end) |
