about summary refs log tree commit diff
path: root/pkgs/aszlig/vim
Commit message (Collapse)AuthorAgeFilesLines
* pkgs/vim: Add syntax/indent plugin for Fluentaszlig2020-08-141-0/+7
| | | | | | | | | | | | For translations there is a nice web interface called Pontoon[1], which should it make conventient to edit translations. However, for developers like me I'd call this quite inconvenient, so I need a Vim plugin to make it at least more pleasing to look at :-) [1]: https://github.com/mozilla/pontoon Signed-off-by: aszlig <aszlig@nix.build>
* vim: Update Nix addon to latest masteraszlig2020-08-081-2/+2
| | | | | | | | | | | | While being at it, let's bump the Nix syntax/indentation plugin to the latest version, since there are a few quirks that were annoying me since quite a while but I was too lazy to actually fix. I haven't checked whether the latest version fixes these quirks since I don't know them on top of my head, but if it doesn't I surely will stumble on them soon enough. Signed-off-by: aszlig <aszlig@nix.build>
* vim: No longer set termencoding to "ascii"aszlig2020-08-081-1/+0
| | | | | | | | | | So far I had termencoding set to "ascii", because my terminal was only really able to display ASCII characters and nothing else. Since this is no longer the case, we can also get rid of this restriction in my Vim configuration. Signed-off-by: aszlig <aszlig@nix.build>
* vim: Add vim-css-color pluginaszlig2020-05-081-1/+12
| | | | | | | | | | | | | This is quite useful in CSS files and others to directly highlight the colours in the actual colour value rather than with the generic colour of the syntax file. To make sure we don't break the after/syntax files for Haskell and HTML, I also changed the way we install those files in the output directory so that if a file already exists, it is appended to rather than overwritten. Signed-off-by: aszlig <aszlig@nix.build>
* vim: Remove file artifacts for ATS syntax pluginaszlig2020-05-081-2/+3
| | | | | | | | | | | We essentially only want to have the ftdetect and syntax files, everything else is just cruft that is not in any way related to Vim. Ideally we want to do a whitelist approach instead of the "remove everything unneeded" we're doing right now, but since I don't want to refactor the whole Vim expression I'll leave it the dirty[TM] way. Signed-off-by: aszlig <aszlig@nix.build>
* vim: Add syntax highlighting/indent for PureScriptaszlig2019-10-121-0/+7
| | | | | | | | This probably needs a bit of refinement when it comes to indentation, but at least we get proper syntax highlighting, which is the main point here. Signed-off-by: aszlig <aszlig@nix.build>
* vim: Exempt xt and strace from linelen highlightaszlig2019-08-031-2/+2
| | | | | | | | Both strace and xt are trace log formats, so imposing my own distaste for overly long line length won't make a difference, as they won't change their "coding style" ;-) Signed-off-by: aszlig <aszlig@nix.build>
* vim: Add syntax highlighting for Xdebug tracesaszlig2019-08-031-0/+13
| | | | | | | | Unfortunately these days I have to debug a lot of PHP code, so having syntax highlighting (even though the syntax file is pretty terse) and being able to fold Xdebug traces is quite useful to have. Signed-off-by: aszlig <aszlig@nix.build>
* vim: Add syntax highlighting for Jinja2aszlig2019-06-111-0/+9
| | | | | | | Jinja2 seems to be quite popular these days for all sorts of templates, so let's actually use the syntax file from the actual Jinja2 package. Signed-off-by: aszlig <aszlig@nix.build>
* vim: Add syntax/indent configuration for PHPaszlig2019-06-111-0/+7
| | | | | | | | | | | | | | Unfortunately, I need to deal with PHP code occasionally, so let's make syntax highlighting less painful. I'm not sure why the option is called PHP_vintage_case_default_indent, but I prefer case statements to be indented. Apart from HTML/SQL syntax highlighting within PHP strings, I also want to prevent short open tags, so that whenever I stumble on code using it I can immediately fix them. Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Use flake8 from python3Packagesaszlig2018-10-131-2/+2
| | | | | | | | Constantly getting errors on type hints and "unknown" print() arguments is very annoying, especially because I almost exclusively use Python 3 nowadays. Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Add syntax highlighting for mesonaszlig2018-10-021-1/+12
| | | | | | | | | | | The upstream project already provides a Vim plugin so we only need to reference that using the existing meson.src attribute. However, I needed to patch out a very annoying thing, which would echom every time the indentexpr is called. Most likely this was left in for debugging. Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Update Nix pluginaszlig2018-09-131-2/+2
| | | | | | | This includes a revert of the recent indentation changes which introduce more problems than they actually solve. Signed-off-by: aszlig <aszlig@nix.build>
* vim: Add indentation fixes for Nix expressionsaszlig2018-08-171-2/+2
| | | | | | | | | | | | | | This basically switches the source to my pull request with a few fixes for indentation: https://github.com/LnL7/vim-nix/pull/19 The main annoyance was that writing "with ...;\n\nlet" was indented one level deeper and I'm regularly writing small Nix expressions with something like this, eg. to quickly test things or abuse the Nix sandbox for programs I don't want to run unsandboxed ;-) Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Add syntax highlighting for Vue.jsaszlig2018-08-051-0/+28
| | | | | | | This is used by Habitica and for maintaining my fork I sometimes[TM] unfortunately have to edit .vue files. Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Update Nix pluginaszlig2018-08-021-6/+10
| | | | | | | | | | | | | | | | This is mainly to catch up with the syntax highlighting fixes that were done in the respective plugins. The setlocals in ftplugin/nix.vim from LnL7's plugin are now gone and it's one setlocal with line continuation, so I had to turn the simple grep into a small sed script. Another thing I added while at it is to add the single quote to iskeyword, because it can be part of a Nix identifier. I did that by replacing the dash, because the latter now is part of the setlocal of the aforementioned ftplugin. Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Don't autoalign Ledger files anymoreaszlig2018-05-021-2/+1
| | | | | | | | | | | I've introduced this in 45aab49b33ab2cd4c327b996d6924f104b038193. It turns out that autocomplete_and_align when leaving insert mode is more annoying than useful, because first of all I use hledger and it's syntax additions and second I also use different currencies, which then get aligned and autocompleted into "something with EUR". Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Enable folding for Ledger filesaszlig2018-04-231-0/+2
| | | | | | | | My main hledger file already contains a lot of entries even though I just started using hledger, so folding all of that crap away seems to be a good idea. Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Add a few exceptions for sleuthaszlig2018-04-231-0/+5
| | | | | | | | | | | | | | | | | | | | This has annoyed me for a while now, especially when writing Haskell code. Let's say if I have something like this: foo :: Num a => a -> a foo a = b where b = a + 1 Sleuth will detect that the indentation level is 2 spaces, but in reality what I want is to have it at 4 spaces. So turning off Sleuth will solve that problem, especially because we can still invoke it manually. Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Add plugin for Ledgeraszlig2018-04-231-1/+20
| | | | | | | | | | | The plugin really is for Ledger instead of hledger, but both should be compatible with the syntax. If we use something that's not compatible we can still patch it in. I also set the default currency to Euro and added an auto-align after leaving insert mode because I'm lazy ;-) Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Remove vimErl pluginaszlig2018-01-091-7/+0
| | | | | | | This one is no longer required and the syntax and indent files are already part of Vim since version 7.4. Signed-off-by: aszlig <aszlig@nix.build>
* pkgs/vim: Add syntax and ftdetect files for ATSaszlig2017-10-061-0/+12
| | | | | | | | | Unfortunately the syntax file is a bit incomplete it's the best that I've found online, so I'll stick with it for the time being. Thanks to @Profpatsch for bringing ATS to my attention :-) Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Clean up autocommandsaszlig2017-09-051-13/+13
| | | | | | | | | | | | I was using set for a bunch of these, but these autocommands are only used for single buffers so let's actually make sure they are set only there by using setlocal. In addition to that I've corrected usage of '==' to use '==#', because '==' actually depends on user settings whether it's case sensitive or not (set ignorecase). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Add sleuth plugin for indent detectionaszlig2017-09-051-0/+7
| | | | | | | | I work with a lot of differente repositories and different indentation styles, so I hope this plugin will help cope with that so I no longer need to set those settings manually. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Add plugin for editing CSV filesaszlig2017-09-051-2/+16
| | | | | | | | | | | I happen to work with CSV files quite a bit lately but it's a major nuisance doing so with a normal text editor and I don't want to use a full-blown spreadsheet programm just for a few CSV files or even write a script every time I need to edit only a tiny bit. So this plugin solves that problem for me. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Be more agressive with including pluginsaszlig2017-09-051-22/+33
| | | | | | | | | | | Originally I only wanted to make sure the ftplugin gets loaded before the syntax file, but while at it I thought just prepending/appending stuff to the runtimepath is not enough for me. So now my version of Vim has all the plugins directly in the standard directories just as if they came with upstream. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Update vim-nix to latest master versionaszlig2017-07-311-2/+2
| | | | | | | The current master contains a few fixes with indentation which I regularly hit while writing Nix expressions. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Add vim-multiple-cursors pluginaszlig2017-07-251-0/+7
| | | | | | | | | While I find visual (block) mode quite useful, it doesn't cope well if you have multiple lines that aren't aligned perfectly. This plugin adds that missing feature. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Switch Haxe plugin to vaxeaszlig2017-07-241-12/+9
| | | | | | | | | | | | | | | | The Haxe plugin(s) I've used so far (vim-haxe and vim-haxe-syntax) are no longer actively maintained since 2014. On the other hand "vaxe" is based on the work on vim-haxe and vim-haxe-syntax, is actively maintained and supports newer language features of Haxe as well. I've patched out syntax highlighting for ',' and ';', because I really get eye cancer with this and reminds me a bit about the annoying bold colons when using nickname completion back in the days where BitchX users were widely seen on IRC. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Wrap lines at 79 chars instead of 80aszlig2017-07-241-4/+4
| | | | | | | | | | The reason is that for terminals that have a width of 80 characters, having a line with exactly 80 characters will wrap it. I've wrapped most of my code in 79 characters since a while manually, so it's time to enforce this by the editor. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Set history size to 500 linesaszlig2017-07-241-0/+1
| | | | | | The default is 50, which is a bit small for my taste. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* pkgs/vim: Add flag to skip defaults.vimaszlig2017-07-241-0/+1
| | | | | | | | This one is annoying because it enables mouse mode and it's sourced *after* our defined configuration. Setting skip_defaults_vim disables this behaviour. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* modules/aszlig: Make vim module a plain packageaszlig2017-07-241-0/+376
I don't use anything that's machine specific within my Vim configuration (and even if, we can pass it via the callPackage arguments) so it's kinda pointless that it's a module instead of a plain package (override). This makes it also easier to nix-build the package without the need to go through the module system. Signed-off-by: aszlig <aszlig@redmoonstudios.org>