Skip to content

Commit

Permalink
fix: tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Aug 23, 2024
1 parent f1a9435 commit 20f87bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 8 additions & 0 deletions plugins/bombadil/plugin/autocommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ vim.api.nvim_create_autocmd("BufWritePre", {
vim.fn.mkdir(vim.fn.expand "%:p:h", "p")
end,
})

vim.api.nvim_create_autocmd("BufWrite", {
group = group,
callback = function()
vim.snippet.stop()
vim.cmd.nohlsearch()
end,
})
9 changes: 6 additions & 3 deletions plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
return function()
local lsp = require "bombadil.lsp"
local lspconfig = require "lspconfig"
local lspconfig_util = require "lspconfig.util"
local util = require "lspconfig.util"

--
-- Styling
Expand Down Expand Up @@ -230,7 +230,7 @@ return function()
},
lua_ls = {
root_dir = function(fname)
return lspconfig_util.find_git_ancestor(fname) or lspconfig_util.path.dirname(fname)
return util.find_git_ancestor(fname) or util.path.dirname(fname)
end,
settings = {
Lua = {
Expand Down Expand Up @@ -277,7 +277,10 @@ return function()
},
},
relay_lsp = {
root_dir = lspconfig_util.root_pattern "relay.config.*",
root_dir = util.root_pattern "relay.config.*",
},
tailwindcss = {
root_dir = util.root_pattern "tailwind.config.*",
},
yamlls = {
settings = {
Expand Down

0 comments on commit 20f87bd

Please sign in to comment.