From 7f1fbfae2cb1a2f3c3c17bbb63d84dba33cc91e2 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Fri, 11 Oct 2024 12:40:10 -0500 Subject: fix(nvim): add typos config for typos-lsp --- nvim/.config/cbfmt/cbfmt.toml | 7 ------- nvim/.config/nvim/lua/tobyvin/lsp/configs.lua | 3 +++ nvim/.config/typos.toml | 2 ++ 3 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 nvim/.config/cbfmt/cbfmt.toml create mode 100644 nvim/.config/typos.toml (limited to 'nvim/.config') diff --git a/nvim/.config/cbfmt/cbfmt.toml b/nvim/.config/cbfmt/cbfmt.toml deleted file mode 100644 index 38bcd7e..0000000 --- a/nvim/.config/cbfmt/cbfmt.toml +++ /dev/null @@ -1,7 +0,0 @@ -[languages] -go = ["gofmt"] -javascript = ["prettier --stdin"] -lua = ["stylua -s -"] -python = ["black --fast -"] -rust = ["rustfmt"] -sh = ["shfmt -"] diff --git a/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua b/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua index 3bb4de8..f0f02a0 100644 --- a/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua +++ b/nvim/.config/nvim/lua/tobyvin/lsp/configs.lua @@ -233,6 +233,9 @@ local M = { "markdown", "tex", }, + init_options = { + config = vim.fs.joinpath(vim.env.XDG_CONFIG_HOME, "typos.toml"), + }, }, -- check out [tinymist](https://github.com/Myriad-Dreamin/tinymist) as a possible alternative typst_lsp = { diff --git a/nvim/.config/typos.toml b/nvim/.config/typos.toml new file mode 100644 index 0000000..a95c7f2 --- /dev/null +++ b/nvim/.config/typos.toml @@ -0,0 +1,2 @@ +[type.eml.extend-words] +damon = "damon" -- cgit v1.2.3-70-g09d2