diff options
Diffstat (limited to 'nvim/lua/config/autocmds.lua')
| -rw-r--r-- | nvim/lua/config/autocmds.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nvim/lua/config/autocmds.lua b/nvim/lua/config/autocmds.lua index 6be82dd..09aea1e 100644 --- a/nvim/lua/config/autocmds.lua +++ b/nvim/lua/config/autocmds.lua | |||
| @@ -1,6 +1,13 @@ | |||
| 1 | -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/doc/nvim-treesitter.txt | 1 | -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/doc/nvim-treesitter.txt |
| 2 | vim.api.nvim_create_autocmd("FileType", { | 2 | vim.api.nvim_create_autocmd("FileType", { |
| 3 | pattern = { "c", "cpp", "lua", "python", "typescript" }, | 3 | pattern = { |
| 4 | "c", | ||
| 5 | "cpp", | ||
| 6 | "lua", | ||
| 7 | "prisma", | ||
| 8 | "python", | ||
| 9 | "typescript", | ||
| 10 | }, | ||
| 4 | callback = function() | 11 | callback = function() |
| 5 | vim.treesitter.start() | 12 | vim.treesitter.start() |
| 6 | vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" | 13 | vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" |
