dotfiles/nvim/lua/plugins/none-ls.lua

15 lines
324 B
Lua
Raw Normal View History

2024-01-13 23:13:31 +00:00
return {
2024-01-13 23:19:31 +00:00
"nvimtools/none-ls.nvim",
config = function()
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.stylua,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.isort,
},
})
vim.keymap.set("n", "<leader>gf", vim.lsp.buf.format, {})
end,
2024-01-13 23:13:31 +00:00
}