10000 GitHub - bjartek/nvim-cadence: Syntax highlight for the Cadence programming language. A high level programming lanaguage intended for smart contract development. :neckbeard:
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Syntax highlight for the Cadence programming language. A high level programming lanaguage intended for smart contract development. :neckbeard:

Notifications You must be signed in to change notification settings

bjartek/nvim-cadence

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim-cadence

Syntax highlighting for the Cadence programming language. A high level programming lanaguage intended for smart contract development.

Modified from upstream with renaming to cdc since nvim recognize that

Installation

Add it using your favorite plugin manager.

In LazyVim you can put this file into .config/nvim/lua/plugins/cadence.lua

return {
  "bjartek/nvim-cadence",
  config = function()
    -- i really like format on save and this does the trick
    vim.api.nvim_create_autocmd("BufWritePre", {
      pattern = { "*.cdc" },
      command = ":normal gg=G''",
    })
    -- startup the cadence shared lspconfig
    require("lspconfig").cadence.setup({
      init_options = {
        -- i like to set this since we use access(account) quite a lot and this does not throw an error when that happends
        accessCheckMode = "none",
      },
    })
  end,
}

About

Syntax highlight for the Cadence programming language. A high level programming lanaguage intended for smart contract development. :neckbeard:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%
0