Add signature support to javascript projects.
This commit is contained in:
parent
61dd7c769e
commit
101b38a9a2
1 changed files with 14 additions and 0 deletions
|
|
@ -1,6 +1,20 @@
|
|||
require'lspconfig'.tsserver.setup{
|
||||
on_attach = function(client, bufnr)
|
||||
require "lsp_signature".on_attach({
|
||||
bind = false,
|
||||
-- floating_window = true,
|
||||
--hint_enable = true,
|
||||
fix_pos = true,
|
||||
use_lspsaga = true,
|
||||
--handler_opts = {
|
||||
-- border = "single" -- double, single, shadow, none
|
||||
--},
|
||||
})
|
||||
end,
|
||||
cmd = {DATA_PATH .. "/lspinstall/typescript/node_modules/.bin/typescript-language-server", "--stdio"},
|
||||
filetypes = { "javascript", "javascriptreact", "javascript.jsx", "typescript", "typescriptreact", "typescript.tsx" },
|
||||
root_dir = require('lspconfig/util').root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git")
|
||||
}
|
||||
|
||||
local saga = require 'lspsaga'
|
||||
saga.init_lsp_saga()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue