Fix occassional Neovim loading error
This commit is contained in:
parent
930473a896
commit
bab5f8f4a8
|
@ -41,16 +41,10 @@
|
|||
};
|
||||
|
||||
inherit (pkgs) mkShell;
|
||||
inherit (pkgs.vimUtils) buildVimPlugin;
|
||||
in
|
||||
{
|
||||
packages.${system} = {
|
||||
default = mkShell { buildInputs = with pkgs; [ bashInteractive ]; };
|
||||
|
||||
opdavies-nvim = buildVimPlugin {
|
||||
name = "opdavies-nvim";
|
||||
src = ./nvim;
|
||||
};
|
||||
};
|
||||
|
||||
formatter.${system} = pkgs.nixfmt-rfc-style;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
pkgs,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
|
||||
|
@ -141,19 +141,8 @@
|
|||
|
||||
# Themes
|
||||
catppuccin-nvim
|
||||
|
||||
# Configuration.
|
||||
inputs.self.packages.${pkgs.system}.opdavies-nvim
|
||||
];
|
||||
|
||||
extraLuaConfig = ''
|
||||
if vim.loader then
|
||||
vim.loader.enable()
|
||||
end
|
||||
|
||||
require "opdavies"
|
||||
'';
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
# Languages
|
||||
nodePackages.typescript
|
||||
|
@ -199,6 +188,11 @@
|
|||
];
|
||||
};
|
||||
|
||||
xdg.configFile.nvim = {
|
||||
source = "${self}/nvim";
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
home.file.".markdownlint.yaml".text = ''
|
||||
default: true
|
||||
|
||||
|
|
1
nvim/init.lua
Normal file
1
nvim/init.lua
Normal file
|
@ -0,0 +1 @@
|
|||
require "opdavies"
|
|
@ -1,5 +1,3 @@
|
|||
pcall("require", impatient)
|
||||
|
||||
require "opdavies.globals"
|
||||
require "opdavies.keymaps"
|
||||
require "opdavies.options"
|
||||
|
|
Loading…
Reference in a new issue