mirror of
https://github.com/softinio/nix-config.git
synced 2025-10-18 19:16:41 -07:00
70 lines
1.1 KiB
Nix
70 lines
1.1 KiB
Nix
|
{ pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
programs.nixvim.plugins = {
|
||
|
treesitter = {
|
||
|
enable = true;
|
||
|
|
||
|
grammarPackages = with pkgs.vimPlugins.nvim-treesitter.builtGrammars; [
|
||
|
awk
|
||
|
bash
|
||
|
c
|
||
|
cpp
|
||
|
css
|
||
|
dockerfile
|
||
|
fish
|
||
|
git-rebase
|
||
|
gitattributes
|
||
|
gitcommit
|
||
|
gitignore
|
||
|
go
|
||
|
haskell
|
||
|
hocon
|
||
|
html
|
||
|
http
|
||
|
java
|
||
|
javascript
|
||
|
json
|
||
|
json5
|
||
|
jsonc
|
||
|
lua
|
||
|
make
|
||
|
markdown
|
||
|
markdown-inline
|
||
|
nix
|
||
|
proto
|
||
|
python
|
||
|
rust
|
||
|
scala
|
||
|
sql
|
||
|
swift
|
||
|
terraform
|
||
|
toml
|
||
|
typescript
|
||
|
vim
|
||
|
xml
|
||
|
yaml
|
||
|
];
|
||
|
|
||
|
nixvimInjections = true;
|
||
|
|
||
|
settings = {
|
||
|
highlight.enable = true;
|
||
|
indent.enable = true;
|
||
|
};
|
||
|
folding = false;
|
||
|
};
|
||
|
|
||
|
treesitter-refactor = {
|
||
|
enable = true;
|
||
|
highlightDefinitions = {
|
||
|
enable = true;
|
||
|
# Set to false if you have an `updatetime` of ~100.
|
||
|
clearOnCursorMove = false;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
hmts.enable = true;
|
||
|
};
|
||
|
}
|