diff --git a/lazy-lock.json b/lazy-lock.json index fc2aae7..10b395c 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -17,9 +17,12 @@ "java.nvim": { "branch": "main", "commit": "be6b5775dc2f757ce605459f5bc33167aedcdfbc" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "lspsaga.nvim": { "branch": "main", "commit": "8efe00d6aed9db6449969f889170f1a7e43101a1" }, + "markview.nvim": { "branch": "main", "commit": "2f071fd428b2cabd3271b45f5b046db43b60c1da" }, "mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" }, "menu": { "branch": "main", "commit": "7a0a4a2896b715c066cfbe320bdc048091874cc6" }, "minty": { "branch": "main", "commit": "aafc9e8e0afe6bf57580858a2849578d8d8db9e0" }, + "noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" }, + "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" }, "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, "nvim-jdtls": { "branch": "master", "commit": "4d77ff02063cf88963d5cf10683ab1fd15d072de" }, diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index fe55300..f2d9fa4 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -8,6 +8,7 @@ local servers = { ts_ls = {}, dartls = {}, jdtls = {}, + texlab = {}, } for name, opts in pairs(servers) do diff --git a/lua/custom/plugins/markview.lua b/lua/custom/plugins/markview.lua new file mode 100644 index 0000000..4f08ebd --- /dev/null +++ b/lua/custom/plugins/markview.lua @@ -0,0 +1,16 @@ +return { + "OXY2DEV/markview.nvim", + lazy = false, + + priority = 49, + config = function() + require("markview").setup { + preview = { + filetypes = { "markdown", "latex" }, + }, + latex = { + enable = true, + }, + } + end, +} diff --git a/lua/custom/plugins/noice.lua b/lua/custom/plugins/noice.lua new file mode 100644 index 0000000..175188b --- /dev/null +++ b/lua/custom/plugins/noice.lua @@ -0,0 +1,48 @@ +return { + "folke/noice.nvim", + event = "VeryLazy", + opts = { + -- add any options here + }, + dependencies = { + -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries + "MunifTanjim/nui.nvim", + }, + config = function() + require("noice").setup { + views = { + cmdline_popup = { + position = { + row = "50%", + col = "50%", + }, + popupmenu = { + relative = "cmdline", + }, + }, + }, + -- 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 + }, + messages = { + enabled = false, + }, + notify = { + enabled = false, + }, + commands = { + enabled = false, + }, + lsp = { + progress = { + enabled = false, + }, + }, + } + end, +} diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 7917220..7fb0a7b 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -18,6 +18,7 @@ return { -- treesitter, to have highlighting { "nvim-treesitter/nvim-treesitter", + dependencies = { "OXY2DEV/markview.nvim" }, opts = { ensure_installed = { "vim", @@ -28,6 +29,7 @@ return { "tsx", "typescript", "dart", + "latex", }, }, },