Add support for plain text.
This commit is contained in:
@@ -136,7 +136,7 @@ vim-licenser automatically detects your file type and applies the appropriate
|
|||||||
comment style. Supported file types include:
|
comment style. Supported file types include:
|
||||||
bash, c, cmake, cpp, csharp, css, dart, go, groovy, haskell, html, java,
|
bash, c, cmake, cpp, csharp, css, dart, go, groovy, haskell, html, java,
|
||||||
javascript, json, kotlin, lua, matlab, perl, php, python, r, ruby, rust, scala,
|
javascript, json, kotlin, lua, matlab, perl, php, python, r, ruby, rust, scala,
|
||||||
shell, sql, swift, typescript, typescriptreact, vim, xml, yaml
|
shell, sql, swift, text, typescript, typescriptreact, vim, xml, yaml
|
||||||
|
|
||||||
For more information, see `:help licenser` after installation.
|
For more information, see `:help licenser` after installation.
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ vim-licenser supports the following filetypes with appropriate comment styles:
|
|||||||
shell - Shell script
|
shell - Shell script
|
||||||
sql - SQL
|
sql - SQL
|
||||||
swift - Swift
|
swift - Swift
|
||||||
|
text - Plain text
|
||||||
typescript - TypeScript
|
typescript - TypeScript
|
||||||
typescriptreact - TypeScript React (TSX)
|
typescriptreact - TypeScript React (TSX)
|
||||||
vim - Vim script
|
vim - Vim script
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ function! s:GetCommentStyle(filetype) abort
|
|||||||
\ 'shell': {'margin': 0, 'hashbang': 1, 'prefix': '', 'middle': '#', 'suffix': ''},
|
\ 'shell': {'margin': 0, 'hashbang': 1, 'prefix': '', 'middle': '#', 'suffix': ''},
|
||||||
\ 'sql': {'margin': 1, 'hashbang': 0, 'prefix': '/*', 'middle': ' *', 'suffix': ' */'},
|
\ 'sql': {'margin': 1, 'hashbang': 0, 'prefix': '/*', 'middle': ' *', 'suffix': ' */'},
|
||||||
\ 'swift': {'margin': 1, 'hashbang': 0, 'prefix': '/*', 'middle': ' *', 'suffix': ' */'},
|
\ 'swift': {'margin': 1, 'hashbang': 0, 'prefix': '/*', 'middle': ' *', 'suffix': ' */'},
|
||||||
|
\ 'text': {'margin': 0, 'hashbang': 0, 'prefix': '', 'middle': '', 'suffix': ''},
|
||||||
\ 'typescript': {'margin': 1, 'hashbang': 0, 'prefix': '/*', 'middle': ' *', 'suffix': ' */'},
|
\ 'typescript': {'margin': 1, 'hashbang': 0, 'prefix': '/*', 'middle': ' *', 'suffix': ' */'},
|
||||||
\ 'typescriptreact': {'margin': 1, 'hashbang': 0, 'prefix': '/*', 'middle': ' *', 'suffix': ' */'},
|
\ 'typescriptreact': {'margin': 1, 'hashbang': 0, 'prefix': '/*', 'middle': ' *', 'suffix': ' */'},
|
||||||
\ 'vim': {'margin': 0, 'hashbang': 0, 'prefix': '', 'middle': '"', 'suffix': ''},
|
\ 'vim': {'margin': 0, 'hashbang': 0, 'prefix': '', 'middle': '"', 'suffix': ''},
|
||||||
|
|||||||
Reference in New Issue
Block a user