Skip to content

Rested Syntax Highlighting, and LSP setup for neovim

License

Notifications You must be signed in to change notification settings

Gnarus-G/restedlang.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

restedlang.nvim

Neovim Syntax Highlighting and LSP setup for Rested, the language.

Usage

use { 'gnarus-g/restedlang.nvim',
  requires = {
    { "nvim-treesitter/nvim-treesitter", "neovim/nvim-lspconfig" }
  },
  config = function()
    require("restedlang")
  end
}

Pass capabilities in your own configs.

require("lspconfig").rstdls.setup({
  on_attach = ...
  capabilities = ...
})

Codelens

The language supports codelenses for running the request on the cursor's line. Make sure a keymap set up for running codelenses, e.g:

vim.keymap.set('n', '<leader>lr', vim.lsp.codelens.run, opts)

Dev References

https://neovim.io/doc/user/lsp.html#lsp-handler
https://github.com/David-Kunz/gen.nvim/blob/main/lua/gen/init.lua
https://neovim.discourse.group/t/how-can-i-jump-to-the-floating-window/1034 neovim/nvim-lspconfig#780

About

Rested Syntax Highlighting, and LSP setup for neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published