Using lua module with lsp flag, but completion behavior is weird
- Dominant language
- Emacs Lisp
- Stars
- 22.7k
- Forks
- 3.1k
- Avg merge
- 10h 46m
- Merged PRs (30d)
- 4
Description
### What did you expect to happen?
Consider some simple lua code:
```
local a =
{
[1] = 1,
[2] = 2,
[3] = 3,|
}
```
where `|` denotes the position of the cursor. After I typed the `,` before the cursor, I assume there would no completion offered, and if I type enter afterwards, it should insert a new line character and bring me to the next line.
### What actually happened?
Same situation as above, after I typed the `,` before the cursor, the completion list shows with some snippets options such as "bang" and "comment line". After that, if I keep typing space, the completion list is still there. However, I think after someone typing comma or space, it is not the right occasion to show the snippets completion list.
### Describe your attempts to resolve the issue
I tried to edit the source in `.emacs.d/modules/lang/lua/config.el` and I found there is configurations about company backends.
```
(set-company-backend! 'lua-mode '(company-lua company-yasnippet))
```
I tried to remove the `comapny-yasnippet` but it does not work.
### Steps to reproduce
You have to enable lua module and add lsp flag to it. The LSP server I use is lua-language-server, so you have to install it. Then just create a new lua source code file and write some random lua code, you will find the behavior of completion is so weird that it is so impractical.
### System Information
https://pastebin.com/YjARHxsY
Contributor guide
Assessment
This issue has not been assessed yet.