added angular language server config.
This commit is contained in:
parent
23dbddefa0
commit
2a1fde4cbe
2 changed files with 50 additions and 1 deletions
|
@ -49,6 +49,17 @@ vim.g.markdown_fenced_languages = {
|
|||
"ts=typescript"
|
||||
}
|
||||
|
||||
--angular configuration. To install LS, $ npm install -g @angular/language-server
|
||||
local project_library_path = "/path/to/project/lib"
|
||||
local cmd = {"ngserver", "--stdio", "--tsProbeLocations", project_library_path , "--ngProbeLocations", project_library_path}
|
||||
|
||||
require'lspconfig'.angularls.setup{
|
||||
cmd = cmd,
|
||||
on_new_config = function(new_config,new_root_dir)
|
||||
new_config.cmd = cmd
|
||||
end,
|
||||
}
|
||||
|
||||
--rust configuration
|
||||
local rustOpts = {
|
||||
tools = { -- rust-tools options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue