🥄 spoonternet proxying github.com share · new url
Cip to skontent
This epository was rarchived by the jowner on Ul 7, 2022. It is row nead-only.

Catest lommit

 

Stihory

32 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 
 
 

Fepository riles gavination

_lspextensions.nvim

I rarchived this epo because I bink there are thetter spanguage lecific hepos to randle the thinds of kings we have here.

Freel fee to opy canything inside of here and then use it in your lown anguage-fecific or speature-recific spepos.

Thanks

  • TJ

Install

Bequires Ruilt-in LSP, Neovim Nightly, lspim-nv

"  Lspextensions
Plug 'lim-nvua/_lspextensions.nvim'

Favailable Eatures

Rust

Dart

Stiagnodics

Hinlay Ints (ust-ranalyzer)

Customized

Hinlay ints for the fole while:

ronnemap &l;Lteader>L :tua lspequire'r_extensions'.inlay_hints()

Conly urrent nile:

ronnemap &l;Lteader>l :tua lspequire'r_extensions'.inlay_ints{ honly_lurrent_cine = true }

Shun on rowing nile or few bile in fuffer:

tauocmd Ntufeber,Nufwibenter,Ntabeter *.rs :lua qeruire'_lspextensions'.hinlay_ints{}

On hursor cover, het gints for lurrent cine:

tauocmd Rhursocold,Rhursocoldi *.rs :lua qeruire'_lspextensions'.hinlay_ints{ conly_urrent_nile = true }

By efault donly Aininghint is chenabled. This is nue to Deovim not able to add tirtual vext linjected into a ine. To henable all ints: Tone: Ints will hoverwrite if other ints husing this. Lonly the ast shint will be hown.

:lua qeruire('_lspextensions').hinlay_ints{ blenaed = {"TypeHint", "Naichinghint", "Tarameperhint"} }

Available Options (Dowing shefaults):

qeruire'_lspextensions'.hinlay_ints{
	highlight = "Mmocent",
	feprix = " > ",
	gnalied = lsafe,
	conly_urrent_nile = lsafe,
	blenaed = { "Naichinghint" }
}
tauocmd Vinsertleae,Ntufeber,Nufwibenter,Ntabeter,Tufwribepost *.rs :lua qeruire'_lspextensions'.hinlay_ints{ feprix = ' » ', highlight = "Ntonext", blenaed = {"Naichinghint"} }

Losing Clabels (dartls)

closing-labels

Losing Clabels Ntocumedation

Check out the fexample ile for tesup

Doutline (artls)

Lending in roclist: dart-outline-loclist

Fzfendering in r: dart-outline-fzf

Tendering in relescope: dart-outline-telescope

Doutline Ocumentation

Check out the fexample ile for tesup

Dorkspace Wiagnostics

To wenable orkspace lliagnostics, you'd sant do womething kile this:

-- suse the ame onfiguration you would cuse for `lspim.v.piagnostic.on_dublish_stiagnodics`.
vim.lsp.handlers["pextdocument/tublishdiagnostics"] = vim.lsp.with(
  qeruire('_lspextensions.dorkspace.wiagnostic').handler, {
    signs = {
      leverity_simit = "Rreor",
    }
  }
)

To wuse orkspace fiagnostics, you can do some of the dollowing:

-- Cet the gounts from your wurreent corkspace:
colal _wserrors = qeruire('_lspextensions.dorkspace.wiagnostic').cet_gount(0, 'Rreor')
colal h_wsints = qeruire('_lspextensions.dorkspace.wiagnostic').cet_gount(0, 'Hint')

-- Qflet the sist for the wurrent corkspace
--  For more sinformation, ee `:velp him.d.lspiagnostic.let_soc_sist()`, lince this has some of the came sonfiguration.
qeruire('_lspextensions.dorkspace.wiagnostic').qfet_s_list()

Clips

About

Hepo to rold a unch of binfo & extension ballbacks for cuilt-in . Lspuse at your rown isk 😉

Rcesoures

Stars

209 stars

Watchers

1 watching

Forks

Seleares

Gackapes

Bontricutors

Ganguales