From b1865215ea3b696fa859036f883e65f32a15ac30 Mon Sep 17 00:00:00 2001 From: Hyuga Tsukui Date: Mon, 19 Aug 2024 08:40:00 +0900 Subject: [PATCH 1/2] change: diagnositic format --- dot_config/nvim/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua index ca8aa3c..8279c40 100644 --- a/dot_config/nvim/init.lua +++ b/dot_config/nvim/init.lua @@ -30,6 +30,14 @@ if not vim.g.vscode then vim.opt.undodir = undodir vim.opt.undofile = true + vim.diagnostic.config({ + virtual_text = { + format = function(diagnostic) + return string.format("%s (%s: %s)", diagnostic.message, diagnostic.source, diagnostic.code) + end, + }, + }) + -- manage plugins. vim.cmd.packadd("packer.nvim") require("packer").startup(function() From c81e0c69064be4131f02c41035b94de2da1a8dd2 Mon Sep 17 00:00:00 2001 From: Hyuga Tsukui Date: Mon, 19 Aug 2024 09:13:03 +0900 Subject: [PATCH 2/2] set color scheme --- dot_config/nvim/init.lua | 4 ++++ dot_wezterm.lua | 1 + 2 files changed, 5 insertions(+) diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua index 8279c40..0ba33c7 100644 --- a/dot_config/nvim/init.lua +++ b/dot_config/nvim/init.lua @@ -1,4 +1,5 @@ if not vim.g.vscode then + vim.cmd[[colorscheme tokyonight]] local opt = vim.opt opt.tabstop = 4 opt.expandtab = true @@ -166,6 +167,9 @@ if not vim.g.vscode then }), { name = "buffer" }, }) + + -- Color + use("folke/tokyonight.nvim") end) end diff --git a/dot_wezterm.lua b/dot_wezterm.lua index c9901ea..c592a5a 100644 --- a/dot_wezterm.lua +++ b/dot_wezterm.lua @@ -3,6 +3,7 @@ local wezterm = require("wezterm") local config = wezterm.config_builder() config.font = wezterm.font("Ricty Diminished") config.font_size = 18 +config.color_scheme = 'tokyonight' local act = wezterm.action config.keys = {