diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 7ab3f9c..733e679 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -16,6 +16,7 @@ "friendly-snippets": { "branch": "main", "commit": "53d3df271d031c405255e99410628c26a8f0d2b0" }, "gitsigns.nvim": { "branch": "main", "commit": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9" }, "headlines.nvim": { "branch": "master", "commit": "e3d7bfdf40e41a020d966d35f8b48d75b90367d2" }, + "inc-rename.nvim": { "branch": "main", "commit": "6f9b5f9cb237e12935144cdc535322b8c93c1b25" }, "incline.nvim": { "branch": "main", "commit": "fdd7e08a6e3d0dd8d9aa02428861fa30c37ba306" }, "indent-blankline.nvim": { "branch": "master", "commit": "3c8a185da4b8ab7aef487219f5e001b11d4b6aaf" }, "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, diff --git a/.config/nvim/lua/plugins/coding.lua b/.config/nvim/lua/plugins/coding.lua new file mode 100644 index 0000000..58234da --- /dev/null +++ b/.config/nvim/lua/plugins/coding.lua @@ -0,0 +1,8 @@ +return { + -- Incremental rename + { + "smjonas/inc-rename.nvim", + cmd = "IncRename", + config = true, + }, +} diff --git a/.config/nvim/lua/plugins/disabled.lua b/.config/nvim/lua/plugins/disabled.lua index ce1c429..ec4e73d 100644 --- a/.config/nvim/lua/plugins/disabled.lua +++ b/.config/nvim/lua/plugins/disabled.lua @@ -4,4 +4,9 @@ return { "nvim-neo-tree/neo-tree.nvim", enabled = false, }, + + { + "folke/flash.nvim", + enabled = false, + }, } diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua new file mode 100644 index 0000000..5fb741b --- /dev/null +++ b/.config/nvim/lua/plugins/lsp.lua @@ -0,0 +1,28 @@ +return { + -- tools + { + "williamboman/mason.nvim", + opts = function(_, opts) + vim.list_extend(opts.ensure_installed, { + "codelldb", + "docker-compose-language-service", + "dockerfile-language-server", + "elixir-ls", + "eslint-lsp", + "json-lsp", + "markdownlint", + "prettier", + "rust-analyzer", + "shfmt", + "shellcheck", + -- TOML toolkit + "taplo", + "typescript-language-server", + "yaml-language-server", + "lua-language-server", + "stylua", + "luacheck", + }) + end, + }, +} diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua new file mode 100644 index 0000000..53eaa84 --- /dev/null +++ b/.config/nvim/lua/plugins/treesitter.lua @@ -0,0 +1,30 @@ +return { + { + "nvim-treesitter/nvim-treesitter", + opts = { + ensure_installed = { + "cmake", + "cpp", + "css", + "gitignore", + "go", + "graphql", + "http", + "rust", + "scss", + "sql", + }, + }, + config = function(_, opts) + require("nvim-treesitter.configs").setup(opts) + + -- MDX + vim.filetype.add({ + extension = { + mdx = "mdx", + }, + }) + vim.treesitter.language.register("markdown", "mdx") + end, + }, +} diff --git a/.config/nvim/lua/plugins/ui.lua b/.config/nvim/lua/plugins/ui.lua index f61713a..fd20386 100644 --- a/.config/nvim/lua/plugins/ui.lua +++ b/.config/nvim/lua/plugins/ui.lua @@ -71,4 +71,37 @@ return { }, }, }, + + -- statusline + { + "nvim-lualine/lualine.nvim", + event = "VeryLazy", + opts = { + options = { + -- globalstatus = false, + theme = "solarized_dark", + }, + }, + }, + + -- Dashboard + { + "nvimdev/dashboard-nvim", + event = "VimEnter", + opts = function(_, opts) + local logo = [[ + + ██╗ █████╗ ███████╗████████╗███████╗██████╗ ██╗ ██╗ + ██║██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔══██╗██║ ██║ + ██║███████║███████╗ ██║ █████╗ ██████╔╝██║ ██║ +██ ██║██╔══██║╚════██║ ██║ ██╔══╝ ██╔══██╗╚██╗ ██╔╝ +╚█████╔╝██║ ██║███████║ ██║ ███████╗██║ ██║ ╚████╔╝ + ╚════╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═══╝ + + ]] + + logo = string.rep("\n", 8) .. logo .. "\n\n" + opts.config.header = vim.split(logo, "\n") + end, + }, }