Skip to content

Commit

Permalink
tree-sitter and twvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
davidosomething committed Oct 17, 2024
1 parent 0d794f2 commit fa8356d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nvim/lua/dko/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ end

M.twvalues = "<leader>tw"
M.bind_twvalues = function()
map("n", "<leader>tw", "<Cmd>TWValues<CR>", {
map("n", M.twvalues, "<Cmd>TWValues<CR>", {
desc = "Show tailwind CSS values",
})
end
Expand Down
4 changes: 3 additions & 1 deletion nvim/lua/dko/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ local HIGHLIGHTING_DISABLED = {
--"tsx",
}

local ENSURE_INSTALLED = { "html", "json", "lua", "markdown", "yaml" }

return {
-- https://github.com/nvim-treesitter/nvim-treesitter/
{
Expand All @@ -34,7 +36,7 @@ return {
require("nvim-treesitter.configs").setup({
-- https://github.com/nvim-treesitter/nvim-treesitter/issues/3579#issuecomment-1278662119
auto_install = has_ui,
ensure_installed = has_ui and { "html" } or {},
ensure_installed = has_ui and ENSURE_INSTALLED or {},
sync_install = true,

-- Built-in modules configured here
Expand Down

0 comments on commit fa8356d

Please sign in to comment.