add neotree configs and remove redundant stuff
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
|
||||||
|
|
||||||
-- AstroCommunity: import any community modules here
|
-- AstroCommunity: import any community modules here
|
||||||
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
|
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
|
||||||
-- This guarantees that the specs are processed before any user plugins.
|
-- This guarantees that the specs are processed before any user plugins.
|
||||||
|
|
||||||
---@type LazySpec
|
---@type LazySpec
|
||||||
return {
|
return {
|
||||||
"AstroNvim/astrocommunity",
|
'AstroNvim/astrocommunity',
|
||||||
{ import = "astrocommunity.pack.lua" },
|
|
||||||
-- import/override with your plugins folder
|
{ import = 'astrocommunity.pack.lua' },
|
||||||
|
{ import = 'astrocommunity.pack.go' },
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,18 +7,6 @@ return {
|
|||||||
opts = {
|
opts = {
|
||||||
-- Make sure to use the names found in `:Mason`
|
-- Make sure to use the names found in `:Mason`
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
-- install language servers
|
|
||||||
'lua-language-server',
|
|
||||||
'gopls',
|
|
||||||
|
|
||||||
-- install formatters
|
|
||||||
'stylua',
|
|
||||||
'goimports',
|
|
||||||
|
|
||||||
-- install debuggers
|
|
||||||
-- 'debugpy',
|
|
||||||
-- "delve",
|
|
||||||
|
|
||||||
-- install any other package
|
-- install any other package
|
||||||
'tree-sitter-cli',
|
'tree-sitter-cli',
|
||||||
},
|
},
|
||||||
|
|||||||
18
lua/plugins/neo-tree.lua
Normal file
18
lua/plugins/neo-tree.lua
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
return {
|
||||||
|
'nvim-neo-tree/neo-tree.nvim',
|
||||||
|
opts = function(_, opts)
|
||||||
|
opts.filesystem.filtered_items = {
|
||||||
|
visible = true,
|
||||||
|
always_show = { -- remains visible even if other settings would normally hide it
|
||||||
|
'.gitignore',
|
||||||
|
},
|
||||||
|
always_show_by_pattern = {
|
||||||
|
'.env*',
|
||||||
|
},
|
||||||
|
never_show = { -- remains hidden even if visible is toggled to true, this overrides always_show
|
||||||
|
'.DS_Store',
|
||||||
|
--"thumbs.db"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
return {
|
|
||||||
'mfussenegger/nvim-dap',
|
|
||||||
dependencies = {
|
|
||||||
'leoluz/nvim-dap-go',
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local dapgo = require 'dap-go'
|
|
||||||
|
|
||||||
dapgo.setup {}
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@@ -2,20 +2,18 @@
|
|||||||
|
|
||||||
---@type LazySpec
|
---@type LazySpec
|
||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
'nvim-treesitter/nvim-treesitter',
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
'bash',
|
||||||
"diff",
|
'diff',
|
||||||
"go",
|
'html',
|
||||||
"html",
|
'luadoc',
|
||||||
"lua",
|
'markdown',
|
||||||
"luadoc",
|
'markdown_inline',
|
||||||
"markdown",
|
'query',
|
||||||
"markdown_inline",
|
'vim',
|
||||||
"query",
|
'vimdoc',
|
||||||
"vim",
|
|
||||||
"vimdoc",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,13 +42,13 @@ return {
|
|||||||
},
|
},
|
||||||
|
|
||||||
-- You can disable default plugins as follows:
|
-- You can disable default plugins as follows:
|
||||||
-- { "max397574/better-escape.nvim", enabled = false },
|
{ 'max397574/better-escape.nvim', enabled = false },
|
||||||
|
|
||||||
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
|
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
|
||||||
{
|
{
|
||||||
'L3MON4D3/LuaSnip',
|
'L3MON4D3/LuaSnip',
|
||||||
config = function(plugin, opts)
|
config = function(plugin, opts)
|
||||||
require 'astronvim.plugins.configs.luasnip' (plugin, opts) -- include the default astronvim config that calls the setup call
|
require 'astronvim.plugins.configs.luasnip'(plugin, opts) -- include the default astronvim config that calls the setup call
|
||||||
-- add more custom luasnip configuration such as filetype extend or custom snippets
|
-- add more custom luasnip configuration such as filetype extend or custom snippets
|
||||||
local luasnip = require 'luasnip'
|
local luasnip = require 'luasnip'
|
||||||
luasnip.filetype_extend('javascript', { 'javascriptreact' })
|
luasnip.filetype_extend('javascript', { 'javascriptreact' })
|
||||||
@@ -58,7 +58,7 @@ return {
|
|||||||
{
|
{
|
||||||
'windwp/nvim-autopairs',
|
'windwp/nvim-autopairs',
|
||||||
config = function(plugin, opts)
|
config = function(plugin, opts)
|
||||||
require 'astronvim.plugins.configs.nvim-autopairs' (plugin, opts) -- include the default astronvim config that calls the setup call
|
require 'astronvim.plugins.configs.nvim-autopairs'(plugin, opts) -- include the default astronvim config that calls the setup call
|
||||||
-- local npairs = require "nvim-autopairs"
|
-- local npairs = require "nvim-autopairs"
|
||||||
-- local Rule = require "nvim-autopairs.rule"
|
-- local Rule = require "nvim-autopairs.rule"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user