Compare commits

...

2 Commits

Author SHA1 Message Date
sudo pacman -Syu 49dc5a56f9 config(nvim): improve perf 2024-04-30 15:13:02 +07:00
sudo pacman -Syu eb9bbb300a config(nvim): disable more 2024-04-30 14:36:23 +07:00
2 changed files with 22 additions and 14 deletions

View File

@ -24,5 +24,5 @@ enter_accept = false
prefers_reduced_motion = true
[stats]
common_subcommands = ["brew", "cargo", "g", "git", "go"]
common_subcommands = ["brew", "cargo", "g", "git", "go", "nix-env"]
common_prefix = ["sudo"]

View File

@ -86,6 +86,12 @@ vim.keymap.set({ "n", "v" }, "<C-y>", "<Nop>")
vim.keymap.set({ "n", "v" }, "<C-u>", "<Nop>")
vim.keymap.set({ "n", "v" }, "<C-b>", "<Nop>")
-- Disable more
vim.g.loaded_python3_provider = 0
vim.g.loaded_ruby_provider = 0
vim.g.loaded_node_provider = 0
vim.g.loaded_perl_provider = 0
-- https://github.com/folke/lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
@ -357,19 +363,6 @@ require("lazy").setup({
end,
},
-- https://github.com/ntpeters/vim-better-whitespace
{
"ntpeters/vim-better-whitespace",
init = function()
vim.g.better_whitespace_enabled = 0
end,
},
-- https://github.com/shortcuts/no-neck-pain.nvim
{
"shortcuts/no-neck-pain.nvim",
},
-- https://github.com/echasnovski/mini.nvim
{
"echasnovski/mini.nvim",
@ -429,6 +422,7 @@ require("lazy").setup({
local conform = require("conform")
conform.setup({
formatters_by_ft = {
["_"] = { "trim_whitespace" },
bash = { "shfmt" },
go = { "gofumpt" },
javascript = { "deno_fmt" },
@ -591,4 +585,18 @@ require("lazy").setup({
})
end,
},
}, {
performance = {
rtp = {
disabled_plugins = {
"editorconfig",
"gzip",
"spellfile",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
})