1

Update neovim config

This commit is contained in:
2024-06-02 23:51:50 +02:00
parent 36e04daa30
commit 883f74fbf8
4 changed files with 26 additions and 27 deletions

View File

@ -186,10 +186,11 @@ rec {
neovide = true; neovide = true;
}; };
# lazyvim = { lazyvim = {
# enable = true; # enable = true;
# alias = true; alias = true;
# }; neovide = true;
};
nextcloud = { nextcloud = {
enable = true; enable = true;

View File

@ -64,35 +64,14 @@ in {
] ]
]; ];
home.file.".config/neovide/config.toml".text = '' home.file.".config/neovide/config.toml".source = ./neovide_config.ini;
fork = true # Start neovide detached home.file.".config/vale/.vale.ini".source = ./vale_config.ini;
frame = "none" # full, buttonless, none
idle = true # Don't render frames without changes
# maximized = true
title-hidden = true
# vsync = true
'';
home.file.".config/vale/.vale.ini".text = ''
# Core settings appear at the top
# (the "global" section).
[formats]
# Format associations appear under
# the optional "formats" section.
[*]
# Format-specific settings appear
# under a user-provided "glob"
# pattern.
'';
programs.nixvim = { programs.nixvim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
enableMan = true; enableMan = true;
luaLoader.enable = true; # NOTE: Experimental luaLoader.enable = true; # NOTE: Experimental
# colorschemes.catppuccin.enable = true; # Managed using Lazy
viAlias = cfg.alias; viAlias = cfg.alias;
vimAlias = cfg.alias; vimAlias = cfg.alias;
@ -104,6 +83,7 @@ in {
opts = import ./vim_opts.nix {inherit lib mylib;}; opts = import ./vim_opts.nix {inherit lib mylib;};
extraConfigLuaPost = builtins.readFile ./extraConfigLuaPost.lua; extraConfigLuaPost = builtins.readFile ./extraConfigLuaPost.lua;
extraConfigLua = builtins.readFile ./extraConfigLua.lua; extraConfigLua = builtins.readFile ./extraConfigLua.lua;
# extraLuaPackages = with pkgs.lua51Packages; []; # extraLuaPackages = with pkgs.lua51Packages; [];
extraPython3Packages = p: [ extraPython3Packages = p: [
@ -1002,6 +982,7 @@ in {
lazy = false; lazy = false;
config = '' config = ''
function(_, opts) function(_, opts)
-- Fix treesitter grammars/parsers on nix
vim.opt.runtimepath:append("${nvim-plugintree}") vim.opt.runtimepath:append("${nvim-plugintree}")
vim.opt.runtimepath:append("${treesitter-parsers}") vim.opt.runtimepath:append("${treesitter-parsers}")

View File

@ -0,0 +1,6 @@
fork = true # Start neovide detached
frame = "none" # full, buttonless, none
idle = true # Don't render frames without changes
# maximized = true
title-hidden = true
# vsync = true

View File

@ -0,0 +1,11 @@
# Core settings appear at the top
# (the "global" section).
[formats]
# Format associations appear under
# the optional "formats" section.
[*]
# Format-specific settings appear
# under a user-provided "glob"
# pattern.