From 9827fe645bf6b125894011213cfa4aef06ba4509 Mon Sep 17 00:00:00 2001 From: Von Random Date: Fri, 6 Oct 2023 00:18:21 +0300 Subject: [PATCH] nvim: fix windows issue with treesitter; wezterm: font --- cli/.config/nvim/lua/plugins.lua | 20 +++++++++++++------- gui/.wezterm.lua | 4 ++-- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/cli/.config/nvim/lua/plugins.lua b/cli/.config/nvim/lua/plugins.lua index 2023277..bfcc6ba 100644 --- a/cli/.config/nvim/lua/plugins.lua +++ b/cli/.config/nvim/lua/plugins.lua @@ -19,8 +19,8 @@ require('lazy').setup { } --[[ plugin configs and maps ]] -local ll_sep = "\u{2022}" -require('lualine').setup { +local conf_ll_sep = "\u{2022}" +local conf_lualine = { options = { icons_enabled = false, theme = 'solarized_light', @@ -28,12 +28,18 @@ require('lualine').setup { section_separators = { left = null, right = null} } } -require('gitsigns').setup() -require('nvim-treesitter.configs').setup { - highlight = { - enable = true - } +local conf_nvim_treesitter = { + highlight = { + enable = true + } } + +require('lualine').setup(conf_lualine) +require('gitsigns').setup() +if not vim.fn.has('Windows') then + require('nvim-treesitter.configs').setup(conf_nvim_treesitter) +end + map('n', 'L', 'Lazy') map('n', '?', 'Cheat40') map('n', '.', 'Telescope git_files') diff --git a/gui/.wezterm.lua b/gui/.wezterm.lua index 93cb247..27114ef 100644 --- a/gui/.wezterm.lua +++ b/gui/.wezterm.lua @@ -1,8 +1,8 @@ local wt = require('wezterm') local act = wt.action -local font = 'VascadiaMod' +local font = 'FantasqueSansM Nerd Font' local harfbuzz_features = nil -local fontsizes = { Darwin = 14, others = 11 } +local fontsizes = { Darwin = 15, others = 12 } local theme = 'Solarized Light (Gogh)' local overrides = { fonts = {