Hey @maralla great work with completor, I'm quite pleased with it.
There are a couple of things I have noticed and I would like to ask for your feedback, if possible.
With C and C++ autocompletion work for some reason without the need for let g:completor_clang_binary = '/usr/bin/clang'; I guess completor.vim/pythonx/completers/cpp kicks in somehow?
So, what's the ideal way to use clangd or clang itself?
Is it possible to create a new setting for it, something along the lines of let g:completor_rust_analyzer_binary = '/path/to/rust-analyzer?
It comes with a number of flags that users could use to customize their desired output.
Another question is, what is the ideal way to pass arguments to custom filetype_map?
I'm asking because I'm using typescript-language-server and I would like to control my memory usage, because by default maxTsServerMemory it's set as undefined and I would like to reduce it to 4096 for 4GB of RAM; my computer has only 8GB therefore I cannot risk it going OOM.
Here's how I do it for JavaScript and TypeScript:
let g:completor_filetype_map = {}
let g:completor_filetype_map.javascript = {'ft': 'lsp', 'cmd': 'typescript-language-server --stdio'}
let g:completor_filetype_map.typescript = {'ft': 'lsp', 'cmd': 'typescript-language-server --stdio'}
Hey @maralla great work with completor, I'm quite pleased with it.
There are a couple of things I have noticed and I would like to ask for your feedback, if possible.
With C and C++ autocompletion work for some reason without the need for
let g:completor_clang_binary = '/usr/bin/clang'
; I guesscompletor.vim/pythonx/completers/cpp
kicks in somehow?So, what's the ideal way to use
clangd
orclang
itself?Another thing I have noticed is the deprecation of racer in favor of rust-analyzer.
Is it possible to create a new setting for it, something along the lines of
let g:completor_rust_analyzer_binary = '/path/to/rust-analyzer
?It comes with a number of flags that users could use to customize their desired output.
Another question is, what is the ideal way to pass arguments to custom
filetype_map
?I'm asking because I'm using typescript-language-server and I would like to control my memory usage, because by default
maxTsServerMemory
it's set asundefined
and I would like to reduce it to4096
for4GB
of RAM; my computer has only8GB
therefore I cannot risk it goingOOM
.Here's how I do it for JavaScript and TypeScript:
Any suggestions please?
Cheers.