From 6d0e0cbbc5f9cc402696f1bcd1608bfec1607839 Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Wed, 16 Oct 2024 16:18:19 +0400 Subject: [PATCH] chore: update plugins and misc changes --- hypr/autostart.conf | 3 +++ hypr/mail.conf | 2 ++ nvim/lazy-lock.json | 2 ++ nvim/lua/themystery/plugins/conform.lua | 5 +++-- nvim/lua/themystery/plugins/copilot.lua | 1 + nvim/lua/themystery/plugins/init.lua | 3 ++- nvim/lua/themystery/plugins/lsp.lua | 3 ++- nvim/lua/themystery/plugins/noice.lua | 8 +++----- nvim/lua/themystery/plugins/treesitter.lua | 2 +- nvim/lua/themystery/plugins/whichkey.lua | 1 + 10 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 hypr/mail.conf diff --git a/hypr/autostart.conf b/hypr/autostart.conf index 602024a..9b52b1a 100755 --- a/hypr/autostart.conf +++ b/hypr/autostart.conf @@ -20,6 +20,9 @@ exec-once = wl-paste --type image --watch cliphist store #Stores only image data exec-once = python3 -m http.server -d /home/themystery/Bento +# auto-launch mail related stuff +source = ~/.config/hypr/mail.conf + # initialize it here so that other conf files could use it $mainMod = SUPER diff --git a/hypr/mail.conf b/hypr/mail.conf new file mode 100644 index 0000000..505af70 --- /dev/null +++ b/hypr/mail.conf @@ -0,0 +1,2 @@ +exec-once = thunderbird +exec-once = protonmail-bridge --cli diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 32d0e9c..ee7460b 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -44,6 +44,7 @@ "nvim-notify": { "branch": "master", "commit": "fbef5d32be8466dd76544a257d3f3dce20082a07" }, "nvim-recorder": { "branch": "main", "commit": "a3c268f706ffec4428ea74bba6dfa3a0b20afa37" }, "nvim-treesitter": { "branch": "master", "commit": "6511cd984ab4b21e28f83af488f38dc89c3b0586" }, + "nvim-treesitter-context": { "branch": "master", "commit": "78a81c7494e7d1a08dd1200b556933e513fd9f29" }, "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" }, "nvim-ufo": { "branch": "main", "commit": "203c9f434feec57909ab4b1e028abeb3349b7847" }, "nvim-web-devicons": { "branch": "master", "commit": "26220156aafb198b2de6a4cf80c1b120a3768da0" }, @@ -62,6 +63,7 @@ "vim-dadbod": { "branch": "master", "commit": "7888cb7164d69783d3dce4e0283decd26b82538b" }, "vim-dadbod-completion": { "branch": "master", "commit": "880f7e9f2959e567c718d52550f9fae1aa07aa81" }, "vim-dadbod-ui": { "branch": "master", "commit": "f29c85ab42861c6ef683289b0c6a51e0d436dcf6" }, + "vim-dotenv": { "branch": "master", "commit": "5c51cfcf8d87280d6414e03cd6b253eb70ecb800" }, "vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" }, "vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" }, "which-key.nvim": { "branch": "main", "commit": "fb070344402cfc662299d9914f5546d840a22126" }, diff --git a/nvim/lua/themystery/plugins/conform.lua b/nvim/lua/themystery/plugins/conform.lua index 2d923ac..c954c1b 100644 --- a/nvim/lua/themystery/plugins/conform.lua +++ b/nvim/lua/themystery/plugins/conform.lua @@ -20,8 +20,9 @@ return { lua = { "stylua" }, python = { "isort", "black" }, javascript = { "prettierd", "prettier", stop_after_first = true }, - rust = { "rustfmt" }, - go = { "gofmt" } + rust = { "rustfmt", "leptosfmt" }, + go = { "gofmt" }, + yaml = { "yamlfmt" } }, -- -- Set up format-on-save format_on_save = { timeout_ms = 500, lsp_fallback = true }, diff --git a/nvim/lua/themystery/plugins/copilot.lua b/nvim/lua/themystery/plugins/copilot.lua index 44467fc..35bd77e 100644 --- a/nvim/lua/themystery/plugins/copilot.lua +++ b/nvim/lua/themystery/plugins/copilot.lua @@ -1,5 +1,6 @@ return { "github/copilot.vim", + enabled = false, config = function() -- vim.g.copilot_no_tab_map = true vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, expr = true }) diff --git a/nvim/lua/themystery/plugins/init.lua b/nvim/lua/themystery/plugins/init.lua index 8149e56..0cc4d9d 100644 --- a/nvim/lua/themystery/plugins/init.lua +++ b/nvim/lua/themystery/plugins/init.lua @@ -77,5 +77,6 @@ return { color_square_width = 2, }) end - } + }, + "https://github.com/tpope/vim-dotenv" } diff --git a/nvim/lua/themystery/plugins/lsp.lua b/nvim/lua/themystery/plugins/lsp.lua index 5315efb..cf84ea8 100644 --- a/nvim/lua/themystery/plugins/lsp.lua +++ b/nvim/lua/themystery/plugins/lsp.lua @@ -1,8 +1,9 @@ return { { 'mrcjkb/rustaceanvim', - version = '^4', -- Recommended + version = '^5', -- Recommended ft = { 'rust' }, + lazy = false }, { "ray-x/go.nvim", diff --git a/nvim/lua/themystery/plugins/noice.lua b/nvim/lua/themystery/plugins/noice.lua index 0c78577..cd62b48 100644 --- a/nvim/lua/themystery/plugins/noice.lua +++ b/nvim/lua/themystery/plugins/noice.lua @@ -18,10 +18,10 @@ return { -- you can enable a preset for easier configuration presets = { bottom_search = true, -- use a classic bottom cmdline for search - command_palette = false, -- position the cmdline and popupmenu together + command_palette = false, -- position the cmdline and popupmenu together long_message_to_split = true, -- long messages will be sent to a split inc_rename = false, -- enables an input dialog for inc-rename.nvim - lsp_doc_border = true, -- add a border to hover docs and signature help + lsp_doc_border = true, -- add a border to hover docs and signature help }, routes = { { @@ -37,8 +37,6 @@ return { }, }) - require("notify").setup({ - background_colour = "#000000", - }) + require("notify").setup({}) end } diff --git a/nvim/lua/themystery/plugins/treesitter.lua b/nvim/lua/themystery/plugins/treesitter.lua index 004b16f..444f89d 100644 --- a/nvim/lua/themystery/plugins/treesitter.lua +++ b/nvim/lua/themystery/plugins/treesitter.lua @@ -32,6 +32,6 @@ return { require('rainbow-delimiters.setup').setup() end }, - -- "nvim-treesitter/nvim-treesitter-context" + "nvim-treesitter/nvim-treesitter-context" } diff --git a/nvim/lua/themystery/plugins/whichkey.lua b/nvim/lua/themystery/plugins/whichkey.lua index 9427793..ea29b87 100644 --- a/nvim/lua/themystery/plugins/whichkey.lua +++ b/nvim/lua/themystery/plugins/whichkey.lua @@ -1,6 +1,7 @@ return { "folke/which-key.nvim", event = "VeryLazy", + enabled = false, opts = { -- your configuration comes here -- or leave it empty to use the default settings