diff --git a/dot_config/nvim/lua/plugins/base.lua b/dot_config/nvim/lua/plugins/base.lua index a101052..f406319 100644 --- a/dot_config/nvim/lua/plugins/base.lua +++ b/dot_config/nvim/lua/plugins/base.lua @@ -1,5 +1,19 @@ -- Base plugins and libraries return { - "nvim-lua/plenary.nvim" + "nvim-lua/plenary.nvim", + { + "folke/snacks.nvim", + priority = 1000, -- needs to be set up early + lazy = false, + opts = { + bigfiles = { enabled = true }, + dashboard = { enabled = true }, + indent = { enabled = true, animate = { enabled = false } }, + input = { enabled = true }, + lazygit = { enabled = true }, + quickfile = { enabled = true }, + statuscolumn = { enabled = true } + } + } } diff --git a/dot_config/nvim/lua/plugins/lsp.lua b/dot_config/nvim/lua/plugins/lsp.lua new file mode 100644 index 0000000..ca531b1 --- /dev/null +++ b/dot_config/nvim/lua/plugins/lsp.lua @@ -0,0 +1,48 @@ +-- LSP, linting, formatting, etc... + +return { + { + "williamboman/mason.nvim", + config = function() + require("mason").setup() + end + }, + { + "williamboman/mason-lspconfig.nvim", + config = function() + require("mason-lspconfig").setup() + end, + }, + { + "neovim/nvim-lspconfig", + dependencies = { + "mason.nvim", + "williamboman/mason-lspconfig.nvim", + }, + config = function() + require("lspconfig").lua_ls.setup {} + end + }, + { + "folke/lazydev.nvim", + ft = "lua", + opts = {}, + }, + { + "saghen/blink.cmp", + version = "1.*", + opts = { + keymap = { preset = "default" }, + sources = { + default = { "lazydev", "lsp", "path", "snippets", "buffer" }, + providers = { + lazydev = { + name = "LazyDev", + module = "lazydev.integrations.blink", + score_offset = 100 + } + } + } + } + } +} diff --git a/dot_config/nvim/lua/plugins/telescope.lua b/dot_config/nvim/lua/plugins/telescope.lua index 1a2c0ed..70b18ad 100644 --- a/dot_config/nvim/lua/plugins/telescope.lua +++ b/dot_config/nvim/lua/plugins/telescope.lua @@ -1,7 +1,14 @@ -- Telescope, and other file picker-related plugins return { - "nvim-telescope/telescope.nvim", +{ + "nvim-telescope/telescope.nvim", + config = function() + local telescope = require("telescope") + telescope.setup() + telescope.load_extension("chezmoi") + end + }, { "xvzc/chezmoi.nvim", config = function() @@ -19,5 +26,5 @@ return { }) } end - } + }, }