feat: nvim integration

This commit is contained in:
2024-04-07 19:10:17 +02:00
parent 040515003f
commit 52abd8f311
5 changed files with 58 additions and 47 deletions

View File

@@ -1,23 +1,4 @@
{ pkgs }:
let
darkman = pkgs.vimUtils.buildVimPlugin {
name = "darkman";
src = pkgs.buildGoModule rec {
pname = "darkman.nvim";
version = "0.0.1";
vendorHash = "sha256-HpyKzvKVN9hVRxxca4sdWRo91H32Ha9gxitr7Qg5MY8=";
src = pkgs.fetchFromGitHub {
owner = "4e554c4c";
repo = "darkman.nvim";
rev = "150aa63a13837c44abd87ff20d3a806321a17b2d";
sha256 = "sha256-ssEYdM460I1rufjgh63CEkLi4K+bEWbwku/6gQbytno=";
};
postInstall = ''
cp -r lua $out
'';
};
};
in
{
enable = true;
defaultEditor = true;
@@ -90,25 +71,9 @@ in
extraConfigLua = builtins.readFile ./extra-config.lua;
colorschemes.catppuccin = {
enable = true;
terminalColors = true;
transparentBackground = true;
background = {
dark = "frappe";
light = "latte";
};
integrations.native_lsp.underlines = {
errors = [ "undercurl" ];
warnings = [ "undercurl" ];
};
customHighlights = builtins.readFile ./custom-highlights.lua;
};
plugins = {
lualine = {
enable = true;
theme = "catppuccin";
globalstatus = true;
sectionSeparators = {
left = "";
@@ -470,7 +435,6 @@ in
];
extraPlugins = with pkgs.vimPlugins; [
vim-mergetool
darkman
rest-nvim
plenary-nvim
actions-preview-nvim