mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 05:02:10 +00:00
update font config
This commit is contained in:
parent
c849ff2e36
commit
ff602381b4
3 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
local o, opt = vim.o, vim.opt
|
local o, opt = vim.o, vim.opt
|
||||||
|
local gui_font_family = "Berkeley Mono"
|
||||||
|
local gui_font_size = 15
|
||||||
|
|
||||||
o.number = true
|
o.number = true
|
||||||
o.relativenumber = true
|
o.relativenumber = true
|
||||||
|
|
@ -40,3 +42,5 @@ o.foldenable = true
|
||||||
o.updatetime = 250
|
o.updatetime = 250
|
||||||
o.mouse = 'a'
|
o.mouse = 'a'
|
||||||
o.clipboard = 'unnamedplus'
|
o.clipboard = 'unnamedplus'
|
||||||
|
|
||||||
|
if vim.g.neovide then o.guifont = ("%s:h%s"):format(gui_font_family, gui_font_size) end
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ let
|
||||||
font-family = Berkeley Mono
|
font-family = Berkeley Mono
|
||||||
font-codepoint-map = U+f101-U+f25c=nonicons
|
font-codepoint-map = U+f101-U+f25c=nonicons
|
||||||
background-opacity = 1
|
background-opacity = 1
|
||||||
font-size = 17
|
font-size = 15
|
||||||
window-padding-y = 0
|
window-padding-y = 0
|
||||||
window-padding-x = 0
|
window-padding-x = 0
|
||||||
window-padding-color = extend
|
window-padding-color = extend
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
hostConfig,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
|
@ -23,7 +24,7 @@ in
|
||||||
{
|
{
|
||||||
# Keep rust-analyzer in the user profile so it shadows rustup's proxy in
|
# Keep rust-analyzer in the user profile so it shadows rustup's proxy in
|
||||||
# /run/current-system/sw/bin when Neovim resolves LSP executables.
|
# /run/current-system/sw/bin when Neovim resolves LSP executables.
|
||||||
home.packages = [ pkgs.rust-analyzer ];
|
home.packages = [ pkgs.rust-analyzer ] ++ lib.optionals hostConfig.isDarwin [ pkgs.neovide ];
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue