nixos-config/modules/vim/init.lua
2023-10-13 13:48:58 -04:00

20 lines
362 B
Lua

lvim.format_on_save = true
vim.opt.relativenumber = true
vim.opt.whichwrap = ""
local formatters = require "lvim.lsp.null-ls.formatters"
formatters.setup {
{ exe = "nixpkgs-fmt", filetypes = { "nix" } },
{ exe = "black", filetypes = { "python" } },
{
name = "prettier",
filetypes = {
"html",
"json",
"js",
"typescript",
"yaml"
},
},
}