nixos-config/modules/vim/init.lua

26 lines
583 B
Lua
Raw Normal View History

2023-10-16 08:04:11 +00:00
vim.opt.mouse = ""
2023-10-03 16:27:34 +00:00
vim.opt.relativenumber = true
vim.opt.whichwrap = ""
2023-10-16 08:04:11 +00:00
vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pylyzer" })
2023-10-16 15:00:18 +00:00
-- null-ls is missing on first-run. only do this if null-ls exists
if pcall(require, "null-ls") then
lvim.format_on_save = true
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"
},
2023-10-03 16:27:34 +00:00
},
2023-10-16 15:00:18 +00:00
}
end