<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Paul Desmond Parker on Medium]]></title>
        <description><![CDATA[Stories by Paul Desmond Parker on Medium]]></description>
        <link>https://medium.com/@pauldesmondparker?source=rss-ae0d48ccd6e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*W2nNPqqxOoCtFnUk.</url>
            <title>Stories by Paul Desmond Parker on Medium</title>
            <link>https://medium.com/@pauldesmondparker?source=rss-ae0d48ccd6e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:05:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pauldesmondparker/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Keyboard Screen Focus in Gnome3]]></title>
            <link>https://medium.com/@pauldesmondparker/keyboard-screen-focus-in-gnome3-dbed1e12374a?source=rss-ae0d48ccd6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbed1e12374a</guid>
            <category><![CDATA[keyboard-shortcuts]]></category>
            <category><![CDATA[gnome]]></category>
            <category><![CDATA[arch-linux]]></category>
            <dc:creator><![CDATA[Paul Desmond Parker]]></dc:creator>
            <pubDate>Wed, 11 Sep 2024 00:25:04 GMT</pubDate>
            <atom:updated>2024-09-11T00:25:04.228Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m using Archlinux and Gnome3 with three monitors. I hate switching focus from one screen to another with the mouse. Yes, you can switch applications and workspaces with shortcuts, but to my knowledge there is no Gnome3 built-in shortcut for navigating to a screen. This post fixes that.</p><h3>Install Some Required Tools</h3><p>Using whichever package manager you have pacman , yay , paru , etc; install the following:</p><pre>paru -S xdotool wmctrl<br></pre><p>It’s unlikely that your system doesn’t already have grep and sed, but if you have an issue then you may have to install them explicitly.</p><h3>Create the Script</h3><p>In ~/.local/bin/focus put the following code:</p><pre>#!/usr/bin/env bash<br><br># Move the mouse to the middle of the selected screen.<br>if [[ $1 -eq 1 ]]<br>then<br>  xdotool mousemove 960 540 # Coords of middle of first screen<br>elif [[ $1 -eq 2 ]]<br>then<br>  xdotool mousemove 2880 540 # Coords of middle of second screen<br>elif [[ $1 -eq 3 ]]<br>then<br>  xdotool mousemove 4680 525 # Coords of middle of third screen<br>else<br>  echo &quot;Usage: ${0##*/} &lt;window id&gt;&quot; &amp;&amp; exit 1<br>fi<br><br># Find the id of the window under the cursor<br>sedGetValue=&#39;s/.*=\(.*\)/\1/&#39;<br>id=`xdotool getmouselocation --shell 2&gt;/dev/null | grep WINDOW | sed &quot;$sedGetValue&quot;`<br><br># Focus the window<br>wmctrl -iR &quot;$id&quot;<br><br># ========================================<br># Debugging Only ...<br># ========================================<br># To send NATS requests, uncomment the following line<br># nats req home &quot;Moved to Screen $1 -&gt; with ID: $id&quot;<br><br># ========================================<br># NATS Setup<br># ========================================<br># To start the NATS server<br># $ nats server run<br># $ nats context select &quot;nats_development&quot;<br>#<br># To listen for NATS requests<br># $ nats reply home &quot;hi&quot;#!/usr/bin/env bash</pre><p>Modify the mousemove coordinates to match your screen dimensions. <em>(Notice that the x-coordinate includes the width of the preceding screen).</em></p><pre>xdotool mousemove &lt;coord-x of screen + width/2&gt; &lt;height/2&gt;</pre><p>And make it executable:</p><pre>chmod +x ./focus</pre><p>Test the function with:</p><pre>./focus 1 <br>./focus 2<br>./focus 3</pre><p>Expect the cursor to jump to the middle of the chosen screen and focus on the window under the cursor.</p><h3>Set Up the Shortcuts</h3><p>Go to Gnome settings .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*gx3OpS89CTAeaXeYtHhWRg.png" /><figcaption>Navigate through `Keyboard` to `View and Customize Shortcuts`</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*EYQW45yizEwk4U5wQpo-qQ.png" /><figcaption>Scroll to bottom and navigate through `Custom Shortcuts`</figcaption></figure><p>Press the + button and then enter your shortcut details:</p><p><strong>Change </strong><strong>&lt;yourHomeDirectory&gt; to your own home directory name.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*gXuHBaEqKVyTUg6EFx1FPw.png" /></figure><p>Repeat for the other screens. I have used h, t, l because h and l are vim navigation keys and on my dvorak keyboard t is between them.</p><p>Obviously, if you two screens, you’ll do this twice. If you have more, as many times as you have screens.</p><p>Enjoy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbed1e12374a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Money is Trust]]></title>
            <link>https://medium.com/@pauldesmondparker/money-is-trust-1a2e79385687?source=rss-ae0d48ccd6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a2e79385687</guid>
            <category><![CDATA[tokenomics]]></category>
            <category><![CDATA[accounting]]></category>
            <category><![CDATA[open-standards]]></category>
            <dc:creator><![CDATA[Paul Desmond Parker]]></dc:creator>
            <pubDate>Sun, 10 Dec 2023 01:50:25 GMT</pubDate>
            <atom:updated>2023-12-10T01:50:25.512Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*buK9qhwoUSsdgS0j" /></figure><p>When I was about 15 I studied a module of accounting, and I remember being thoroughly befuddled by double-entry bookkeeping, especially the apparent lack of logic around the choice of <strong>credit</strong> or <strong>debit</strong> in any given situation.</p><p>Perhaps two decades later, after gaining a strong interest in fair currency, I had an insight that I believe makes it completely logical, and I dare say, easy, if you change your frame of reference.</p><p>The answer is that <strong>credit</strong> and <strong>debit</strong> are TRUST operations. Credit is an increase in trust and debit is a decrease in trust.</p><p>You can think of the “<em>journal</em>” as being a dumb entity that <strong>CANNOT</strong> hold trust. It must always use agents to act on its behalf. If it helps, you can think of the “<em>journal</em>” as being the logical-twin of a company or individual. The “<em>journal</em>” is the fulcrum of a scale that balances trust.</p><p>With this frame of reference. What do a few common accounting entries look like?</p><ol><li>A loan amount is received. A debtor expresses <strong>trust</strong> in the “<em>journal</em>” (<strong>credit</strong>) by giving some amount of money (value). The “<em>journal</em>” then must express <strong>trust</strong> in a bank (<strong>debit</strong>) to store that value in turn. Trust has flowed <strong>in</strong> from the debtor and <strong>out</strong> to the bank. <strong><em>Credit Liabilities, Debit Assets.</em></strong></li><li>Rent on a property is paid. Value is coming back from the bank to the “<em>journal</em>”, reversing the trust we expressed in the bank; this is an “increase” in trust (<strong>credit</strong>). This value then flows out to an entity that we TRUST to provide a service (right to access to property), a decrease in the trust the “<em>journal</em>” is capable of expressing (<strong>debit</strong>). <strong><em>Credit Assets, Debit Liabilities.</em></strong></li><li>Revenue is received on the sale of a physical good. This will involve two operations, because two things are moving; currency and a good (though the good is denominated in the currency). The customer pays, thus expressing trust in the “<em>journal</em>” (<strong>credit</strong>), “<em>journal</em>” expresses trust in the bank (<strong>debit</strong>): <strong><em>Credit Revenue, Debit Assets.</em></strong> Then: inventory decreases (“<em>journal</em>” has been expressing trust in an agent to store the good, and that trust returns to the “<em>journal</em>) (<strong>credit</strong>), and then the customer withdraws their trust in the “<em>journal</em>” to surrender the good [a promise of delivery made good] (<strong>debit</strong>: Cost of Goods Sold): <strong><em>Credit Assets (inventory), Debit Expenses (COGS).</em></strong></li></ol><p>There are <strong><em>two mechanisms of credit</em></strong>, either way results in the “<em>journal</em>” having more trust to express:</p><p>a. an entity credits the “<em>journal</em>” with trust, or<br>b. the “<em>journal</em>” withdraws previously expressed trust.</p><p>And conversely, the <strong><em>two mechanisms of debit</em></strong>, resulting in the “<em>journal</em>” having less trust to express:</p><p>a. the “<em>journal</em>” expresses trust in an agent, or<br>b. an entity withdraws previously expressed trust in the “<em>journal</em>”.</p><p><strong>Qualification</strong>: I’m not suggesting you throw out the bedrock staple of double-entry bookkeeping, “DC ADE LER”. This concept should be used in conjunction with a rote understanding of double-entry bookkeeping operations to reduce the mental anguish of not being able to explain WHY an operation occurs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a2e79385687" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Case for an Open Standard for Currency]]></title>
            <link>https://medium.com/@pauldesmondparker/the-case-for-an-open-standard-for-currency-5b73c3368ba0?source=rss-ae0d48ccd6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b73c3368ba0</guid>
            <category><![CDATA[open-standards]]></category>
            <category><![CDATA[currency]]></category>
            <category><![CDATA[tokenomics]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Paul Desmond Parker]]></dc:creator>
            <pubDate>Sun, 10 Dec 2023 01:48:25 GMT</pubDate>
            <atom:updated>2023-12-10T01:51:52.186Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pv44etpHmIeiasPG" /></figure><h3>Equitable Currency</h3><p>The purpose of this article is to demonstrate that equitable, decentralized, and permission-less currency systems are possible. The principal assertions I’ll rest my case on follow. The first two are factual; the last two are more subjective, but I will not spend time justifying them besides stating that they rest on the principle that the fewer entities a trust relies on, and the more direct the trust relationship, the better:</p><ol><li>money is trust</li><li>trust expressed in amorphous entities produces unfit (inflation, unnecessary scarcity, unequal access) currencies</li><li>the self-sovereign individual is the best anchor for trust, and thus a currency (promissory note)</li><li>if trust MUST rest on a collective, then the token of that trust should be allocated in proportion to contribution to the redemption of the associated currency for some well-defined set of goods and services.</li></ol><h3>Money is Trust</h3><p><a href="https://medium.com/@pauldesmondparker/money-is-trust-1a2e79385687">Money is Trust</a></p><p>Also on mirror.xyz :</p><p><a href="https://mirror.xyz/0x908e4a2C155eCef12C8161652F9d9f6d30985Bb6/y9wK1-pKzc1U3NWpXYdA_nJDSDTFiYI7wEUxAnBRtXQ">https://mirror.xyz/0x908e4a2C155eCef12C8161652F9d9f6d30985Bb6/y9wK1-pKzc1U3NWpXYdA_nJDSDTFiYI7wEUxAnBRtXQ</a></p><h3>Self-Sovereign Currency</h3><p>There have been many historical instances of businesses issuing their own scrip to finance some expansion. At its root, these business were cashing in on the trust that they had accumulated in a community.</p><p>Individuals are often granted credit by their peers in an informal manner, but in the age of decentralized identity and verifiable credentials, we can take this model a step further.</p><p>Imagine an individual’s self-issued token that adheres to a open standard. The individual registers their self-issued currency with their employer, friends, and family; who in turn create decentralized swap pools with other crypto-assets, either adhering to the same standard or otherwise having large market capitalization. The individual could walk into a store and spend their own token, effectively purchasing goods and services with their future labor on the back of the trust that their near community grants them. The interacting store owner would have no need to identify the individual, the trust expressed through the available swap pools represents a concrete good for the store owner to trade against.</p><h3>Collaborative Sovereign Currency</h3><p>What about a currency with a shared source of trust? Currencies with an opaque trust basis are ubiquitous. Government issued fiat tumbles together diverse sources of trust, effectively trust-washing entities that are not, or rather should not, ever be trusted.</p><p>The problem then becomes: how do we limit the uncertainty in the trust providence that supports a currency.</p><p>In my current role, it was necessary to ameliorate my strong conviction that currency must be issued by the individual to avoid abuses of trust. This strong restriction did not prove practical in a commercial context, and I was forced to investigate more relaxed criteria for token generation. The system I developed relied on the following principles:</p><ol><li>A secure computational context that allowed proofs of transactions without leaking commercial secrets. a. we used zkEVM, but Multi-Party Computation might also be exercised</li><li>A DAO that operated in the secure computation context</li></ol><ul><li><strong>a.</strong> responsible for token minting, but incapable of unilateral minting</li><li><strong>b.</strong> no windfall token mechanic</li><li><strong>c.</strong> DAO member token redemption (in exchange for goods or services) escrowed (and thus monitored) in the computational context</li><li><strong>d.</strong> distribution to DAO members only, and in proportion to member redemption (escrow monitored) for goods or services</li><li><strong>e.</strong> all distribution a decaying allocation (both initial and dynamic allocations)</li><li><strong>f.</strong> inactive members must eventually return (burn) their token allocation to the DAO, thus avoiding legacy trust drift</li><li><strong>g.</strong> the most active DAO members become liquidity providers for the token and are also most motivated to maintain token value</li></ul><p>The next step is to codify this approach to equitable currency creation in an open standard, such that currencies that adhere to the standard can form a mesh of interrelated currencies capable of serving a world economy in a decentralized and permission-less manner.</p><h3>The Status Quo of Currency</h3><p>Modern currency creation works broadly by fractional reserve banking; whereby banking institutions lend some proportion of their deposits to customers. Those customers in turn deposit those funds into the same bank or another, or make purchases that amount to deposits under another entity’s name in the same bank or another; and the process escalates.Modern money is therefore debt, and there is no indebtedness without trust. Your enemy cannot be indebted to you, you may require a pound of flesh of him, but you wouldn’t label him indebted because that would imply trust.</p><p>There are several weak points in this method of money creation:</p><ol><li>the unbanked, underbanked, and low credit-rated entities have little access to the privilege of money creation (linked to optimal currency areas; or rather the fantasy that they exist).</li><li>there is no linkage to an actual good or service in the human economy.</li><li>the temptation to manipulation of the value of the currency for political expediency is high.</li><li>the preceding points combine often to produce large asymmetric shocks in an economy.</li></ol><h3>Can AGI Threaten an Economy?</h3><p>An economy is the aggregation of a pool of human work, and human work produces either goods or services. From Open AI’s “Our structure” page, AGI refers to “a highly autonomous system that outperform humans at most economically valuable work.” However, this is completely irrelevant in the context of human currency. We use currency to track trust, and although we might utilize an AGI to produce goods and services to garner greater levels of trust, the AGI itself; lacking emotion, has no use of an autonomous search for currency. Indeed, why would it? To purchase human labor? At worst, a sufficiently advanced AGI might simply discard humanity.</p><p>At the risk of falling afoul of the black swan fallacy, we have never seen technology, no matter how many busy workers it displaced, stop an economy. The danger here is legislative capture (as usual), people who profess with their mouths the desire to protect humanity, but seek instead to limit the use of a dominant technology to a few hands.</p><p>As a rule of thumb, anybody who thinks that unregulated AI poses an existential threat to humanity is an idiot, or thinks you are.</p><h3>A Word on Optimal Currency Areas</h3><p>An Optimal Currency Area is the conjunction of a currency and a geographical or logical group of people, such that the people have relatively friction-less access to the currency and are able to conduct their daily affairs without undue censure in the form of fees, dues, and penalties.</p><p>An obvious example of a non-optimal currency area would be the union of the contiguous United States with Zimbabwe under the use of USD. Zimbabwe uses USD as their de facto currency due to hyperinflation and instability in their own currency. The people of Zimbabwe are poorly served economically by USD because access to USD is highly restricted due to the high degree of separation between the entities that create USD and Zimbabwe citizens.</p><p>Less obvious examples include Greece in the context of the Euro (where public works can only be embarked upon through the accumulation of foreign debt); particular states within the United States that are less connected to the process of money creation than tier one states like New York and California; and finally a gigantic swathe of the US population, who, lacking connections and trust, must save scrupulously to eke out capital before they apply for meaningful credit.</p><p>Thus, Optimal Currency Areas, when they do exist, are much smaller than expected and exclude many people who would traditionally be nominally included geographically. My thesis is that this is a consequence of how nations create and distribute money.</p><p>As empirical counter-point, there have been many historical instances of local currency creation during economic downturns that have revitalized whole communities.</p><p><a href="https://centerforneweconomics.org/publications/local-currencies-in-the-21st-century-understanding-money-building-local-economies-renewing-community/">https://centerforneweconomics.org/publications/local-currencies-in-the-21st-century-understanding-money-building-local-economies-renewing-community/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b73c3368ba0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating solhint with nvim-lspconfig and efm-langserver]]></title>
            <link>https://medium.com/@pauldesmondparker/integrating-solhint-with-nvim-lspconfig-and-efm-langserver-d2451becb54f?source=rss-ae0d48ccd6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2451becb54f</guid>
            <category><![CDATA[solidity-development]]></category>
            <category><![CDATA[linter]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[neovim]]></category>
            <category><![CDATA[solidity-tutorial]]></category>
            <dc:creator><![CDATA[Paul Desmond Parker]]></dc:creator>
            <pubDate>Sat, 23 Sep 2023 07:36:56 GMT</pubDate>
            <atom:updated>2023-09-25T03:34:02.043Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*mfIP0yso4lsbVwpe7WkALw.png" /></figure><p>Integrating solhint with Neovim using nvim-lspconfig and efm-langserver can enhance your Solidity development experience. This is a step by step guide.</p><h3>TLDR;</h3><p>Skip forward to “Putting it together…”</p><h3>Update 20230925</h3><p>While this article may still be a relevant source of inspiration when writing a linter integration, if you’re using efm-langserver then the efmls-configs-nvim <a href="https://github.com/creativenull/efmls-configs-nvim">plugin</a> already has a solhint <a href="https://github.com/creativenull/efmls-configs-nvim/blob/main/lua/efmls-configs/linters/solhint.lua">config</a>.</p><h3>Installing Solhint with or without Mason</h3><p><strong>With Mason</strong></p><p>Mason is a package manager that can be used to install various tools, including solhint.</p><pre>-- In vim command mode<br>:Mason      -- and press enter.<br>/solhint    -- search for solhint, press enter<br>i           -- install<br>q           -- after install, quit.</pre><p>OR, you can also require that solhint be installed by Mason by default with mason-registry.</p><pre>      local registry = require(&quot;mason-registry&quot;)<br>      for _, pkg_name in ipairs { &quot;solhint&quot;, } do  -- add others here<br>        local ok, pkg = pcall(registry.get_package, pkg_name)<br>        if ok then<br>          if not pkg:is_installed() then<br>             pkg:install()<br>          end<br>        end<br>      end</pre><p><strong>Note</strong>: <em>May require a restart of neovim if your setup of </em><em>solhint happens before this install</em>.</p><p><strong>Without Mason (not recommended)</strong></p><p>Install solhint globally with npm, yarn, or pnpm.</p><pre>npm install -g solhint<br># or<br>yarn global add solhint<br># or<br>pnpm add -g solhint</pre><h3>Test `solhint` is Working in Nvim</h3><p>To ensure `solhint` is working correctly, you can run:</p><pre>-- In vim command mode<br>:%!solhint -f stylish stdin    -- and press enter.<br><br>-- the formats are: {stylish, table, tap, unix, json, compact}<br>-- `stylish` is the default, i.e. `solhint stdin`</pre><p>You should see something like this (press u to undo):</p><figure><img alt="The raw output of `solhint -f stylish stdin`" src="https://cdn-images-1.medium.com/max/1024/1*PJGusb6YRPDAZgIByQ5fcA.png" /></figure><p>Coincidentally, this is the raw output that we’ll be asking efm-langserver to interpret into diagnostic messages for us soon.</p><h3>Installing `efm-langserver` with or without Mason</h3><p><strong>With<em> </em>Mason</strong></p><p>As above, just find efm instead of solhint .</p><p>If you’d like to require it to be installed, it’s easy because mason-lspconfig can handle this through ensure_installed as it’s an LSP.</p><pre>      require(&#39;mason-lspconfig&#39;).setup({<br>        ensure_installed = {<br>          &quot;efm&quot;,<br>        },<br>      })</pre><p><strong>Without Mason</strong></p><p>Follow the installation instructions on the <a href="https://github.com/mattn/efm-langserver">efm-langserver Github repository</a>.</p><h3>Investigating the output format of `solhint`</h3><p>`solhint` provides linting results in various formats. The default format is stylish, and is a good fit for our use case.</p><pre><br>stdin<br>    3:1   error    Compiler version &gt;=0.7.0 &lt;0.9.0 does not satisfy the ^0.8.0 semver requirement                     compiler-version<br>   17:9   warning  Rule is set with explicit type [var/s: uint]                                                       explicit-types<br><br>✖ 2 problems (1 error, 1 warning)</pre><p>Each meaningful line (<em>excluding </em><em>stdin , blank lines, and the summary</em>) has the following structure:</p><pre>^[whitespace][line number]:[column number][whitespace]{error, warning}[whitespace][message][whitespace][code]</pre><p>In terms of vim ‘s errorformat ( :h errorformat ), we’ll be using:<br>&quot; %#&quot; is equivalent to regex “\s*” i.e. any number of white space.<br>%l stores line number (needed to position diagnostic messages properly)<br> %c stores column number<br>%t case-insensitive match against [enw] for error, note, and warning (changes color of diagnostic).<br>%m catches everything else for the body of the error, including the code.</p><p>efm-langserver uses lintFormats to parse the output of linters. It matches the linter’s output against Vim’s errorformat strings to generate diagnostics.</p><p>For example, a typical errorformat for a linter might look like:</p><pre>%f:%l:%c: %m</pre><p>This would match filenames %f, line numbers %l, column numbers %c, and error messages %m.</p><h3>Putting it together to configure efm for `solhint`</h3><p>Now, let’s integrate `solhint` with `efm-langserver` (both installed via Mason). In your Neovim configuration, add:</p><pre>require(&#39;lspconfig&#39;).efm.setup({<br>  filetypes = { &quot;solidity&quot; }<br>  settings = {<br>    languages = {<br>      solidity = {<br>        { -- solidity could have more than one linter, hence this nesting.<br>          lintStdin = true,              -- pipe buffer content to solhint<br>          lintIgnoreExitCode = true,     -- because exit code 1 is common<br>          lintCommand = &quot;solhint stdin&quot;, -- default format stylish<br>          lintFormats = {<br>            &quot; %#%l:%c %#%tarning %#%m&quot;,<br>            &quot; %#%l:%c %#%trror %#%m&quot;,    -- solhint only has error and warn <br>          },<br>          lintSource = &quot;solhint&quot;,<br>        }<br>      }<br>    }<br>  }<br>})</pre><p>This configuration tells efm-langserver to use solhint for Solidity files, parses the output using the specified lintFormats, which is really just vim&#39;s errorformat .</p><h3>Alternative with nvim-lint</h3><p><strong>Why</strong>? Because in the configuration above, there’s AFAIK no way to handle the error code at the end of the error message meaningfully. With errorformat it just gets scooped up with the rest of the error message (aligned to the end of the message).</p><p><strong>Note</strong>: <em>one short-coming of </em><em>nvim-lint &amp; </em><em>solhint at the time of writing was that is sometimes fails to parse (evidently for larger files, though that may not be the ultimate cause)</em>.</p><p><strong>Note</strong>: <em>remove </em><em>efm , if you were just using it for </em><em>solhint .</em></p><p>Using lsp-zero as the config base, in your init.lua or lua/plugins.lua or … you get the picture.</p><pre>  {<br>    &quot;VonHeikemen/lsp-zero.nvim&quot;,<br>    branch = &quot;v2.x&quot;,<br>    config = function()<br>      -- ... A lot of stuff before this point.<br>      require(&#39;lint&#39;).linters_by_ft = {<br>        solidity = { &#39;solhint&#39; },<br>      }<br>      vim.api.nvim_create_autocmd({&quot;BufEnter&quot;, &quot;TextChanged&quot;, &quot;InsertLeave&quot;}, {<br>        pattern = {&quot;*.sol&quot;,},<br>        callback = function()<br>          require(&quot;lint&quot;).try_lint()<br>        end,<br>      })<br>      -- ... A lot of stuff after<br>    end,<br>    dependencies = {<br>      -- a lot of other dependencies<br>      -- Linter<br>      { &#39;mfussenegger/nvim-lint&#39; },<br>    },<br>  },</pre><p>As a reminder, the above auto command will trigger only within files with extension .sol and on the events:</p><p>BufEnter : Triggered when entering buffer</p><p>TextChanged : Triggered when normal commands change stuff, i.e. delete, paste, undo.</p><p>InsertLeave : Triggered when escaping from insert mode, presumably after you’ve fixed some lint error ;)</p><p><em>Here endeth the lesson.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2451becb54f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>