Skip to content

Commit

Permalink
Fix null-ls
Browse files Browse the repository at this point in the history
  • Loading branch information
szinn committed Nov 12, 2023
1 parent 9f0298d commit 9d51458
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions home/dot_config/nvim/lua/plugins/extras/lang/rust.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ return {
-- make sure mason installs the server
setup = {
rust_analyzer = function(_, opts)
require("lazyvim.util").on_attach(function(client, buffer)
require("lazyvim.util").lsp.on_attach(function(client, buffer)
-- stylua: ignore
if client.name == "rust_analyzer" then
vim.keymap.set("n", "K", "<CMD>RustHoverActions<CR>", { buffer = buffer })
Expand Down Expand Up @@ -123,7 +123,7 @@ return {
vim.lsp.buf.hover()
end
end
require("lazyvim.util").on_attach(function(client, buffer)
require("lazyvim.util").lsp.on_attach(function(client, buffer)
-- stylua: ignore
if client.name == "taplo" then
vim.keymap.set("n", "K", show_documentation, { buffer = buffer })
Expand Down
24 changes: 12 additions & 12 deletions home/dot_config/nvim/lua/plugins/extras/lang/terraform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ return {
end
end,
},
{
"jay-babu/mason-null-ls.nvim",
event = "BufReadPre",
opts = function(_, opts)
if opts.ensure_installed == nil then
opts.ensure_installed = { "tflint", "tfsec" }
else
vim.list_extend(opts.ensure_installed, { "tflint", "tfsec" })
end
opts.automatic_installation = true
end,
},
-- {
-- "jay-babu/mason-null-ls.nvim",
-- event = "BufReadPre",
-- opts = function(_, opts)
-- if opts.ensure_installed == nil then
-- opts.ensure_installed = { "tflint", "tfsec" }
-- else
-- vim.list_extend(opts.ensure_installed, { "tflint", "tfsec" })
-- end
-- opts.automatic_installation = true
-- end,
-- },
}

0 comments on commit 9d51458

Please sign in to comment.