summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/bee/LSPs/init.lua7
-rw-r--r--lua/bee/format.lua1
-rw-r--r--lua/bee/lint.lua1
3 files changed, 9 insertions, 0 deletions
diff --git a/lua/bee/LSPs/init.lua b/lua/bee/LSPs/init.lua
index 3cd23fc..31f6b25 100644
--- a/lua/bee/LSPs/init.lua
+++ b/lua/bee/LSPs/init.lua
@@ -47,6 +47,13 @@ return {
end,
},
{
+ "tombi",
+ for_cat = "toml",
+ lsp = {
+ filetypes = { "toml" },
+ },
+ },
+ {
"rustaceanvim",
auto_enable = true,
lazy = false, -- lazy loaded by default
diff --git a/lua/bee/format.lua b/lua/bee/format.lua
index 5a123a4..7fd38e9 100644
--- a/lua/bee/format.lua
+++ b/lua/bee/format.lua
@@ -19,6 +19,7 @@ return {
c = { "clang_format" },
cpp = { "clang_format" },
cmake = { "cmake_format" },
+ toml = { "tombi" },
-- Use a sub-list to run only the first available formatter
javascript = { { "prettierd", "prettier" } },
},
diff --git a/lua/bee/lint.lua b/lua/bee/lint.lua
index 7d03feb..f90aa42 100644
--- a/lua/bee/lint.lua
+++ b/lua/bee/lint.lua
@@ -5,6 +5,7 @@ return {
after = function(_)
require("lint").linters_by_ft = {
cpp = { "cpplint" },
+ toml = { "tombi" },
javascript = { "eslint" },
typescript = { "eslint" },
}