Up.
This commit is contained in:
parent
be50a7738f
commit
16253c1cbe
166
home/dot_config/lvim/after/syntax/arduino.vim
Normal file
166
home/dot_config/lvim/after/syntax/arduino.vim
Normal file
@ -0,0 +1,166 @@
|
||||
" Vim syntax file
|
||||
" Language: Arduino
|
||||
" Maintainer: Sudar <sudar@sudarmuthu.com>
|
||||
" Original Author: Johannes Hoff <johannes@johanneshoff.com>
|
||||
" Last Change: 27 April 2015
|
||||
" License: VIM license (:help license, replace vim by arduino.vim)
|
||||
|
||||
" Syntax highlighting like in the Arduino IDE
|
||||
|
||||
" Thanks to original author Johannes Hoff and Rik, Erik Nomitch, Adam Obeng and Graeme Cross for helpful feedback!
|
||||
" Thanks to Rafi Khan for Arduino 1.5.x support
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Read the C syntax to start with
|
||||
if version < 600
|
||||
so <sfile>:p:h/cpp.vim
|
||||
else
|
||||
runtime! syntax/cpp.vim
|
||||
endif
|
||||
|
||||
"C:/Program Files (x86)/Arduino\hardware\arduino\avr\libraries\EEPROM\keywords.txt{{{
|
||||
syn keyword arduinoConstant EEPROM
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\hardware\arduino\avr\libraries\SoftwareSerial\keywords.txt{{{
|
||||
syn keyword arduinoFunc SoftwareSerial begin end read write available isListening overflow flush listen
|
||||
syn keyword arduinoFunc peek
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\hardware\arduino\avr\libraries\SPI\keywords.txt{{{
|
||||
syn keyword arduinoConstant SPI SPI_CLOCK_DIV4 SPI_CLOCK_DIV16 SPI_CLOCK_DIV64 SPI_CLOCK_DIV128 SPI_CLOCK_DIV2 SPI_CLOCK_DIV8 SPI_CLOCK_DIV32 SPI_CLOCK_DIV64 SPI_MODE0
|
||||
syn keyword arduinoConstant SPI_MODE1 SPI_MODE2 SPI_MODE3
|
||||
syn keyword arduinoFunc begin end transfer setBitOrder setDataMode setClockDivider
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\hardware\arduino\avr\libraries\Wire\keywords.txt{{{
|
||||
syn keyword arduinoFunc begin setClock beginTransmission endTransmission requestFrom send receive onReceive onRequest Wire
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\hardware\arduino\sam\libraries\SPI\keywords.txt{{{
|
||||
syn keyword arduinoConstant SPI SPI_MODE0 SPI_MODE1 SPI_MODE2 SPI_MODE3 SPI_CONTINUE SPI_LAST
|
||||
syn keyword arduinoFunc begin end transfer setDataMode setClockDivider
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\hardware\arduino\sam\libraries\Wire\keywords.txt{{{
|
||||
syn keyword arduinoFunc begin setClock beginTransmission endTransmission requestFrom send receive onReceive onRequest Wire
|
||||
syn keyword arduinoFunc Wire1
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\lib\keywords.txt{{{
|
||||
syn keyword arduinoConstant HIGH LOW INPUT INPUT_PULLUP INPUT_PULLDOWN OUTPUT DEC BIN HEX OCT PI
|
||||
syn keyword arduinoConstant HALF_PI TWO_PI LSBFIRST MSBFIRST CHANGE FALLING RISING DEFAULT EXTERNAL INTERNAL
|
||||
syn keyword arduinoConstant INTERNAL1V1 INTERNAL2V56
|
||||
syn keyword arduinoType boolean break byte case char class const continue default do
|
||||
syn keyword arduinoType double else false float for if int long new null
|
||||
syn keyword arduinoType private protected public register return short signed static String switch
|
||||
syn keyword arduinoType this throw try true unsigned void while word boolean byte
|
||||
syn keyword arduinoType char float int long word
|
||||
syn keyword arduinoFunc abs acos asin atan atan2 ceil constrain cos degrees exp
|
||||
syn keyword arduinoFunc floor log map max min radians random randomSeed round sin
|
||||
syn keyword arduinoFunc sq sqrt tan pow bitRead bitWrite bitSet bitClear bit highByte
|
||||
syn keyword arduinoFunc lowByte analogReference analogRead analogWrite attachInterrupt detachInterrupt delay delayMicroseconds digitalWrite digitalRead
|
||||
syn keyword arduinoFunc interrupts millis micros noInterrupts noTone pinMode pulseIn shiftIn shiftOut tone
|
||||
syn keyword arduinoFunc yield
|
||||
syn keyword arduinoIdentifier Serial Serial1 Serial2 Serial3
|
||||
syn keyword arduinoFunc SerialUSB begin end peek read
|
||||
syn keyword arduinoFunc print println available availableForWrite flush setTimeout find findUntil parseInt parseFloat
|
||||
syn keyword arduinoFunc readBytes readBytesUntil readString readStringUntil trim toUpperCase toLowerCase charAt compareTo concat
|
||||
syn keyword arduinoFunc endsWith startsWith equals equalsIgnoreCase getBytes indexOf lastIndexOf length replace setCharAt
|
||||
syn keyword arduinoFunc substring toCharArray toInt Keyboard Mouse press release releaseAll accept click
|
||||
syn keyword arduinoFunc move isPressed setup loop
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Audio\keywords.txt{{{
|
||||
syn keyword arduinoFunc Audio prepare write
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Bridge\keywords.txt{{{
|
||||
syn keyword arduinoConstant FILE_READ FILE_WRITE FILE_APPEND
|
||||
syn keyword arduinoFunc Bridge FileIO FileSystem Console Process Mailbox HttpClient YunServer YunClient begin
|
||||
syn keyword arduinoFunc end available read peek write flush bool transfer put get
|
||||
syn keyword arduinoFunc buffer noBuffer connected File seek position size close name isDirectory
|
||||
syn keyword arduinoFunc openNextFile rewindDirectory addParameter runAsynchronously run running exitValue runShellCommand runShellCommandAsynchronously readMessage
|
||||
syn keyword arduinoFunc writeMessage writeJSON message Available getAsynchronously ready getResult accept stop connect connected
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Esplora\keywords.txt{{{
|
||||
syn keyword arduinoConstant JOYSTICK_BASE MAX_CHANNELS CH_SWITCH_1 CH_SWITCH_2 CH_SWITCH_3 CH_SWITCH_4 CH_SLIDER CH_LIGHT CH_TEMPERATURE CH_MIC
|
||||
syn keyword arduinoConstant CH_JOYSTICK_SW CH_JOYSTICK_X CH_JOYSTICK_Y SWITCH_1 SWITCH_2 SWITCH_3 SWITCH_4 SWITCH_DOWN SWITCH_LEFT SWITCH_UP
|
||||
syn keyword arduinoConstant SWITCH_RIGHT JOYSTICK_DOWN JOYSTICK_LEFT JOYSTICK_UP PRESSED RELEASED DEGREES_C DEGREES_F X_AXIS Y_AXIS
|
||||
syn keyword arduinoConstant Z_AXIS
|
||||
syn keyword arduinoFunc Esplora begin readSlider readLightSensor readTemperature readMicrophone readJoystickSwitch readJoystickButton readJoystickX readJoystickY
|
||||
syn keyword arduinoFunc readAccelerometer readButton writeRGB writeRed writeGreen writeBlue readRed readGreen readBlue readBlue
|
||||
syn keyword arduinoFunc readBlue readBlue tone noTone
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Ethernet\keywords.txt{{{
|
||||
syn keyword arduinoFunc Ethernet EthernetClient EthernetServer IPAddress status connect write available read peek
|
||||
syn keyword arduinoFunc flush stop connected begin beginPacket endPacket parsePacket remoteIP remotePort
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Firmata\keywords.txt{{{
|
||||
syn keyword arduinoConstant MAX_DATA_BYTES DIGITAL_MESSAGE ANALOG_MESSAGE REPORT_ANALOG REPORT_DIGITAL REPORT_VERSION SET_PIN_MODE SYSTEM_RESET START_SYSEX END_SYSEX
|
||||
syn keyword arduinoConstant PWM TOTAL_ANALOG_PINS TOTAL_DIGITAL_PINS TOTAL_PORTS ANALOG_PORT
|
||||
syn keyword arduinoFunc Firmata callbackFunction systemResetCallbackFunction stringCallbackFunction sysexCallbackFunction begin begin printVersion blinkVersion printFirmwareVersion
|
||||
syn keyword arduinoFunc setFirmwareVersion setFirmwareNameAndVersion available processInput sendAnalog sendDigital sendDigitalPortPair sendDigitalPort sendString sendString
|
||||
syn keyword arduinoFunc sendSysex attach detach flush
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\GSM\keywords.txt{{{
|
||||
syn keyword arduinoConstant GSM GSM_SMS GPRS GSMPIN GSMPIN ERROR IDLE CONNECTING GSM_READY GPRS_READY
|
||||
syn keyword arduinoConstant TRANSPARENT_CONNECTED IDLE_CALL CALLING RECEIVINGCALL TALKING GSM_MODE_UNDEFINED GSM_MODE_EGSM GSM_MODE_DCS GSM_MODE_PCS GSM_MODE_EGSM_DCS
|
||||
syn keyword arduinoConstant GSM_MODE_GSM850_PCS GSM_MODE_GSM850_EGSM_DCS_PCS
|
||||
syn keyword arduinoFunc GSMVoiceCall GSMClient GSMServer GSMModem GSMScanner begin shutdown gatVoiceCallStatus ready voiceCall
|
||||
syn keyword arduinoFunc answerCall hangCall retrieveCallingNumber beginSMS endSMS remoteNumber attachGPRS begnWrite endWrite getIMEI
|
||||
syn keyword arduinoFunc getCurrentCarrier getSignalStrength readNetworks isPIN checkPIN checkPUK changePIN switchPIN checkReg getPINUsed
|
||||
syn keyword arduinoFunc setPINUsed getBand setBand getvoiceCallStatus
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\LiquidCrystal\keywords.txt{{{
|
||||
syn keyword arduinoFunc LiquidCrystal begin clear home print setCursor cursor noCursor blink noBlink
|
||||
syn keyword arduinoFunc display noDisplay autoscroll noAutoscroll leftToRight rightToLeft scrollDisplayLeft scrollDisplayRight createChar setRowOffsets
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Scheduler\keywords.txt{{{
|
||||
syn keyword arduinoFunc Scheduler startLoop
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\SD\keywords.txt{{{
|
||||
syn keyword arduinoConstant SD FILE_READ FILE_WRITE
|
||||
syn keyword arduinoFunc File begin exists mkdir remove rmdir open close seek position
|
||||
syn keyword arduinoFunc size
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Servo\keywords.txt{{{
|
||||
syn keyword arduinoFunc Servo attach detach write read attached writeMicroseconds readMicroseconds
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\SpacebrewYun\keywords.txt{{{
|
||||
syn keyword arduinoFunc SpacebrewYun addPublish addSubscribe connect verbose monitor onMessage send onRangeMessage onStringMessage
|
||||
syn keyword arduinoFunc onBooleanMessage onCustomMessage onOpen onClose onError
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Stepper\keywords.txt{{{
|
||||
syn keyword arduinoFunc Stepper step setSpeed version direction speed
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\Temboo\keywords.txt{{{
|
||||
syn keyword arduinoFunc Temboo TembooChoreo begin setAccountName setAppKeyName setAppKey setChoreo setCredential setSavedInputs addInput
|
||||
syn keyword arduinoFunc addOutputFilter setSettingsFileToWrite setSettingsFileToRead
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\TFT\keywords.txt{{{
|
||||
syn keyword arduinoConstant TFT
|
||||
syn keyword arduinoFunc EsploraTFT
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\TFT\src\utility\keywords.txt{{{
|
||||
syn keyword arduinoFunc Adafruit_GFX Adafruit_ST7735 PImage drawPixel invertDisplay drawLine drawFastVLine drawFastHLine drawRect fillRect
|
||||
syn keyword arduinoFunc fillScreen drawCircle drawCircleHelper fillCircle fillCircleHelper drawTriangle fillTriangle drawRoundRect fillRoundRect drawBitmap
|
||||
syn keyword arduinoFunc drawChar setCursor setTextColor setTextSize setTextWrap height width setRotation getRotation newColor
|
||||
syn keyword arduinoFunc background fill noFill stroke noStroke text textWrap textSize circle point
|
||||
syn keyword arduinoFunc quad rect triangle loadImage image draw isValid
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\USBHost\keywords.txt{{{
|
||||
syn keyword arduinoFunc MouseController USBHost KeyboardController Task mouseMoved mouseDragged mousePressed mouseReleased getXChange getYChange
|
||||
syn keyword arduinoFunc getButton keyPressed keyReleased getModifiers getKey getOemKey
|
||||
"}}}
|
||||
"C:/Program Files (x86)/Arduino\libraries\WiFi\keywords.txt{{{
|
||||
syn keyword arduinoConstant SSID BSSID RSSI
|
||||
syn keyword arduinoFunc WiFi WiFiUdp Client Server firmwareVersion status connect write available config
|
||||
syn keyword arduinoFunc setDNS read flush stop connected begin disconnect macAddress localIP subnetMask
|
||||
syn keyword arduinoFunSec gatewayIP encryptionType getResult getSocket WiFiClient WiFiServer WiFiUDP beginPacket endPacket parsePacket
|
||||
syn keyword arduinoFunc remoteIP remotePort
|
||||
"}}}
|
||||
|
||||
hi def link arduinoType Type
|
||||
hi def link arduinoConstant Constant
|
||||
hi def link arduinoFunc Function
|
||||
hi def link arduinoIdentifier Identifier
|
260
home/dot_config/lvim/after/syntax/asy.vim
Normal file
260
home/dot_config/lvim/after/syntax/asy.vim
Normal file
@ -0,0 +1,260 @@
|
||||
" Vim syntax file
|
||||
" Language: Asymptote
|
||||
" Maintainer: Andy Hammerlindl
|
||||
" Last Change: 2022 Jan 05
|
||||
|
||||
" Hacked together from Bram Moolenaar's C syntax file, and Claudio Fleiner's
|
||||
" Java syntax file.
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syn clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" useful C/C++/Java keywords
|
||||
syn keyword asyStatement break return continue unravel
|
||||
syn keyword asyConditional if else
|
||||
syn keyword asyRepeat while for do
|
||||
syn keyword asyExternal access from import include
|
||||
syn keyword asyOperator new operator
|
||||
|
||||
" basic asymptote keywords
|
||||
syn keyword asyConstant VERSION
|
||||
syn keyword asyConstant true false default infinity inf nan
|
||||
syn keyword asyConstant null nullframe nullpath nullpen
|
||||
syn keyword asyConstant intMin intMax realMin realMax
|
||||
syn keyword asyConstant realEpsilon realDigits
|
||||
syn keyword asyPathSpec and cycle controls tension atleast curl
|
||||
syn keyword asyStorageClass static public restricted private explicit
|
||||
syn keyword asyStructure struct typedef
|
||||
syn keyword asyType void bool bool3 int real string file
|
||||
syn keyword asyType pair triple transform guide path pen frame
|
||||
syn keyword asyType picture
|
||||
|
||||
" module specific keywords
|
||||
if exists("asy_syn_plain")
|
||||
syn keyword asyConstant currentpicture currentpen defaultpen
|
||||
syn keyword asyConstant inch inches cm mm bp pt up down right left
|
||||
syn keyword asyConstant E NE N NW W SW S SE
|
||||
syn keyword asyConstant ENE NNE NNW WNW WSW SSW SSE ESE
|
||||
syn keyword asyConstant I pi twopi
|
||||
syn keyword asyConstant CCW CW
|
||||
syn keyword asyConstant undefined sqrtEpsilon Align mantissaBits
|
||||
syn keyword asyConstant identity zeroTransform invert
|
||||
syn keyword asyConstant stdin stdout
|
||||
syn keyword asyConstant unitsquare unitcircle circleprecision
|
||||
syn keyword asyConstant solid dotted Dotted dashed dashdotted
|
||||
syn keyword asyConstant longdashed longdashdotted
|
||||
syn keyword asyConstant squarecap roundcap extendcap
|
||||
syn keyword asyConstant miterjoin roundjoin beveljoin
|
||||
syn keyword asyConstant zerowinding evenodd basealign nobasealign
|
||||
syn keyword asyConstant black white gray red green blue Cyan Magenta
|
||||
syn keyword asyConstant Yellow Black cyan magenta yellow palered
|
||||
syn keyword asyConstant palegreen paleblue palecyan palemagenta
|
||||
syn keyword asyConstant paleyellow palegray lightred lightgreen
|
||||
syn keyword asyConstant lightblue lightcyan lightmagenta lightyellow
|
||||
syn keyword asyConstant lightgray mediumred mediumgreen mediumblue
|
||||
syn keyword asyConstant mediumcyan mediummagenta mediumyellow
|
||||
syn keyword asyConstant mediumgray heavyred heavygreen heavyblue
|
||||
syn keyword asyConstant heavycyan heavymagenta lightolive heavygray
|
||||
syn keyword asyConstant deepred deepgreen deepblue deepcyan
|
||||
syn keyword asyConstant deepmagenta deepyellow deepgray darkred
|
||||
syn keyword asyConstant darkgreen darkblue darkcyan darkmagenta
|
||||
syn keyword asyConstant darkolive darkgray orange fuchsia chartreuse
|
||||
syn keyword asyConstant springgreen purple royalblue salmon brown
|
||||
syn keyword asyConstant olive darkbrown pink palegrey lightgrey
|
||||
syn keyword asyConstant mediumgrey grey heavygrey deepgrey darkgrey
|
||||
|
||||
if exists("asy_syn_texcolors")
|
||||
syn keyword asyConstant GreenYellow Yellow Goldenrod Dandelion
|
||||
syn keyword asyConstant Apricot Peach Melon YellowOrange Orange
|
||||
syn keyword asyConstant BurntOrange Bittersweet RedOrange Mahogany
|
||||
syn keyword asyConstant Maroon BrickRed Red OrangeRed RubineRed
|
||||
syn keyword asyConstant WildStrawberry Salmon CarnationPink Magenta
|
||||
syn keyword asyConstant VioletRed Rhodamine Mulberry RedViolet
|
||||
syn keyword asyConstant Fuchsia Lavender Thistle Orchid DarkOrchid
|
||||
syn keyword asyConstant Purple Plum Violet RoyalPurple BlueViolet
|
||||
syn keyword asyConstant Periwinkle CadetBlue CornflowerBlue
|
||||
syn keyword asyConstant MidnightBlue NavyBlue RoyalBlue Blue
|
||||
syn keyword asyConstant Cerulean Cyan ProcessBlue SkyBlue Turquoise
|
||||
syn keyword asyConstant TealBlue Aquamarine BlueGreen Emerald
|
||||
syn keyword asyConstant JungleGreen SeaGreen Green ForestGreen
|
||||
syn keyword asyConstant PineGreen LimeGreen YellowGreen SpringGreen
|
||||
syn keyword asyConstant OliveGreen RawSienna Sepia Brown Tan Gray
|
||||
syn keyword asyConstant Black White
|
||||
endif
|
||||
|
||||
if exists("asy_syn_x11colors")
|
||||
syn keyword asyConstant AliceBlue AntiqueWhite Aqua Aquamarine Azure
|
||||
syn keyword asyConstant Beige Bisque Black BlanchedAlmond Blue
|
||||
syn keyword asyConstant BlueViolet Brown BurlyWood CadetBlue
|
||||
syn keyword asyConstant Chartreuse Chocolate Coral CornflowerBlue
|
||||
syn keyword asyConstant Cornsilk Crimson Cyan DarkBlue DarkCyan
|
||||
syn keyword asyConstant DarkGoldenrod DarkGray DarkGreen DarkKhaki
|
||||
syn keyword asyConstant DarkMagenta DarkOliveGreen DarkOrange
|
||||
syn keyword asyConstant DarkOrchid DarkRed DarkSalmon DarkSeaGreen
|
||||
syn keyword asyConstant DarkSlateBlue DarkSlateGray DarkTurquoise
|
||||
syn keyword asyConstant DarkViolet DeepPink DeepSkyBlue DimGray
|
||||
syn keyword asyConstant DodgerBlue FireBrick FloralWhite ForestGreen
|
||||
syn keyword asyConstant Fuchsia Gainsboro GhostWhite Gold Goldenrod
|
||||
syn keyword asyConstant Gray Green GreenYellow Honeydew HotPink
|
||||
syn keyword asyConstant IndianRed Indigo Ivory Khaki Lavender
|
||||
syn keyword asyConstant LavenderBlush LawnGreen LemonChiffon
|
||||
syn keyword asyConstant LightBlue LightCoral LightCyan
|
||||
syn keyword asyConstant LightGoldenrodYellow LightGreen LightGrey
|
||||
syn keyword asyConstant LightPink LightSalmon LightSeaGreen
|
||||
syn keyword asyConstant LightSkyBlue LightSlateGray LightSteelBlue
|
||||
syn keyword asyConstant LightYellow Lime LimeGreen Linen Magenta
|
||||
syn keyword asyConstant Maroon MediumAquamarine MediumBlue
|
||||
syn keyword asyConstant MediumOrchid MediumPurple MediumSeaGreen
|
||||
syn keyword asyConstant MediumSlateBlue MediumSpringGreen
|
||||
syn keyword asyConstant MediumTurquoise MediumVioletRed MidnightBlue
|
||||
syn keyword asyConstant MintCream MistyRose Moccasin NavajoWhite
|
||||
syn keyword asyConstant Navy OldLace Olive OliveDrab Orange
|
||||
syn keyword asyConstant OrangeRed Orchid PaleGoldenrod PaleGreen
|
||||
syn keyword asyConstant PaleTurquoise PaleVioletRed PapayaWhip
|
||||
syn keyword asyConstant PeachPuff Peru Pink Plum PowderBlue Purple
|
||||
syn keyword asyConstant Red RosyBrown RoyalBlue SaddleBrown Salmon
|
||||
syn keyword asyConstant SandyBrown SeaGreen Seashell Sienna Silver
|
||||
syn keyword asyConstant SkyBlue SlateBlue SlateGray Snow SpringGreen
|
||||
syn keyword asyConstant SteelBlue Tan Teal Thistle Tomato Turquoise
|
||||
syn keyword asyConstant Violet Wheat White WhiteSmoke Yellow
|
||||
syn keyword asyConstant YellowGreen
|
||||
endif
|
||||
|
||||
if exists("asy_syn_three")
|
||||
syn keyword asyType path3 guide3 transform3
|
||||
syn keyword asyType projection light material patch surface tube
|
||||
syn keyword asyConstant currentprojection currentlight defaultrender
|
||||
syn keyword asyConstant identity4 O X Y Z
|
||||
syn keyword asyConstant nolight nullpens
|
||||
syn keyword asyConstant unitsphere unithemisphere unitplane octant1
|
||||
syn keyword asyConstant unitcone unitsolidcone unitcube unitcylinder
|
||||
syn keyword asyConstant unitdisk unittube
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
" string constants
|
||||
syn region asyCString start=+'+ end=+'+ skip=+\\\\\|\\'+ contains=asyCSpecial
|
||||
syn match asyCSpecial display contained +\\\(['"?\\abfnrtv]\|\o\{1,3}\)+
|
||||
syn match asyCSpecial display contained +\\\(x[0-9A-F]\{1,2\}\|$\)+
|
||||
" double quoted strings only special character is \"
|
||||
syn region asyString start=+"+ end=+"+ skip=+\\\\\|\\"+ contains=asySpecial
|
||||
syn match asySpecial display contained +\(\\\)\@1<!\(\\\\\)*\zs\\"+
|
||||
|
||||
|
||||
" number constants
|
||||
syn match asyNumbers display transparent "\<\d\|\.\d"
|
||||
\ contains=asyNumber,asyNumberError
|
||||
syn match asyNumber display contained "\d*\.\=\d*\(e[-+]\=\d\+\)\="
|
||||
" highlight number constants with two '.' or with '.' after an 'e'
|
||||
syn match asyNumberError display contained "\d*\.\(\d\|e[-+]\=\)*\.[0-9.]*"
|
||||
syn match asyNumberError display contained "\d*e[-+]\=\d*\.[0-9.]*"
|
||||
syn match asyNumberError display contained "\d*e[-+]\=\(e[-+]\=\)*\.[0-9.]*"
|
||||
|
||||
|
||||
" comments and comment strings
|
||||
syn keyword asyTodo contained TODO FIXME XXX
|
||||
syn sync ccomment asyComment minlines=15
|
||||
if exists("asy_comment_strings")
|
||||
" A comment can contain asyString, asyCString, and asyNumber. But a "*/"
|
||||
" inside a asy*String in a asyComment DOES end the comment! So we need to
|
||||
" use a special type of asy*String: asyComment*String, which also ends on
|
||||
" "*/", and sees a "*" at the start of the line as comment again.
|
||||
" Unfortunately this doesn't very well work for // type of comments :-(
|
||||
syn match asyCommentSkip contained "^\s*\*\($\|\s\+\)"
|
||||
syn region asyCommentString contained start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
\ end=+\*/+me=s-1
|
||||
\ contains=asySpecial,asyCommentSkip
|
||||
syn region asyCommentCString contained start=+'+ skip=+\\\\\|\\'+ end=+'+
|
||||
\ end=+\*/+me=s-1
|
||||
\ contains=asyCSpecial,asyCommentSkip
|
||||
syn region asyCommentLString contained start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
\ end="$" contains=asySpecial
|
||||
syn region asyCommentLCString contained start=+'+ skip=+\\\\\|\\'+ end=+'+
|
||||
\ end="$" contains=asyCSpecial
|
||||
syn region asyCommentL start="//" skip="\\$" end="$" keepend
|
||||
\ contains=asyTodo,asyCommentLString,
|
||||
\ asyCommentLCString,asyNumbers
|
||||
syn region asyComment matchgroup=asyComment start="/\*" end="\*/"
|
||||
\ contains=asyTodo,asyCommentStartError,
|
||||
\ asyCommentString,asyCommentCString,asyNumbers
|
||||
else
|
||||
syn region asyCommentL start="//" skip="\\$" end="$" keepend
|
||||
\ contains=asyTodo
|
||||
syn region asyComment matchgroup=asyComment start="/\*" end="\*/"
|
||||
\ contains=asyTodo,asyCommentStartError
|
||||
endif
|
||||
|
||||
" highlight common errors when starting/ending C comments
|
||||
syn match asyCommentError display "\*/"
|
||||
syn match asyCommentStartError display "/\*"me=e-1 contained
|
||||
|
||||
|
||||
" delimiter matching errors
|
||||
syn region asyCurly transparent start='{' end='}'
|
||||
\ contains=TOP,asyCurlyError
|
||||
syn region asyBrack transparent start='\[' end='\]' matchgroup=asyError
|
||||
\ end=';' contains=TOP,asyBrackError
|
||||
syn region asyParen transparent start='(' end=')' matchgroup=asyError
|
||||
\ end=';' contains=TOP,asyParenError
|
||||
syn match asyCurlyError display '}'
|
||||
syn match asyBrackError display '\]'
|
||||
syn match asyParenError display ')'
|
||||
" for (;;) constructs are exceptions that allow ; inside parenthesis
|
||||
syn region asyParen transparent matchgroup=asyParen
|
||||
\ start='\(for\s*\)\@<=(' end=')'
|
||||
\ contains=TOP,asyParenError
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_asy_syn_inits")
|
||||
if version < 508
|
||||
let did_asy_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink asyCommentL asyComment
|
||||
HiLink asyConditional Conditional
|
||||
HiLink asyRepeat Repeat
|
||||
HiLink asyNumber Number
|
||||
HiLink asyNumberError asyError
|
||||
HiLink asyCurlyError asyError
|
||||
HiLink asyBracketError asyError
|
||||
HiLink asyParenError asyError
|
||||
HiLink asyCommentError asyError
|
||||
HiLink asyCommentStartError asyError
|
||||
HiLink asyOperator Operator
|
||||
HiLink asyStructure Structure
|
||||
HiLink asyStorageClass StorageClass
|
||||
HiLink asyExternal Include
|
||||
HiLink asyDefine Macro
|
||||
HiLink asyError Error
|
||||
HiLink asyStatement Statement
|
||||
HiLink asyType Type
|
||||
HiLink asyConstant Constant
|
||||
HiLink asyCommentString asyString
|
||||
HiLink asyCommentCString asyString
|
||||
HiLink asyCommentLString asyString
|
||||
HiLink asyCommentLCString asyString
|
||||
HiLink asyCommentSkip asyComment
|
||||
HiLink asyString String
|
||||
HiLink asyCString String
|
||||
HiLink asyComment Comment
|
||||
HiLink asySpecial SpecialChar
|
||||
HiLink asyCSpecial SpecialChar
|
||||
HiLink asyTodo Todo
|
||||
HiLink asyPathSpec Statement
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "c"
|
@ -93,6 +93,7 @@ require("user.whichkey").setup()
|
||||
lvim.builtin.treesitter.ensure_installed = {
|
||||
"bash",
|
||||
"c",
|
||||
"go",
|
||||
"java",
|
||||
"javascript",
|
||||
"json",
|
||||
@ -112,7 +113,7 @@ lvim.builtin.treesitter.ensure_installed = {
|
||||
|
||||
lvim.builtin.treesitter.ignore_install = { "comment" }
|
||||
lvim.builtin.treesitter.highlight.enable = true
|
||||
lvim.builtin.treesitter.highlight.disable( "latex" )
|
||||
lvim.builtin.treesitter.highlight.disable( "latex", "zsh" )
|
||||
lvim.builtin.treesitter.rainbow.enable = true
|
||||
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
" Vim filetype detection file
|
||||
" Language: Asymptote
|
||||
au BufNewFile,BufRead *.asy setfiletype asy
|
||||
au BufNewFile,BufRead *.asy setfiletype=asy
|
||||
|
@ -33,25 +33,25 @@ whk.register {
|
||||
|
||||
whk.register {
|
||||
["<localleader>"] = { -- to set a completly new using only the localleader key
|
||||
name = " LaTeX",
|
||||
name = "LaTeX",
|
||||
c = { "<cmd>VimtexCompileSS<CR>", "Single-shot compile project" },
|
||||
C = {
|
||||
name = " Compile",
|
||||
name = "Compile",
|
||||
s = { "<cmd>VimtexStop<CR>", "Stop compile" },
|
||||
c = { "<cmd>VimtexCompileSelected<CR>", "Compile Selected" },
|
||||
},
|
||||
d = { "<cmd>VimtexDocPackage<CR>", "Open Doc for package" },
|
||||
e = { "<cmd>VimtexErrors<CR>", "Look at the errors" },
|
||||
m = { "<cmd>VimtexToggleMain<CR>", "Toggle Main" },
|
||||
m = { '<cmd>VimtexToggleMain <bar> let @+ = expand("%:t")<CR>', "Toggle Main" },
|
||||
o = { "<cmd>VimtexView<CR>", "View pdf" },
|
||||
s = { "<cmd>VimtexStatus<CR>", "Look at the status" },
|
||||
T = {
|
||||
name = " TOC",
|
||||
name = "TOC",
|
||||
o = { "<cmd>VimtexTocOpen<CR>", "Open TOC" },
|
||||
t = { "<cmd>VimtexTocToggle<CR>", "Toggle TOC" },
|
||||
},
|
||||
V = {
|
||||
name = " VimTeX",
|
||||
name = "VimTeX",
|
||||
c = { "<CMD>edit /home/jeff/.config/lvim/ftplugin/tex.lua<CR>", "Edit configuration" },
|
||||
s = { "<CMD>edit /home/jeff/.config/lvim/luasnippets/tex.lua<CR>", "Edit snippets" },
|
||||
i = { "<cmd>VimtexInfo<CR>", "Vimtex Info" },
|
||||
@ -70,7 +70,11 @@ linters.setup({
|
||||
--
|
||||
local formatters = require("lvim.lsp.null-ls.formatters")
|
||||
formatters.setup({
|
||||
{ command = "latexindent", filetypes = { "tex" } },
|
||||
{
|
||||
command = "latexindent",
|
||||
args = { "-l=~/.config/latex/latexsettings" },
|
||||
filetypes = { "tex" }
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
File : conf.d/lvim/lua/user/dap.lua
|
||||
Author : Jeff Lance <email@jefflance.me>
|
||||
Date : 28.12.2023 21:34:48
|
||||
Last Modified Date: 06.01.2024 18:53:52
|
||||
Last Modified Date: 01.02.2024 12:47:04
|
||||
Last Modified By : Jeff Lance <email@jefflance.me>
|
||||
--]]--
|
||||
|
||||
|
@ -29,6 +29,11 @@ M.setup = function()
|
||||
require("lvim.lsp.manager").setup(
|
||||
"marksman", {
|
||||
})
|
||||
|
||||
require("lvim.lsp.manager").setup(
|
||||
"golangci_lint_ls", {
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
return M
|
||||
|
@ -111,6 +111,9 @@ M.setup = function()
|
||||
})
|
||||
end
|
||||
},
|
||||
-- {
|
||||
-- 'tpope/vim-dotenv',
|
||||
-- },
|
||||
-- gitignore
|
||||
{
|
||||
'jefflance/vim-gitignore',
|
||||
|
@ -15,6 +15,24 @@ M.setup = function()
|
||||
-- whichkey mappings
|
||||
--
|
||||
|
||||
-- chatgpt bindings
|
||||
lvim.builtin.which_key.mappings["C"] = {
|
||||
name = "ChatGPT",
|
||||
c = { "<cmd>ChatGPT<CR>", "ChatGPT" },
|
||||
e = { "<cmd>ChatGPTEditWithInstruction<CR>", "Edit with instruction", mode = { "n", "v" } },
|
||||
g = { "<cmd>ChatGPTRun grammar_correction<CR>", "Grammar Correction", mode = { "n", "v" } },
|
||||
t = { "<cmd>ChatGPTRun translate<CR>", "Translate", mode = { "n", "v" } },
|
||||
k = { "<cmd>ChatGPTRun keywords<CR>", "Keywords", mode = { "n", "v" } },
|
||||
d = { "<cmd>ChatGPTRun docstring<CR>", "Docstring", mode = { "n", "v" } },
|
||||
a = { "<cmd>ChatGPTRun add_tests<CR>", "Add Tests", mode = { "n", "v" } },
|
||||
o = { "<cmd>ChatGPTRun optimize_code<CR>", "Optimize Code", mode = { "n", "v" } },
|
||||
s = { "<cmd>ChatGPTRun summarize<CR>", "Summarize", mode = { "n", "v" } },
|
||||
f = { "<cmd>ChatGPTRun fix_bugs<CR>", "Fix Bugs", mode = { "n", "v" } },
|
||||
x = { "<cmd>ChatGPTRun explain_code<CR>", "Explain Code", mode = { "n", "v" } },
|
||||
r = { "<cmd>ChatGPTRun roxygen_edit<CR>", "Roxygen Edit", mode = { "n", "v" } },
|
||||
l = { "<cmd>ChatGPTRun code_readability_analysis<CR>", "Code Readability Analysis", mode = { "n", "v" } },
|
||||
}
|
||||
|
||||
-- remap neo-tree shortcut to rnvimr
|
||||
lvim.builtin.which_key.mappings["e"] = { "<CMD>RnvimrToggle<CR>", "File explorer" }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user