mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 17:53:17 +01:00
feat: Replace vim-nix-rummik with treesitter (again)
The latest treesitter changes actually make using it better than the old vim-nix-rummik solution. Syntax highlighting works quite well for the /* lang */ code blocks.
This commit is contained in:
parent
93a5fb8e6f
commit
945bd13e4f
@ -1,21 +1,7 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs) fetchFromGitHub vimPlugins;
|
|
||||||
inherit (pkgs.vimUtils) buildVimPlugin;
|
|
||||||
inherit (config.lib.stylix.scheme) slug;
|
inherit (config.lib.stylix.scheme) slug;
|
||||||
|
|
||||||
vim-nix-rummik = buildVimPlugin {
|
|
||||||
pname = "vim-nix-rummik";
|
|
||||||
version = "2022-11-16";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "rummik";
|
|
||||||
repo = "vim-nix";
|
|
||||||
rev = "0def8020f152a51c011a707680780dac61a8989a";
|
|
||||||
hash = "sha256-Q+Jx6/MgeE2hsd/a6FqfXpAOaRcNymZW6t75hYCcH4E=";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.bat.enable = true;
|
programs.bat.enable = true;
|
||||||
@ -175,7 +161,7 @@ in
|
|||||||
autocmd BufNewFile,BufRead *.mdx set filetype=markdown
|
autocmd BufNewFile,BufRead *.mdx set filetype=markdown
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = with vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
plugin = nvim-tree-lua;
|
plugin = nvim-tree-lua;
|
||||||
type = "lua";
|
type = "lua";
|
||||||
@ -532,7 +518,7 @@ in
|
|||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = function(lang)
|
disable = function(lang)
|
||||||
if lang ~= "javascript" and lang ~= "tsx" and lang ~= "typescript" and lang ~= "astro" and lang ~= "css" and lang ~= "glsl" then
|
if lang ~= "javascript" and lang ~= "tsx" and lang ~= "typescript" and lang ~= "astro" and lang ~= "css" and lang ~= "glsl" and lang ~= "nix" then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
@ -567,7 +553,7 @@ in
|
|||||||
neoformat
|
neoformat
|
||||||
bufdelete-nvim
|
bufdelete-nvim
|
||||||
vim-crystal
|
vim-crystal
|
||||||
vim-nix-rummik
|
vim-nix
|
||||||
fcitx-vim
|
fcitx-vim
|
||||||
typst-vim
|
typst-vim
|
||||||
emmet-vim
|
emmet-vim
|
||||||
|
Loading…
Reference in New Issue
Block a user