nvim: del v0.11 migrations.lua, lazydev support

This commit is contained in:
js0ny 2025-10-29 03:26:29 +00:00
parent 7540d37422
commit 6fb3efd1dc
11 changed files with 80 additions and 92 deletions

View file

@ -1,9 +1,12 @@
return {
"folke/lazydev.nvim",
ft = "lua", -- only load on lua files
ft = "lua", -- only load on lua files
opts = {
library = {
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
},
},
enabled = function(root_dir)
return vim.g.lazydev_enabled == nil and true or vim.g.lazy
end,
}

View file

@ -12,6 +12,7 @@ return {
python = { "isort", "black" },
javascript = { "prettierd", "prettier", stop_after_first = true },
},
-- Set default options
default_format_opts = {
lsp_format = "fallback",

View file

@ -80,6 +80,9 @@ M.command = {
M.encoding = {
"o:encoding",
color = { fg = colors.scheme.green, gui = "bold" },
cond = function()
return vim.opt.encoding:get() ~= "utf-8"
end,
}
M.indent = {