diff options
Diffstat (limited to '.config/nvim/lua/plugins.lua')
-rw-r--r-- | .config/nvim/lua/plugins.lua | 47 |
1 files changed, 32 insertions, 15 deletions
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 8f274b0..711116a 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -69,7 +69,8 @@ local PKGS = { { url = "https://github.com/ray-x/lsp_signature.nvim.git" }; { url = "https://github.com/Hoffs/omnisharp-extended-lsp.nvim.git" }; { url = "https://github.com/lewis6991/gitsigns.nvim.git" }; - { url = "https://github.com/jose-elias-alvarez/null-ls.nvim.git" }; + -- Deprecated + -- { url = "https://github.com/jose-elias-alvarez/null-ls.nvim.git" }; { url = "https://github.com/mfussenegger/nvim-dap.git" }; { url = "https://github.com/rcarriga/nvim-dap-ui.git" }; { url = "https://github.com/antoinemadec/FixCursorHold.nvim.git" }; @@ -86,6 +87,21 @@ local PKGS = { local function init_plugins() local paq = require("paq") + local indent_blankline = require("indent_blankline") + local colorizer = require("colorizer") + local ufo = require("ufo") + local catppuccin = require("catppuccin") + local osc52 = require("osc52") + local devcontainer = require("devcontainer") + local whichkey = require("which-key") + local orgmode = require("orgmode") + local nvim_treesitter_config = require("nvim-treesitter.configs") + local mini_surround = require("mini.surround") + local mini_comment = require("mini.comment") + local gitsigns = require("gitsigns") + local marks = require("marks") + local neotest = require("neotest") + paq(PKGS) vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]] @@ -95,7 +111,7 @@ local function init_plugins() vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]] vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]] - require("indent_blankline").setup { + indent_blankline.setup { char_highlight_list = { "IndentBlanklineIndent1"; "IndentBlanklineIndent2"; @@ -110,7 +126,7 @@ local function init_plugins() show_current_context_start = true; } - require("colorizer").setup({ "*" }, { + colorizer.setup({ "*" }, { RGB = true; -- #RGB hex codes RRGGBB = true; -- #RRGGBB hex codes names = true; -- "Name" codes like Blue @@ -127,13 +143,13 @@ local function init_plugins() vim.g.minimap_highlight_range = 1 vim.g.minimap_highlight_search = 1 - require("ufo").setup({ + ufo.setup({ provider_selector = function(bufnr, filetype, buftype) return { "treesitter"; "indent" } end; }); - require("catppuccin").setup({ + catppuccin.setup({ transparent_background = true; show_end_of_line = true; term_colors = true; @@ -144,18 +160,17 @@ local function init_plugins() vim.o.foldlevelstart = 99 vim.o.foldenable = true - require("osc52").setup { + osc52.setup { max_length = 0; -- Maximum length of selection (0 for no limit) silent = false; -- Disable message on successful copy trim = false; -- Trim surrounding whitespaces before copy } - require("devcontainer").setup({}) - require("which-key").setup({}) + devcontainer.setup({ always_mount = {} }) + whichkey.setup({}) - local orgmode = require("orgmode") orgmode.setup_ts_grammar() - require("nvim-treesitter.configs").setup({ + nvim_treesitter_config.setup({ ensure_installed = { "javascript"; "typescript"; @@ -164,6 +179,8 @@ local function init_plugins() "jsonc"; "org"; }; + ignore_install = {}; + modules = {}; sync_install = false; auto_install = true; highlight = { @@ -174,8 +191,8 @@ local function init_plugins() }) orgmode.setup({ org_default_notes_file = "~/.cache/org/refile.org" }) - require("mini.surround").setup({}) - require("mini.comment").setup({ + mini_surround.setup({}) + mini_comment.setup({ -- Options which control module behavior options = { -- Whether to ignore blank lines @@ -202,7 +219,7 @@ local function init_plugins() }; }) - require("gitsigns").setup { + gitsigns.setup { signs = { add = { hl = "GitSignsAdd"; @@ -270,7 +287,7 @@ local function init_plugins() yadm = { enable = false }; } - require("marks").setup({ + marks.setup({ -- whether to map keybinds or not. default true default_mappings = false; -- which builtin marks to show. default {} @@ -294,7 +311,7 @@ local function init_plugins() mappings = {}; }) - require("neotest").setup({ adapters = { require("neotest-dotnet") } }) + neotest.setup({ adapters = { require("neotest-dotnet") } }) end local function clone_paq() |