mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
nvim: del v0.11 migrations.lua, lazydev support
This commit is contained in:
parent
7540d37422
commit
6fb3efd1dc
11 changed files with 80 additions and 92 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ return {
|
|||
python = { "isort", "black" },
|
||||
javascript = { "prettierd", "prettier", stop_after_first = true },
|
||||
},
|
||||
|
||||
-- Set default options
|
||||
default_format_opts = {
|
||||
lsp_format = "fallback",
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue