This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Vim:E492: Not an editor command: dist#ft#SetFileTypeSH("bash") #68
Comments
Also happens to me when I open .bash_profile. |
Update: sourcing dist#ft breaks the plugin. Do this instead: local function bash_literal()
vim.bo.filetype = 'sh'
vim.b.is_bash = true
end
require('filetype').setup {
overrides = {
function_literal = {
['.bashrc'] = bash_literal,
['.bash_profile'] = bash_literal,
['.bash_history'] = bash_literal,
['.bash_logout'] = bash_literal,
... -- more overrides
},
... -- even more overrides
}
} Here's a bandaid for packer.nvim users: use {
'nathom/filetype.nvim',
setup = [[vim.cmd('runtime! autoload/dist/ft.vim')]],
... -- config and whatever else
} This command should probably be included in the plugin. (related to #9) |
I'm also experiencing this with any require('filetype').setup {
overrides = {
complex = {
['.*/.bash.*'] = bash_literal,
},
},
} |
I am seeing this now in the nighly neovim builds. I suspect because of this bullet
I believe what I'm seeing is the same as #91 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: