summaryrefslogtreecommitdiff
path: root/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua')
-rw-r--r--nvim/lua/config/lazy.lua61
-rw-r--r--nvim/lua/config/plugins.lua61
-rw-r--r--nvim/lua/config/plugins/blink-cmp.lua (renamed from nvim/lua/config/blink-cmp.lua)0
-rw-r--r--nvim/lua/config/plugins/fzf.lua (renamed from nvim/lua/config/fzf.lua)0
-rw-r--r--nvim/lua/config/plugins/tree-sitter.lua27
5 files changed, 89 insertions, 60 deletions
diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua
index 3cc2b8d..8a4118f 100644
--- a/nvim/lua/config/lazy.lua
+++ b/nvim/lua/config/lazy.lua
@@ -24,66 +24,7 @@ vim.g.maplocalleader = "\\"
-- Setup lazy.nvim
require("lazy").setup({
-- Plugins
- spec = {
- -- Color scheme
- { "ellisonleao/gruvbox.nvim", priority = 1000, config = true },
- -- Git integration
- { "tpope/vim-fugitive" },
- -- Shows git diff info in the gutter
- { "lewis6991/gitsigns.nvim" },
- -- comment gestures
- { "numToStr/Comment.nvim" },
- -- Fuzzy finder
- {
- "ibhagwan/fzf-lua",
- config = function()
- require("config.fzf")
- end,
- dependencies = { "nvim-tree/nvim-web-devicons" },
- opts = {},
- },
- -- Wrap text into quotes/parens
- {
- "kylechui/nvim-surround",
- version = "^3.0.0", -- stable, use main for latest
- event = "VeryLazy",
- config = function()
- require("nvim-surround").setup({})
- end
- },
- { "prettier/vim-prettier" },
- { "neovim/nvim-lspconfig" },
- { "b0o/schemastore.nvim" },
- {
- "nvim-mini/mini.files",
- branch = "main",
- dependencies = { "nvim-mini/mini.icons" },
- config = function()
- require('mini.files').setup({
- mappings = {
- go_in_plus = '<CR>',
- },
- windows = {
- preview = true,
- }
- })
- end,
- },
- require("config.blink-cmp"),
- {
- "f-person/auto-dark-mode.nvim",
- opts = {
- set_dark_mode = function()
- vim.api.nvim_set_option_value("background", "dark", {})
- end,
- set_light_mode = function()
- vim.api.nvim_set_option_value("background", "light", {})
- end,
- update_interval = 3000,
- fallback = "dark",
- }
- },
- },
+ spec = require('config.plugins'),
install = { colorscheme = { "gruvbox" } },
checker = { enabled = true, notify = false },
})
diff --git a/nvim/lua/config/plugins.lua b/nvim/lua/config/plugins.lua
new file mode 100644
index 0000000..c9496e3
--- /dev/null
+++ b/nvim/lua/config/plugins.lua
@@ -0,0 +1,61 @@
+return {
+ -- Color scheme
+ { "ellisonleao/gruvbox.nvim", priority = 1000, config = true },
+ -- Git integration
+ { "tpope/vim-fugitive" },
+ -- Shows git diff info in the gutter
+ { "lewis6991/gitsigns.nvim" },
+ -- comment gestures
+ { "numToStr/Comment.nvim" },
+ -- Fuzzy finder
+ {
+ "ibhagwan/fzf-lua",
+ config = function()
+ require("config.plugins.fzf")
+ end,
+ dependencies = { "nvim-tree/nvim-web-devicons" },
+ opts = {},
+ },
+ -- Wrap text into quotes/parens
+ {
+ "kylechui/nvim-surround",
+ version = "^3.0.0", -- stable, use main for latest
+ event = "VeryLazy",
+ config = function()
+ require("nvim-surround").setup({})
+ end
+ },
+ { "prettier/vim-prettier" },
+ { "neovim/nvim-lspconfig" },
+ { "b0o/schemastore.nvim" },
+ {
+ "nvim-mini/mini.files",
+ branch = "main",
+ dependencies = { "nvim-mini/mini.icons" },
+ config = function()
+ require('mini.files').setup({
+ mappings = {
+ go_in_plus = '<CR>',
+ },
+ windows = {
+ preview = false,
+ }
+ })
+ end,
+ },
+ require("config.plugins.blink-cmp"),
+ require("config.plugins.tree-sitter"),
+ {
+ "f-person/auto-dark-mode.nvim",
+ opts = {
+ set_dark_mode = function()
+ vim.api.nvim_set_option_value("background", "dark", {})
+ end,
+ set_light_mode = function()
+ vim.api.nvim_set_option_value("background", "light", {})
+ end,
+ update_interval = 3000,
+ fallback = "dark",
+ }
+ },
+}
diff --git a/nvim/lua/config/blink-cmp.lua b/nvim/lua/config/plugins/blink-cmp.lua
index c9c0447..c9c0447 100644
--- a/nvim/lua/config/blink-cmp.lua
+++ b/nvim/lua/config/plugins/blink-cmp.lua
diff --git a/nvim/lua/config/fzf.lua b/nvim/lua/config/plugins/fzf.lua
index d50ca35..d50ca35 100644
--- a/nvim/lua/config/fzf.lua
+++ b/nvim/lua/config/plugins/fzf.lua
diff --git a/nvim/lua/config/plugins/tree-sitter.lua b/nvim/lua/config/plugins/tree-sitter.lua
new file mode 100644
index 0000000..d37f98b
--- /dev/null
+++ b/nvim/lua/config/plugins/tree-sitter.lua
@@ -0,0 +1,27 @@
+return {
+ {
+ "nvim-treesitter/nvim-treesitter",
+ branch = 'master',
+ lazy = false,
+ build = ":TSUpdate",
+ config = function()
+ require'nvim-treesitter.configs'.setup {
+ -- A list of parser names, or "all" (the listed parsers MUST always be installed)
+ ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "markdown", "markdown_inline" },
+
+ -- Automatically install missing parsers when entering buffer
+ -- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
+ auto_install = true,
+
+ highlight = {
+ enable = true,
+ -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
+ -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
+ -- Using this option may slow down your editor, and you may see some duplicate highlights.
+ -- Instead of true it can also be a list of languages
+ additional_vim_regex_highlighting = false,
+ },
+ }
+ end
+ }
+}