diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index d082ca4..58c1970 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -21,7 +21,6 @@ "lazygit.nvim": { "branch": "main", "commit": "de35012036d43bca03628d40d083f7c02a4cda3f" }, "lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "09be3766669bfbabbe2863c624749d8da392c916" }, - "mason-null-ls.nvim": { "branch": "main", "commit": "ae0c5fa57468ac65617f1bf821ba0c3a1e251f0c" }, "mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" }, "mini.bufremove": { "branch": "main", "commit": "f53c7f27e36009fe61563c11cde154b94a0e5b94" }, "mini.clue": { "branch": "main", "commit": "3162debaedf981e96e6db16263fdbcf754f0733b" }, @@ -32,7 +31,6 @@ "neogit": { "branch": "master", "commit": "01dc0a7e237a4d6d053cea2503f5dd1a81c1e310" }, "noice.nvim": { "branch": "main", "commit": "92433164e2f7118d4122c7674c3834d9511722ba" }, "nui.nvim": { "branch": "main", "commit": "c0c8e347ceac53030f5c1ece1c5a5b6a17a25b32" }, - "null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" }, "nvim": { "branch": "main", "commit": "ea52fe8a0b1e4a820df0d0cf9a6a5a0e18c3eaa0" }, "nvim-bqf": { "branch": "main", "commit": "8784eebf34371049b641646d00232c2603215297" }, "nvim-cmp": { "branch": "main", "commit": "51260c02a8ffded8e16162dcf41a23ec90cfba62" }, diff --git a/config/nvim/lua/aleidk/plugins/bufferline.lua b/config/nvim/lua/aleidk/plugins/bufferline.lua index c26c1ed..e2bd729 100644 --- a/config/nvim/lua/aleidk/plugins/bufferline.lua +++ b/config/nvim/lua/aleidk/plugins/bufferline.lua @@ -1,14 +1,13 @@ return { "akinsho/bufferline.nvim", event = "VeryLazy", - after = "onedark", keys = { - { "bp", "BufferLineTogglePin", desc = "Toggle pin" }, + { "bp", "BufferLineTogglePin", desc = "Toggle pin" }, { "bP", "BufferLineGroupClose ungrouped", desc = "Delete non-pinned buffers" }, - { "bh", "BufferLineMovePrev", desc = "Move buffer to right" }, - { "bl", "BufferLineMoveNext", desc = "Move buffer to left" }, - { "", "BufferLineCyclePrev", desc = "Prev buffer" }, - { "", "BufferLineCycleNext", desc = "Next buffer" }, + { "bh", "BufferLineMovePrev", desc = "Move buffer to right" }, + { "bl", "BufferLineMoveNext", desc = "Move buffer to left" }, + { "", "BufferLineCyclePrev", desc = "Prev buffer" }, + { "", "BufferLineCycleNext", desc = "Next buffer" }, }, dependencies = { { @@ -35,7 +34,7 @@ return { diagnostics_indicator = function(_, _, diag) local icons = require("aleidk.constants").icons.diagnostics local ret = (diag.error and icons.Error .. diag.error .. " " or "") - .. (diag.warning and icons.Warn .. diag.warning or "") + .. (diag.warning and icons.Warn .. diag.warning or "") return vim.trim(ret) end, -- return false to exluce buffers diff --git a/config/nvim/lua/aleidk/plugins/comments.lua b/config/nvim/lua/aleidk/plugins/comments.lua index f5ab339..62f1202 100644 --- a/config/nvim/lua/aleidk/plugins/comments.lua +++ b/config/nvim/lua/aleidk/plugins/comments.lua @@ -3,7 +3,7 @@ return { "echasnovski/mini.comment", version = "*", event = "VeryLazy", - depends = { + dependencies = { { "nvim-treesitter/nvim-treesitter-context" }, }, opts = { diff --git a/config/nvim/lua/aleidk/plugins/formatter.lua b/config/nvim/lua/aleidk/plugins/formatter.lua index adde68f..23af079 100644 --- a/config/nvim/lua/aleidk/plugins/formatter.lua +++ b/config/nvim/lua/aleidk/plugins/formatter.lua @@ -7,12 +7,14 @@ return { formatters_by_ft = { -- Conform will run multiple formatters sequentially lua = { "stylua" }, - python = { "black" }, + python = { "blue" }, -- Use a sub-list to run only the first available formatter javascript = { { "prettierd", "prettier" } }, typescript = { { "prettierd", "prettier" } }, javascriptreact = { { "prettierd", "prettier" } }, typescriptreact = { { "prettierd", "prettier" } }, + css = { { "prettierd", "prettier" } }, + sh = { "shfmt" }, -- Use the "_" filetype to run formatters on filetypes that don't -- have other formatters configured. ["_"] = { "trim_whitespace" }, diff --git a/config/nvim/lua/aleidk/plugins/init.lua b/config/nvim/lua/aleidk/plugins/init.lua index fb328ba..867e3a1 100644 --- a/config/nvim/lua/aleidk/plugins/init.lua +++ b/config/nvim/lua/aleidk/plugins/init.lua @@ -10,15 +10,6 @@ return { dependencies = { "hrsh7th/cmp-nvim-lsp", "L3MON4D3/LuaSnip", "saadparwaiz1/cmp_luasnip" }, }, - { - "jay-babu/mason-null-ls.nvim", - event = { "BufReadPre", "BufNewFile" }, - dependencies = { - "williamboman/mason.nvim", - "jose-elias-alvarez/null-ls.nvim", - }, - }, - { "famiu/bufdelete.nvim", config = nil, diff --git a/config/nvim/lua/aleidk/plugins/key-help.lua b/config/nvim/lua/aleidk/plugins/key-help.lua index dcf749b..c6088c8 100644 --- a/config/nvim/lua/aleidk/plugins/key-help.lua +++ b/config/nvim/lua/aleidk/plugins/key-help.lua @@ -50,7 +50,6 @@ return { { mode = "n", keys = "b", desc = "+Buffers" }, { mode = "n", keys = "bh", postkeys = "b" }, { mode = "n", keys = "bl", postkeys = "b" }, - { mode = "n", keys = "c", desc = "+Comments" }, { mode = "n", keys = "f", desc = "+Find" }, { mode = "n", keys = "g", desc = "+Git" }, { mode = "n", keys = "l", desc = "+LSP" }, @@ -66,10 +65,8 @@ return { config = { width = "auto", }, - -- Delay before showing clue window delay = 200, - -- Keys to scroll inside the clue window scroll_down = "", scroll_up = "", diff --git a/config/nvim/lua/aleidk/plugins/linters.lua b/config/nvim/lua/aleidk/plugins/linters.lua index 6e6b2b1..7809c53 100644 --- a/config/nvim/lua/aleidk/plugins/linters.lua +++ b/config/nvim/lua/aleidk/plugins/linters.lua @@ -8,6 +8,8 @@ return { javascriptreact = { "eslint_d" }, typescriptreact = { "eslint_d" }, -- astro = { "eslint_d" }, + python = { "pyright" }, + sh = { "shellcheck" }, } vim.api.nvim_create_autocmd({ "BufWritePost" }, { diff --git a/config/nvim/lua/aleidk/plugins/lsp.lua b/config/nvim/lua/aleidk/plugins/lsp.lua index e9b0585..38aeb4e 100644 --- a/config/nvim/lua/aleidk/plugins/lsp.lua +++ b/config/nvim/lua/aleidk/plugins/lsp.lua @@ -5,7 +5,6 @@ return { -- Automatically install LSPs to stdpath for neovim { "williamboman/mason.nvim" }, "williamboman/mason-lspconfig.nvim", - -- Additional lua configuration, makes nvim stuff amazing! { "folke/neodev.nvim", opts = {} }, }, diff --git a/config/nvim/lua/aleidk/plugins/lualine.lua b/config/nvim/lua/aleidk/plugins/lualine.lua index 66e7ef5..bc65270 100644 --- a/config/nvim/lua/aleidk/plugins/lualine.lua +++ b/config/nvim/lua/aleidk/plugins/lualine.lua @@ -1,13 +1,12 @@ return { "nvim-lualine/lualine.nvim", - event = "VeryLazy", - depends = { + lazy = false, + dependencies = { "nvim-tree/nvim-web-devicons", }, opts = function() local icons = require("aleidk.constants").icons - -- local Util = require("lazyvim.util") - -- + local function diff_source() local gitsigns = vim.b.gitsigns_status_dict if gitsigns then @@ -69,7 +68,7 @@ return { }, }, lualine_x = { - { "require'lsp-status'.status()" }, + {}, }, lualine_y = { { "location", padding = 0 }, diff --git a/config/nvim/lua/aleidk/plugins/mason.lua b/config/nvim/lua/aleidk/plugins/mason.lua index 68a4c18..9a973b6 100644 --- a/config/nvim/lua/aleidk/plugins/mason.lua +++ b/config/nvim/lua/aleidk/plugins/mason.lua @@ -2,9 +2,11 @@ return { "williamboman/mason.nvim", opts = { ensure_installed = { - "typescript-language-server", "eslint_d", "shellcheck", + "stylua", + "blue", + "prettierd", }, }, } diff --git a/config/nvim/lua/aleidk/plugins/pretty-fold.lua b/config/nvim/lua/aleidk/plugins/pretty-fold.lua index 280dbfc..d87ab95 100644 --- a/config/nvim/lua/aleidk/plugins/pretty-fold.lua +++ b/config/nvim/lua/aleidk/plugins/pretty-fold.lua @@ -1,42 +1,42 @@ return { - "anuvyklack/pretty-fold.nvim", - config = { - sections = { - left = { - "+", - function() - return string.rep("-", vim.v.foldlevel) - end, - " ", - "content", - " ", - "number_of_folded_lines", - " ", - function() - return string.rep("-", vim.v.foldlevel) - end, - "+", - }, - }, - fill_char = " ", + "anuvyklack/pretty-fold.nvim", + opts = { + sections = { + left = { + "+", + function() + return string.rep("-", vim.v.foldlevel) + end, + " ", + "content", + " ", + "number_of_folded_lines", + " ", + function() + return string.rep("-", vim.v.foldlevel) + end, + "+", + }, + }, + fill_char = " ", - -- Possible values: - -- "delete" : Delete all comment signs from the fold string. - -- "spaces" : Replace all comment signs with equal number of spaces. - -- false : Do nothing with comment signs. - process_comment_signs = "delete", + -- Possible values: + -- "delete" : Delete all comment signs from the fold string. + -- "spaces" : Replace all comment signs with equal number of spaces. + -- false : Do nothing with comment signs. + process_comment_signs = "delete", - -- List of patterns that will be removed from content foldtext section. - stop_words = { - "@brief%s*", -- (for C++) Remove '@brief' and all spaces after. - }, + -- List of patterns that will be removed from content foldtext section. + stop_words = { + "@brief%s*", -- (for C++) Remove '@brief' and all spaces after. + }, - matchup_patterns = { - { "{", "}" }, - { "%(", ")" }, -- % to escape lua pattern char - { "%[", "]" }, -- % to escape lua pattern char - }, + matchup_patterns = { + { "{", "}" }, + { "%(", ")" }, -- % to escape lua pattern char + { "%[", "]" }, -- % to escape lua pattern char + }, - ft_ignore = { "neorg" }, - }, + ft_ignore = { "neorg" }, + }, } diff --git a/config/nvim/lua/aleidk/plugins/quickfix.lua b/config/nvim/lua/aleidk/plugins/quickfix.lua index b2da610..af1a80b 100644 --- a/config/nvim/lua/aleidk/plugins/quickfix.lua +++ b/config/nvim/lua/aleidk/plugins/quickfix.lua @@ -90,7 +90,7 @@ return { end end - MAP("n", "fq", toggle_qf, "Toggle quickfix") + MAP("n", "fQ", toggle_qf, "Toggle quickfix") end, }, } diff --git a/config/nvim/lua/aleidk/plugins/telescope.lua b/config/nvim/lua/aleidk/plugins/telescope.lua index b0aca4b..5495a8d 100644 --- a/config/nvim/lua/aleidk/plugins/telescope.lua +++ b/config/nvim/lua/aleidk/plugins/telescope.lua @@ -53,7 +53,6 @@ return { -- Find files vim.keymap.set("n", "fb", builtin.buffers, { desc = "Find buffers" }) - vim.keymap.set("n", "fq", builtin.quickfix, { desc = "Find in quickfix" }) vim.keymap.set("n", "ff", builtin.find_files, { desc = "Find files" }) vim.keymap.set("n", "fF", function() builtin.find_files({ hidden = true, no_ignore = true }) diff --git a/config/nvim/lua/aleidk/plugins/todo-comments.lua b/config/nvim/lua/aleidk/plugins/todo-comments.lua index f41027c..33f2372 100644 --- a/config/nvim/lua/aleidk/plugins/todo-comments.lua +++ b/config/nvim/lua/aleidk/plugins/todo-comments.lua @@ -3,11 +3,11 @@ return { cmd = { "TodoTrouble", "TodoTelescope" }, event = { "BufReadPost", "BufNewFile" }, config = true, - -- stylua: ignore - keys = { - { "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" }, - { "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" }, - { "ft", "TodoTrouble", desc = "Todo (Trouble)" }, - { "fT", "TodoTelescope", desc = "Todo" }, - }, + -- stylua: ignore + keys = { + { "]t", function() require("todo-comments").jump_next() end, desc = "Next todo comment" }, + { "[t", function() require("todo-comments").jump_prev() end, desc = "Previous todo comment" }, + { "ft", "TodoTrouble", desc = "Find todos (Trouble)" }, + { "fT", "TodoTelescope", desc = "Find todos (Telescope)" }, + }, } diff --git a/config/nvim/lua/aleidk/plugins/trouble.lua b/config/nvim/lua/aleidk/plugins/trouble.lua index a640e87..58244df 100644 --- a/config/nvim/lua/aleidk/plugins/trouble.lua +++ b/config/nvim/lua/aleidk/plugins/trouble.lua @@ -2,6 +2,9 @@ return { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons" }, cmd = { "TroubleToggle", "Trouble" }, + keys = { + { "fq", "TroubleToggle", desc = "Toggle trouble" }, + }, config = function() require("trouble").setup({ mode = "document_diagnostics", @@ -11,7 +14,5 @@ return { open_tab = "t", }, }) - - MAP("n", "fd", "TroubleToggle", { silent = true, desc = "Search diagnostics" }) end, } diff --git a/config/nvim/lua/aleidk/plugins/ts-node-action.lua b/config/nvim/lua/aleidk/plugins/ts-node-action.lua index 7dc3ad1..1dc970d 100644 --- a/config/nvim/lua/aleidk/plugins/ts-node-action.lua +++ b/config/nvim/lua/aleidk/plugins/ts-node-action.lua @@ -1,20 +1,12 @@ return { { "ckolkey/ts-node-action", - dependencies = { "nvim-treesitter", "jose-elias-alvarez/null-ls.nvim" }, + dependencies = { "nvim-treesitter" }, + event = "VeryLazy", config = function() require("ts-node-action").setup({}) vim.keymap.set({ "n" }, "lA", require("ts-node-action").node_action, { desc = "Node Action" }) - - require("null-ls").register({ - name = "more_actions", - method = { require("null-ls").methods.CODE_ACTION }, - filetypes = { "_all" }, - generator = { - fn = require("ts-node-action").available_actions, - }, - }) end, }, { diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 01a5e3b..d5aaa3c 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -13,6 +13,7 @@ bind -T copy-mode-vi v send-keys -X begin-selection bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy" # set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q' set -sg escape-time 0 +set-option -g focus-events on ## Keybindings unbind C-b