From 45a4ae76a06ee57cd637ceed3bb7c14ff0f277c0 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 19 Feb 2024 15:44:41 -0500 Subject: [PATCH] fix(nvim): recognize more files as hyprconf --- common/home/neovim/default.nix | 1 - common/home/neovim/plugins/treesitter.vim | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/home/neovim/default.nix b/common/home/neovim/default.nix index ba21a8a..a40e5f1 100644 --- a/common/home/neovim/default.nix +++ b/common/home/neovim/default.nix @@ -15,7 +15,6 @@ in { home = optionalAttrs neovimIde { packages = with pkgs; [ gradle - gradle-completion # FIXME: not working maven alejandra ]; diff --git a/common/home/neovim/plugins/treesitter.vim b/common/home/neovim/plugins/treesitter.vim index fca0748..fbabedb 100644 --- a/common/home/neovim/plugins/treesitter.vim +++ b/common/home/neovim/plugins/treesitter.vim @@ -11,6 +11,10 @@ require('treesitter-context').setup({ min_window_height = 20, }) +vim.filetype.add({ + pattern = { [".*/hypr/.*%.conf"] = "hyprlang" }, +}) + EOF " Add line under context