diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index ddc50d0..5932654 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -25,7 +25,7 @@ require("lazy").setup { { import = "plugins" }, }, install = { colorscheme = { "tokyonight" } }, - checker = { enabled = true, notify = false }, + checker = { enabled = false, notify = false }, } vim.cmd [[colorscheme tokyonight]] diff --git a/lua/config/maps.lua b/lua/config/maps.lua index b41c81f..3ffa210 100644 --- a/lua/config/maps.lua +++ b/lua/config/maps.lua @@ -13,8 +13,6 @@ map("n", "", "k", { desc = "switch window up" }) map("n", "", "noh", { desc = "general clear highlights" }) -map("n", "n", "set nu!", { desc = "toggle line number" }) - map("n", "/", "gcc", { desc = "toggle comment", remap = true }) map("v", "/", "gc", { desc = "toggle comment", remap = true }) diff --git a/lua/config/opts.lua b/lua/config/opts.lua index 8f62c5f..8109fae 100644 --- a/lua/config/opts.lua +++ b/lua/config/opts.lua @@ -6,12 +6,16 @@ if vim.env.SSH_CONNECTION then vim.g.clipboard = { name = "OSC 52", copy = { - ["+"] = require("vim.ui.clipboard.osc52").copy("+"), - ["*"] = require("vim.ui.clipboard.osc52").copy("*"), + ["+"] = require("vim.ui.clipboard.osc52").copy "+", + ["*"] = require("vim.ui.clipboard.osc52").copy "*", }, paste = { - ["+"] = function() return nil end, - ["*"] = function() return nil end, + ["+"] = function() + return nil + end, + ["*"] = function() + return nil + end, }, } end @@ -23,3 +27,4 @@ vim.opt.shiftwidth = 2 vim.opt.tabstop = 2 vim.opt.smartindent = true vim.opt.autoindent = true +vim.opt.number = true diff --git a/lua/plugins/format.lua b/lua/plugins/format.lua index a24b7a8..a5dc86f 100644 --- a/lua/plugins/format.lua +++ b/lua/plugins/format.lua @@ -21,6 +21,7 @@ return { yaml = { "yamlfmt" }, nix = { "nixfmt" }, bash = { "shfmt" }, + php = { "mago_format" }, }, default_format_opts = { lsp_format = "fallback",