diff --git a/nvim/init.lua b/nvim/init.lua index d7456f7..53fb6c5 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -32,3 +32,4 @@ vim.wo.number = true vim.opt.fillchars = { vert = " " } +vim.cmd[[colorscheme dracula]] diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 8f97650..c32abab 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -11,6 +11,7 @@ "mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" }, "mkdnflow.nvim": { "branch": "main", "commit": "8065d69e73a2623203138bca9dc436df7784ef11" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "29f7c215332ba95e470811c380ddbce2cebe2af4" }, + "noice.nvim": { "branch": "main", "commit": "88ac36864b5976a64b14a8f156c616f41b32f228" }, "nui.nvim": { "branch": "main", "commit": "322978c734866996274467de084a95e4f9b5e0b1" }, "nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" }, "nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" }, @@ -20,7 +21,6 @@ "nvim-ts-autotag": { "branch": "main", "commit": "ddfccbf0df1b9349c2b9e9b17f4afa8f9b6c1ed1" }, "nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" }, "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, - "telescope-cmdline.nvim": { "branch": "main", "commit": "1c6a169d84a5e8f0c796f8275bdbb8019bd3ca14" }, "telescope.nvim": { "branch": "master", "commit": "f2bfde705ac752c52544d5cfa8b0aee0a766c1ed" }, "trouble.nvim": { "branch": "main", "commit": "2d8610a07033f2b367e71230ab128f8b89c2639d" } } \ No newline at end of file diff --git a/nvim/lua/plugins/dracula.lua b/nvim/lua/plugins/dracula.lua index 7564eaf..acd8f50 100644 --- a/nvim/lua/plugins/dracula.lua +++ b/nvim/lua/plugins/dracula.lua @@ -1,53 +1,5 @@ return { - { - 'maxmx03/dracula.nvim', - lazy = false, - priority = 1000, - config = function () - ---@type dracula - local dracula = require "dracula" - - dracula.setup({ - transparent = false, - on_colors = function (colors, color) - ---@type dracula.palette - return { - -- override or create new colors - mycolor = "#ffffff", - } - end, - on_highlights = function (colors, color) - ---@type dracula.highlights - return { - ---@type vim.api.keyset.highlight - Normal = { fg = colors.mycolor } - } - end, - plugins = { - ["nvim-treesitter"] = true, - ["nvim-lspconfig"] = true, - ["nvim-navic"] = true, - ["nvim-cmp"] = true, - ["indent-blankline.nvim"] = true, - ["neo-tree.nvim"] = true, - ["nvim-tree.lua"] = true, - ["which-key.nvim"] = true, - ["dashboard-nvim"] = true, - ["gitsigns.nvim"] = true, - ["neogit"] = true, - ["todo-comments.nvim"] = true, - ["lazy.nvim"] = true, - ["telescope.nvim"] = true, - ["noice.nvim"] = true, - ["hop.nvim"] = true, - ["mini.statusline"] = true, - ["mini.tabline"] = true, - ["mini.starter"] = true, - ["mini.cursorword"] = true, - } - }) - vim.cmd.colorscheme 'dracula' - vim.cmd.colorscheme 'dracula-soft' - end - } + "binhtran432k/dracula.nvim", + lazy = false, + opts = {}, } diff --git a/nvim/lua/plugins/noice.lua b/nvim/lua/plugins/noice.lua new file mode 100644 index 0000000..a1f7be4 --- /dev/null +++ b/nvim/lua/plugins/noice.lua @@ -0,0 +1,30 @@ +return { + { + "folke/noice.nvim", + event = "VeryLazy", + dependencies = { + "MunifTanjim/nui.nvim", + "rcarriga/nvim-notify" + }, + config = function () + require("noice").setup({ + lsp = { + -- override markdown rendering so that **cmp** and other plugins use **Treesitter** + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, -- requires hrsh7th/nvim-cmp + } + }, + -- you can enable a preset for easier configuration + presets = { + bottom_search = true, -- use a classic bottom cmdline for search + command_palette = true, -- 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 = false, -- add a border to hover docs and signature help + } + }) + end + } +} diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index bcb3072..42f52c4 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -1,16 +1,6 @@ return { { 'nvim-telescope/telescope.nvim', - dependencies = { - 'nvim-lua/plenary.nvim', - 'jonarrien/telescope-cmdline.nvim' - }, - keys = { - { ':', 'Telescope cmdline', desc = 'Cmdline' }, - }, - config = function(_, opts) - require("telescope").setup(opts) - require("telescope").load_extension('cmdline') - end + dependencies = { 'nvim-lua/plenary.nvim' } } }