mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 17:03:39 +02:00
feat(typescript): added gR
to goto file references
This commit is contained in:
parent
4dfd5c2596
commit
38b8736b81
1 changed files with 10 additions and 4 deletions
|
@ -34,9 +34,11 @@ return {
|
||||||
vtsls = {
|
vtsls = {
|
||||||
settings = {
|
settings = {
|
||||||
complete_function_calls = true,
|
complete_function_calls = true,
|
||||||
|
vtsls = {
|
||||||
|
enableMoveToFileCodeAction = true,
|
||||||
|
},
|
||||||
typescript = {
|
typescript = {
|
||||||
updateImportsOnFileMove = { enabled = "always" },
|
updateImportsOnFileMove = { enabled = "always" },
|
||||||
enableMoveToFileCodeAction = true,
|
|
||||||
experimental = {
|
experimental = {
|
||||||
completion = {
|
completion = {
|
||||||
enableServerSideFuzzyMatch = true,
|
enableServerSideFuzzyMatch = true,
|
||||||
|
@ -63,6 +65,13 @@ return {
|
||||||
end,
|
end,
|
||||||
desc = "Goto Source Definition",
|
desc = "Goto Source Definition",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"gR",
|
||||||
|
function()
|
||||||
|
require("vtsls").commands.file_references(0)
|
||||||
|
end,
|
||||||
|
desc = "File References",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"<leader>co",
|
"<leader>co",
|
||||||
function()
|
function()
|
||||||
|
@ -101,9 +110,6 @@ return {
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
-- copy typescript settings to javascript
|
-- copy typescript settings to javascript
|
||||||
opts.servers.vtsls.settings.javascript = vim.deepcopy(opts.servers.vtsls.settings.typescript)
|
opts.servers.vtsls.settings.javascript = vim.deepcopy(opts.servers.vtsls.settings.typescript)
|
||||||
|
|
||||||
-- add vtsls to lspconfig
|
|
||||||
require("lspconfig.configs").vtsls = require("vtsls").lspconfig
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue