From 11c8615da6e2e2107a804ed3275dfcd5e0e51768 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Tue, 24 Oct 2023 14:29:13 +0700 Subject: [PATCH] chore(config): revision neovim, wezterm --- data/nvim/init.lua | 23 ++++++++++++++++++++--- data/wezterm/wezterm.lua | 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index e3aec55..9faff4e 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -107,6 +107,14 @@ require("lazy").setup({ config = function() require("catppuccin").setup({ flavour = "mocha", + transparent_background = true, + custom_highlights = function(colors) + return { + Comment = { + fg = colors.flamingo, + }, + } + end, }) vim.cmd("colorscheme catppuccin") @@ -152,7 +160,7 @@ require("lazy").setup({ vim.cmd("colorscheme caret") end, - enabled = true, + enabled = false, }, -- https://github.com/folke/tokyonight.nvim @@ -161,11 +169,19 @@ require("lazy").setup({ lazy = false, priority = 1000, config = function() - require("tokyonight").setup({}) + require("tokyonight").setup({ + transparent = true, + + on_highlights = function(hl, c) + hl.Comment = { + fg = c.teal, + } + end, + }) vim.cmd("colorscheme tokyonight") end, - enabled = false, + enabled = true, }, { @@ -533,6 +549,7 @@ require("lazy").setup({ vim.bo[ev.buf].omnifunc = "v:lua.vim.lsp.omnifunc" local opts = { buffer = ev.buf } + vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts) vim.keymap.set("n", "k", vim.lsp.buf.hover, opts) vim.keymap.set("n", "", vim.lsp.buf.rename, opts) vim.keymap.set("n", "f", function() diff --git a/data/wezterm/wezterm.lua b/data/wezterm/wezterm.lua index 2b1fa2b..9e5fcaf 100644 --- a/data/wezterm/wezterm.lua +++ b/data/wezterm/wezterm.lua @@ -3,7 +3,7 @@ local act = wezterm.action return { font = wezterm.font({ - family = "Fantasque Sans Mono", + family = "Iosevka Term SS08", }), font_size = 16.0, line_height = 1.2,