Reduce vim startup time, use nerd font fira code

This commit is contained in:
Artemis Tosini 2023-09-08 20:15:02 +00:00
parent 9398cdcecb
commit 531b638bdc
Signed by: artemist
GPG key ID: EE5227935FE3FF18
6 changed files with 13 additions and 18 deletions

View file

@ -3,7 +3,7 @@ scrolling:
font: font:
normal: normal:
family: Fira Code family: FiraCode Nerd Font
size: 8 size: 8
shell: shell:

View file

@ -5,7 +5,7 @@
enable = true; enable = true;
font = { font = {
package = pkgs.fira-code; package = pkgs.fira-code;
name = "Fira Code"; name = "FiraCode Nerd Font";
size = 9; size = 9;
}; };
settings = { settings = {

View file

@ -1,9 +1,8 @@
{ config, pkgs, lib, inputs, ... }: { config, pkgs, lib, inputs, ... }:
{ {
systemd.tmpfiles.rules = systemd.tmpfiles.rules = lib.mapAttrsToList
lib.mapAttrsToList (key: value: "L+ /etc/channels/${key} - - - - ${value.outPath}") (key: value: "L+ /etc/channels/${key} - - - - ${value.outPath}") inputs;
inputs;
nix = { nix = {
nixPath = nixPath =

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { pkgs, ... }:
{ {
fonts = { fonts = {
@ -12,6 +12,7 @@
# Mono fonts # Mono fonts
dejavu_fonts dejavu_fonts
fira-code fira-code
fira-code-nerdfont
iosevka iosevka
source-code-pro source-code-pro
source-sans-pro source-sans-pro

View file

@ -18,15 +18,7 @@
nix.enable = true; nix.enable = true;
fugitive.enable = true; fugitive.enable = true;
gitgutter.enable = true; gitgutter.enable = true;
airline = { lualine.enable = true;
enable = true;
powerline = true;
theme = "dark";
};
};
globals = {
"airline#extensions#tabline#enabled" = 1;
"airline#extensions#tabline#formatter" = "unique_tail_improved";
}; };
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = with pkgs.vimPlugins; [
vim-fetch vim-fetch
@ -34,7 +26,6 @@
vim-flatbuffers vim-flatbuffers
vim-nftables vim-nftables
vim-protobuf vim-protobuf
vim-sensible
vim-toml vim-toml
]; ];
options = { options = {
@ -48,7 +39,11 @@
}; };
# LSP # LSP
plugins.rust-tools.enable = true; plugins.rust-tools = {
enable = true;
server.standalone = false;
};
plugins.clangd-extensions.enable = true;
plugins.lsp = { plugins.lsp = {
enable = true; enable = true;
servers = { servers = {

View file

@ -16,7 +16,7 @@
enable = true; enable = true;
settings.main = { settings.main = {
shell = "/run/current-system/sw/bin/fish"; shell = "/run/current-system/sw/bin/fish";
font = "Fira Code:size=6"; font = "FiraCode Nerd Font:size=6";
}; };
}; };
wayland.windowManager.sway.config = { wayland.windowManager.sway.config = {