dotfiles/nvim/lua/plugins/none-ls.lua
2024-01-14 00:19:31 +01:00

15 lines
324 B
Lua

return {
"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,
}