mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
25 lines
583 B
Lua
25 lines
583 B
Lua
vim.opt.mouse = ""
|
|
vim.opt.relativenumber = true
|
|
vim.opt.whichwrap = ""
|
|
|
|
vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pylyzer" })
|
|
|
|
-- 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"
|
|
},
|
|
},
|
|
}
|
|
end
|