nixos-config/modules/vim/init.lua

21 lines
385 B
Lua
Raw Normal View History

2023-10-03 16:27:34 +00:00
lvim.format_on_save = true
vim.opt.relativenumber = true
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
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 = {
"json",
"typescript",
"yaml"
},
},
2023-09-17 21:59:30 +00:00
}