ShinKage / idris2-nvim

Simple configuration and extra tools for NVIM + LSP + Idris2
MIT License
46 stars 8 forks source link

Add an ftplugin/idris2.vim, for filetype-specific settings #1

Closed gwerbin closed 2 years ago

gwerbin commented 2 years ago

Edwin's Idris2-Vim plugin had a ftplugin/idris2.vim file that defined several useful settings for Idris 2 files, such as 'comments', 'commentstring', and 'shiftwidth'.

This PR adds a new ftplugin/idris2.vim file that contains those useful settings, without all the old command definitions that are now supplanted by LSP operations.

I left in support for the old g:idris2#allow_tabchar setting, but I would imagine that approximately 0 people are using it. I am happy to remove it. Those who do really really want noexpandtab can set it manually in after/ftplugin/idris2.vim.