Comments (3)
I will update the README file to specify that the nightly build is indeed recommended (I did not realise it myself before you pointed it out, so good to have looked into it).
from nvim-commaround.
The error is presumably caused by the fact that vim.bo.filetype
returns nil
(in particular the call to vim.bo
).
In order to debug it
- please issue the command
:lua print(vim.bo.filetype)
and check the output. This should return the filetype of the current buffer: does it return the correct value (or any non-nil value)? - what version of neovim are you running? I suspect that the API
vim.bo.filetype
needs latest nightly build and I believe the error is caused by such property call returning a null value. - in order to validate assumption 2. you may try to replace the call to
vim.bo.filetype
with the hardcoded value of a specific filetype (just for testing). Say replace in the codelocal filetype_config = global_config.config['lua']
and toggle comments on a Lua file: if the plugin works fine by passing the reference manually, then the problem is indeed as point 2 above; otherwise it is a bug and I will investigate.
from nvim-commaround.
Same error with :lua print(vim.bo.filetype)
Done as stated in 3 and got an error https://imgur.com/a/PSNWTYL
I am using nvim v0.4.3 though it works on nvim v0.5.0, I installed nightly build and now it works fine for me.
from nvim-commaround.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-commaround.