Skip to content

Commit

Permalink
[vim] Add Tailwind CSS LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
rouge8 committed Dec 18, 2024
1 parent 3dec6b2 commit 5cfe176
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .config/nvim.symlink/lua/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ cmp.setup({
-- Mason
require("mason").setup()
require("mason-lspconfig").setup({
ensure_installed = { "ts_ls", "volar" },
ensure_installed = { "ts_ls", "volar", "tailwindcss" },
})

-- LSP
Expand Down Expand Up @@ -243,6 +243,9 @@ nvim_lsp.ts_ls.setup({
})
nvim_lsp.volar.setup({})

-- Tailwind CSS
nvim_lsp.tailwindcss.setup({})

-- Go-to definition in a split window
-- https://github.com/neovim/nvim-lspconfig/wiki/UI-customization#go-to-definition-in-a-split-window
local function goto_definition(split_cmd)
Expand Down

0 comments on commit 5cfe176

Please sign in to comment.