summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeeb5k <beebeeb5k@gmail.com>2026-08-31 16:31:00 +0530
committerbeeb5k <beebeeb5k@gmail.com>2026-08-31 16:31:00 +0530
commit3c5867dbbe67505e945bf5a34afc5a6a53b1084f (patch)
treea686bab9c4c56b47e49c88839d6d98c5fe6fe42a
parentc3a99310e066b0313369bf02d60496afe0951d02 (diff)
Toml support
-rw-r--r--flake.lock6
-rw-r--r--lua/bee/LSPs/init.lua7
-rw-r--r--lua/bee/format.lua1
-rw-r--r--lua/bee/lint.lua1
-rw-r--r--module.nix7
5 files changed, 19 insertions, 3 deletions
diff --git a/flake.lock b/flake.lock
index ec5036e..667d806 100644
--- a/flake.lock
+++ b/flake.lock
@@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
- "lastModified": 1787631388,
- "narHash": "sha256-vMiXptXarfSdJb1Gkc+FYVOAibuBRj7qxGa8z68q1Uw=",
+ "lastModified": 1787964612,
+ "narHash": "sha256-0N9nghg3nwzX6b6qc77EzjR9cu/Z+UR66FlfsCqiURs=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "ac6b2166e7a9375683b8e98f860f273222337b16",
+ "rev": "e8be7818e19ada32105a8af937a6a473b38167ca",
"type": "github"
},
"original": {
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" },
}
diff --git a/module.nix b/module.nix
index f55ec7a..4cffdeb 100644
--- a/module.nix
+++ b/module.nix
@@ -88,6 +88,13 @@ inputs:
stylua
];
};
+ config.specs.toml = {
+ lazy = true;
+ data = with pkgs.vimPlugins; [ ];
+ runtimePkgs = with pkgs; [
+ tombi
+ ];
+ };
config.specs.bash = {
lazy = true;
enable = false;