From fe0fb3147b36cbe486e2fcb64a9861e4d8f92064 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 3 Jan 2024 03:05:10 +0900 Subject: nvim: fix PHP indent --- .config/nvim/after/indent/php.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .config/nvim/after/indent/php.lua (limited to '.config/nvim/after/indent/php.lua') 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) -- cgit v1.2.3-70-g09d2