summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-06-09 12:01:20 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2021-06-09 12:01:20 +0200
commitf678aad2100068b1310ada35e3eeedddceea59e2 (patch)
tree1e3f3a91eb2ba50befb31c71e0d94c2a86296461
parentaf4d6aa3cf5eab6cf555cbb067f8316cca7975bf (diff)
downloadvim-polyglot-f678aad2100068b1310ada35e3eeedddceea59e2.tar.gz
vim-polyglot-f678aad2100068b1310ada35e3eeedddceea59e2.zip
Fix livescript filetype, closes #666
-rw-r--r--autoload/polyglot/init.vim2
-rw-r--r--autoload/polyglot/sleuth.vim2
-rw-r--r--packages.yaml2
-rw-r--r--tests/filetypes.vim2
4 files changed, 4 insertions, 4 deletions
diff --git a/autoload/polyglot/init.vim b/autoload/polyglot/init.vim
index 6c2e9b87..e463f3ac 100644
--- a/autoload/polyglot/init.vim
+++ b/autoload/polyglot/init.vim
@@ -2215,7 +2215,7 @@ if !has_key(g:polyglot_is_disabled, 'llvm')
endif
if !has_key(g:polyglot_is_disabled, 'livescript')
- au BufNewFile,BufRead *._ls,*.ls,Slakefile setf livescript
+ au BufNewFile,BufRead *._ls,*.ls,Slakefile setf ls
endif
if !has_key(g:polyglot_is_disabled, 'lilypond')
diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim
index 66c78e1c..e134370d 100644
--- a/autoload/polyglot/sleuth.vim
+++ b/autoload/polyglot/sleuth.vim
@@ -298,7 +298,6 @@ let s:globs = {
\ 'litcoffee': '*.litcoffee,*.coffee.md',
\ 'lite': '*.lite,*.lt',
\ 'litestep': '',
- \ 'livescript': '*.ls,*._ls,Slakefile',
\ 'llvm': '*.ll',
\ 'log': '*.log,*.LOG,*_log,*_LOG',
\ 'logcheck': '',
@@ -309,6 +308,7 @@ let s:globs = {
\ 'lout': '*.lou,*.lout',
\ 'lpc': '*.lpc,*.ulpc',
\ 'lprolog': '*.sig',
+ \ 'ls': '*.ls,*._ls,Slakefile',
\ 'lsl': '*.lsl',
\ 'lss': '*.lss',
\ 'lua': '*.lua,*.fcgi,*.nse,*.p8,*.pd_lua,*.rbxs,*.rockspec,*.wlua,.luacheckrc',
diff --git a/packages.yaml b/packages.yaml
index 90c1333c..44258261 100644
--- a/packages.yaml
+++ b/packages.yaml
@@ -994,7 +994,7 @@ filetypes:
name: livescript
remote: gkz/vim-ls
filetypes:
-- name: livescript
+- name: ls
linguist: LiveScript
---
name: llvm
diff --git a/tests/filetypes.vim b/tests/filetypes.vim
index 895ece5e..df83137c 100644
--- a/tests/filetypes.vim
+++ b/tests/filetypes.vim
@@ -139,7 +139,7 @@ call TestFiletype('kotlin')
call TestFiletype('ledger')
call TestFiletype('less')
call TestFiletype('lilypond')
-call TestFiletype('livescript')
+call TestFiletype('ls')
call TestFiletype('llvm')
call TestFiletype('tablegen')
call TestFiletype('log')