Skip to content

Commit

Permalink
chore: add a filetype plugin for TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarmos-san committed Jan 16, 2025
1 parent 4947116 commit 82946e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dotfiles/.config/nvim/after/ftplugin/typescript.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Folding configurations for Neovim
if vim.api.nvim_buf_line_count(0) >= 100 then
vim.o.foldmethod = "expr" -- Allow folding using the "nvim-treesitter" plugin
vim.o.foldexpr = "nvim_treesitter#foldexpr()" -- Configure the folding algorithm to be from the plugin
vim.o.foldlevel = 1 -- Configure the maximum indenting for the folding
end

0 comments on commit 82946e0

Please sign in to comment.