UNPKG

coc-nasm

Version:

This is the snippets and autocompletions for Netwide Assembler language in coc.nvim

109 lines (107 loc) 3.47 kB
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <!--link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <script src="{{ url_for('static', filename='bridge.js') }}"></script> <script src="{{ url_for('static', filename='frontend.js') }}"></script--> <link rel="stylesheet" href="style.css"> <link rel="icon" href="coc-nasm-favison.svg" sizes="48x48"> <script src="bridge.js"></script> <!--link rel="shortcut icon" href="favicon.ico" type="image/x-icon"--> <title>Installation in Neovim</title> </head> <body id="bodie"> <header> <div id="menubox"> <nav> <ul> <li><button id="light">Change background</button></li> <br> <li><a href="index.html"><img src="coc-nasm-favison.svg" /></a></li> <li><a href="installation_for_coc.html">Installation (CoC)</a></li> <li><a href="installation_for_nvim.html">Installation (Neovim plugins)</a></li> <li><a href="snippets.html">Snippets</a></li> <li><a href="completions.html">Completions</a></li> <li><a href="see_also.html">See also</a></li> </ul> </nav> </div> </header> <main> <section> <h1 id="testtitle">Installation in Neovim</h1> </section> <section class="nvimcodeinstallation"> <div class="c"> <p class="c2"><img src="clipboard.svg" alt="" class="copy-btn">Copy</p> </div> <pre><code class="codeblock"> return { "Who5673/who5673-nasm", dependencies = { "L3MON4D3/LuaSnip", "hrsh7th/nvim-cmp" }, ft = "nasm", lazy = true, }, </code> </pre> </section> <section class="nvimcodeinstallation"> <div class="c"> <p class="c2"><img src="clipboard.svg" alt="" class="copy-btn"> Copy</p> </div> <pre><code class="codeblock"> return { { "hrsh7th/nvim-cmp", event = "InsertEnter", dependencies = { "L3MON4D3/LuaSnip", "saadparwaiz1/cmp_luasnip", "hrsh7th/cmp-path", "hrsh7th/cmp-nvim-lsp", }, enabled = true, -- Very important! Lazyvim may disable this plugin when we download it. config = function() local cmp = require("cmp") local luasnip = require("luasnip") cmp.setup({ snippet = { expand = function(args) luasnip.lsp_expand(args.body) end, }, sources = { { name = "nvim_lsp" }, { name = "luasnip" }, { name = "path" }, { name = "nasm_registers" }, { name = "nasm_instructions" }, }, mapping = cmp.mapping.preset.insert({ ["<Tab>"] = cmp.mapping.select_next_item(), ["<S-Tab>"] = cmp.mapping.select_prev_item(), ["<CR>"] = cmp.mapping.confirm({ select = true }), ["<C-Space>"] = cmp.mapping.complete(), }), }) end, }, }</code> </pre> </section> <script src="frontend.js"></script> </main> <footer> <section> <hr> <p style="font-family: sans-serif;">Copyright &copy; 2025 July by who5673. All rights served.</p> <h1 style="font-family: sans-serif;">LICENSE</h1> <a style="font-weight: 400; font-family: Arial, Helvetica, sans-serif;" href="../LICENSE">MIT</a> </section> </footer> </body> </html>