Add some nix neovim specific config to init.lua via nix

This commit is contained in:
Evie Litherland-Smith 2023-06-03 07:58:50 +01:00
parent 055b557c33
commit 13d17e3bad
3 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,36 @@
require "common"
require("lazy").setup {
spec = "plugins",
install = { colorscheme = { "tokyonight" } },
ui = {
border = "rounded",
icons = { lazy = " " },
},
diff = { cmd = "diffview.nvim" },
checker = { enabled = true, frequency = 3600 },
performance = {
rtp = {
disabled_plugins = {
"gzip",
"matchit",
"matchparen",
"netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
}
require "ui.fillchars"
vim.g.loaded_perl_provider = 0
if vim.g.neovide then
require "ui.neovide"
elseif vim.g.vscode then
require "ui.vscode"
end
vim.cmd [[colorscheme tokyonight]]

View file

@ -1,6 +1,7 @@
{pkgs, ...}: {
programs.neovim = {
enable = true;
extraLuaConfig = builtins.readFile ./config/nvim/init.lua;
defaultEditor = true;
viAlias = true;
vimAlias = true;

2
nvim

@ -1 +1 @@
Subproject commit 8ab7be776a477a59efe5677781fdade02089ae92
Subproject commit 1fca774106e7d361ec797dedb10562fa619924bf