-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support .editorconfig #292
Comments
PR welcome |
I am not familiar with the in-documentation language highlighting or if you use it at all, but this would make things faster (probably also adding it into the README): diff --git a/lua/Comment/ft.lua b/lua/Comment/ft.lua
index d5e4daf..4fab693 100644
--- a/lua/Comment/ft.lua
+++ b/lua/Comment/ft.lua
@@ -8,6 +8,9 @@
---'ios.swift' etc. The commentstring resolution will be done from left to right.
---For example, If the filetype is 'ansible.yaml' then 'ansible' commenstring will
---be used if found otherwise it'll fallback to 'yaml'. Read `:h 'filetype'`
+---or try locally in an opened file within vim cmdline:
+---:lua print(vim.bo.filetype)
+---:lua print(require("nvim-treesitter.parsers").filetype_to_parsername[vim.bo.filetype])
---@brief ]] |
Huh? What's the point here? I thought you wanted to add to add support for editorconfig files(?) |
Point being is that getting treesitter used filetype is not documented in |
There's also |
see https://editorconfig.org/:
Comments are prefixed with
#
For the neovim helpage:
:h editorconfig
.The text was updated successfully, but these errors were encountered: