mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-22 03:52:53 +00:00
add astronvim config
This commit is contained in:
parent
bd13902c7a
commit
2902aca32a
1 changed files with 25 additions and 0 deletions
25
home.nix
25
home.nix
|
@ -111,6 +111,31 @@
|
|||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
coc.enable = true;
|
||||
extraLuaConfig = ''
|
||||
for _, source in ipairs {
|
||||
"astronvim.bootstrap",
|
||||
"astronvim.options",
|
||||
"astronvim.lazy",
|
||||
"astronvim.autocmds",
|
||||
"astronvim.mappings",
|
||||
} do
|
||||
local status_ok, fault = pcall(require, source)
|
||||
if not status_ok then vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault
|
||||
) end
|
||||
end
|
||||
|
||||
if astronvim.default_colorscheme then
|
||||
if not pcall(vim.cmd.colorscheme, astronvim.default_colorscheme) then
|
||||
requrie("astronvim.utils").notify(
|
||||
"Error setting up colorscheme: " .. astronvim.default_colorscheme,
|
||||
vim.log.levels.ERROR
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
require("astronvim.utils").conditional_func(astronvim.user_opts("polish", nil, false), true)
|
||||
'';
|
||||
|
||||
plugins = (with pkgs.vimPlugins; [
|
||||
rust-vim
|
||||
|
|
Loading…
Reference in a new issue