Comments (4)
Thanks for your help so far; I deleted the folder I made, ran micro -plugin list
, and indeed linter still shows up.
The biggest issue here is that I didn't realize that I needed to configure the linter inside the init function.
Thanks again!
from micro.
The linter plugin is already installed by default so you wouldn't need to download it to ~/.config/micro/plug/linter, I don't know if this could be causing an error.
One thing to test is to remove the ~/.config/micro/plug/linter folder.
Or something that could be happening is that the command is not installed.
How are you adding the linter?
from micro.
I added the linter by downloading the lua file to the directory ~/.config/micro/plug/linter
. I'll try removing ~/.config/micro/plug/linter
, but what should I expect to happen?
from micro.
To add a linter you need to create the file ~/.config/micro/init.lua
.
This is a plugin that you create to write your configurations in lua.
In it you create an init()
function globally, the micro will call this callback when it starts. Within this callback you could define your linters.
Example:
-- ~/.config/micro/init.lua
function init()
linter.makeLinter('tsc', 'typescript', 'tsc', {'--noEmit', '--pretty', 'false'}, '%f%(%l,%c%): %m')
end
Enter the command bar with Ctrl-e
and type help linter
to see more plugin help.
from micro.
Related Issues (20)
- Copy from micro to another program does not work when micro running over ssh from Git Bash HOT 5
- Big file is freeze the micro for a while HOT 2
- Feature request: inline options HOT 4
- > replace powerful or confusing? HOT 2
- Cut command is very slowly on Windows Terminal HOT 4
- Is the BufWindow the same as BufPane? HOT 1
- Nightly builds are not the current master branch 😭 HOT 2
- Not working command and comnand switch HOT 2
- Micro 2.0.13 (Windows only) crashes when selecting a directory with "open" HOT 1
- IsWhitespace from util package not working HOT 6
- Alt-Shift-Left or Alt-Shift-Right are not recognized desipte getting detected in raw HOT 2
- Disable micro auto formatting bindings.json when adding new bindings HOT 1
- Garbled contents when reloading file with DOS line endings HOT 4
- Inconsistent keybindings behavior for Alt Shift Combinations HOT 4
- file manager plugin .. go up not work HOT 2
- Feature Request: Editor Width/Margins HOT 2
- JumpToMatchingBrace inconsistent with adjacent unpaired braces e.g. )[ or }( or )( HOT 8
- disable error HOT 2
- Confusion over missing bindings
- Differing copy-paste mechanics between tmux and non-tmux
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micro.