Skip to content

Commit

Permalink
Update .config/nvim/lua/plugins/none-ls.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyuga-Tsukui committed Nov 21, 2024
1 parent 35edb93 commit 4f8e2e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dot_config/nvim/lua/plugins/none-ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ return {
config = function()
require("mason").setup()
require("mason-null-ls").setup({
handlers = {}
handlers = {},
})
local null_ls = require("null-ls")
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
null_ls.setup({
sources = {
null_ls.builtins.formatting.terraform_fmt,
},
on_attach = function(client, bufnr)
vim.keymap.set("n", "<space>f", function()
vim.lsp.buf.format({ async = true })
Expand Down

0 comments on commit 4f8e2e8

Please sign in to comment.