Comments (15)
I have below code in my formatting.format
function.
vim_item.menu = ({
nvim_lsp = '[LSP]',
buffer = '[Buf]',
})[entry.source.name]
from nvim-cmp.
It seems to cause by deprecated strike through.
I think it's related to your using fonts. I will disable it by default.
The table.move
method is not available in LuaJIT so sumneko_lua mark it as deprecated.
from nvim-cmp.
I see. Thank you for the response!
from nvim-cmp.
@hrsh7th how did you get the [LSP] text in the completion menu? I added lspkind to formatting but I just get the icons 😞
from nvim-cmp.
I have below code in my
formatting.format
function.vim_item.menu = ({ nvim_lsp = '[LSP]', buffer = '[Buf]', })[entry.source.name]
cool that works , Btw how do I add the completion item type too? cmp by default adds the type text to the item like "Function" "variable" etc but after adding lspkind it doesnt show that ;
compe :
from nvim-cmp.
Try this.
vim_item.kind = lspkind.presets.default[vim_item.kind] .. ' ' .. vim_item.kind
from nvim-cmp.
thanks that worked.
from nvim-cmp.
@uga-rosa I've introduced formatting.deprecated
option (sorry. But it is true by default).
You can set formatting.deprecated = false
to solve this.
from nvim-cmp.
Solved. Thx!!
from nvim-cmp.
I would like to know which font you are using @hrsh7th 🤣
from nvim-cmp.
I'm using JetBrainsMono NerdFont Medium with iTerm2 on Mac OS.
from nvim-cmp.
Hi, I also use JetBrainsMono NF but with windows terminal. cmp
seems to add a new special Unicode character after each character to achieve the strikethrough effect, And my deprecated strikethrough looks like that😭:
However, windows terminal is suppoted this kind of strikethrough:
Can this effect be achieved in cmp?
from nvim-cmp.
I have seen the issue in other issues...
from nvim-cmp.
OK. I will change deprecate indicator default value.
from nvim-cmp.
I have the same problem with @rhcher. But the strikethrough can be shown properly in neovim when use Windows Terminal.
from nvim-cmp.
Related Issues (20)
- command line completion appends unwanted forward slash HOT 1
- How to change the cmp source HOT 2
- Some information is put in formatting field "menu", which doesn't get truncated by maxwidth HOT 1
- nvim cmp breaks completion on input function HOT 1
- cmp:visible() is slow when typing due to onetime config
- suggestion: add "type checking" for sources
- Extra TS text appearing when doing cmp.mapping.select_next_item() HOT 4
- There's some extra `${}` text inserted when selecting first item HOT 1
- Mapping Enter or Shift-Enter does not work as expected HOT 2
- cmdline completion runs git commands resulting in many passphrase popups
- Selection cursor doesn't appear at the top of the autocompletion list for gopls HOT 4
- Please consider not using global variables HOT 4
- Documentation window obstructs suggestions window when suggestions window is too wide. HOT 1
- Fallback actions in `c` mode might be bugged for `Esc` HOT 2
- Goto next group_index ? HOT 1
- Main suggestion gets stuck in buffer, after changing focus to another window
- Speed / lag is hard to troubleshoot ? HOT 1
- Text completion does not include words with UTF-8 characters that take up more that a single byte HOT 1
- Tailwind CSS autocompletion isn't working
- TailwindCSS performance issues HOT 11
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-cmp.