diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 6d71bf2..197123a 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -10,9 +10,11 @@ require("lazy").setup({ spec = { -- add LazyVim and import its plugins { "jul-o/LazyVim", import = "lazyvim.plugins" }, + { import = "lazyvim.plugins.extras.linting.eslint" }, + { import = "lazyvim.plugins.extras.formatting.prettier" }, -- import any extras modules here - -- { import = "lazyvim.plugins.extras.lang.typescript" }, - -- { import = "lazyvim.plugins.extras.lang.json" }, + { import = "lazyvim.plugins.extras.lang.typescript" }, + { import = "lazyvim.plugins.extras.lang.json" }, -- { import = "lazyvim.plugins.extras.ui.mini-animate" }, -- import/override with your plugins { import = "plugins" }, diff --git a/lua/plugins/cmp-nvim-lsp.lua b/lua/plugins/cmp-nvim-lsp.lua new file mode 100644 index 0000000..fe0c620 --- /dev/null +++ b/lua/plugins/cmp-nvim-lsp.lua @@ -0,0 +1,9 @@ +return { + "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-path", + "saadparwaiz1/cmp_luasnip", + cond = function() + return require("lazyvim.util").has("nvim-cmp") + end, +} diff --git a/lua/plugins/mason.lua b/lua/plugins/mason.lua new file mode 100644 index 0000000..316cd5e --- /dev/null +++ b/lua/plugins/mason.lua @@ -0,0 +1,8 @@ +-- return { +-- "williamboman/mason.nvim", +-- opts = function(_, opts) +-- table.insert(opts.ensure_installed, "prettierd") +-- end, +-- } + +return {} diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua index b96efdf..0a605f6 100644 --- a/lua/plugins/neotree.lua +++ b/lua/plugins/neotree.lua @@ -10,5 +10,11 @@ return { [""] = false, }, }, + filesystem = { + filtered_items = { + visible = true, + hide_dotfiles = false, + }, + }, }, } diff --git a/lua/plugins/null-ls.lua b/lua/plugins/null-ls.lua new file mode 100644 index 0000000..ae7a335 --- /dev/null +++ b/lua/plugins/null-ls.lua @@ -0,0 +1,7 @@ +return { + "jose-elias-alvarez/null-ls.nvim", + opts = function(_, opts) + local nls = require("null-ls") + table.insert(opts.sources, nls.builtins.formatting.prettierd) + end, +} diff --git a/lua/plugins/nvim-treesitter.lua b/lua/plugins/nvim-treesitter.lua new file mode 100644 index 0000000..bbcdb00 --- /dev/null +++ b/lua/plugins/nvim-treesitter.lua @@ -0,0 +1,11 @@ +return { + "nvim-treesitter/nvim-treesitter", + opts = { + autotag = { + enable = true, + }, + }, + dependencies = { + { "windwp/nvim-ts-autotag" }, + }, +} diff --git a/lua/plugins/nvim-ts-autotag.lua b/lua/plugins/nvim-ts-autotag.lua new file mode 100644 index 0000000..af3d09d --- /dev/null +++ b/lua/plugins/nvim-ts-autotag.lua @@ -0,0 +1,3 @@ +return { + "windwp/nvim-ts-autotag", +}