[BUG] Editor commands do not work
Closed this issue · 2 comments
- Healthcheck output:
scnvim: require("scnvim.health").check()
scnvim ~
- OK nvim version 0.9.0
- OK sclang executable: /usr/local/bin/sclang
- OK scnvim classes are installed: /home/riordant/.local/share/SuperCollider/Extensions/scide_scnvim
- OK keymaps are defined
Describe the bug
Editor commands do not work, despite installation looking correct.
For example, :SCNvimStart
fails with:
E492: Not an editor command: SCNvimStart
Expected behavior
Working editor commands
Steps to reproduce
Trying any of the editor commands
Information
Operating system:
Linux Mint
supernova --version:
supernova 3.14.0-dev (Built from branch 'develop' [6d65a5877])
nvim --version:
NVIM v0.9.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Package manager:
vim-plug
I've reverted to the most basis init.lua
possible, removing all packages and settings:
local call = vim.call
local cmd = vim.cmd
local Plug = vim.fn['plug#']
local PATH = "~/.nvim/plugged"
call('plug#begin', PATH)
Plug 'davidgranstrom/scnvim'
call'plug#end'
local scnvim = require 'scnvim'
scnvim.setup({})
and it still doesn't pick up the editor commands.
@davidgranstrom any ideas? thanks
@riordant The user commands are only defined for supercollider
filetypes (files ending with .scd
or .sc
extensions), perhaps this could be the cause?
that was exactly the issue. thank you very much :) I did not know that editor commands could be defined for particular file types, you learn something new every day.