current nvim-config
This commit is contained in:
47
lua/plugins.lua
Normal file
47
lua/plugins.lua
Normal file
@@ -0,0 +1,47 @@
|
||||
return{
|
||||
{
|
||||
"kylechui/nvim-surround",
|
||||
version = "^3.0.0",
|
||||
event = "VeryLazy",
|
||||
config= function()
|
||||
require("nvim-surround").setup({})
|
||||
end
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
branch = 'master'
|
||||
},
|
||||
{
|
||||
'windwp/nvim-autopairs',
|
||||
event = "InsertEnter",
|
||||
config = true
|
||||
-- use opts = {} for passing setup options
|
||||
-- this is equivalent to setup({}) function
|
||||
},
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch="v3.x",
|
||||
dependencies={
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"MunifTanjim/nui.nvim",
|
||||
"3rd/image.nvim"
|
||||
}
|
||||
},
|
||||
|
||||
--{
|
||||
-- 'neovim/nvim-lspconfig'
|
||||
-- },
|
||||
{
|
||||
'hrsh7th/nvim-cmp'
|
||||
},
|
||||
{
|
||||
'L3MON4D3/LuaSnip',
|
||||
},
|
||||
{
|
||||
'saadparwaiz1/cmp_luasnip'
|
||||
},
|
||||
{
|
||||
'rafamadriz/friendly-snippets'
|
||||
}
|
||||
}
|
||||
9
lua/plugins/kanagawa.lua
Normal file
9
lua/plugins/kanagawa.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"rebelot/kanagawa.nvim",
|
||||
lazy=false,
|
||||
name = "kanagawa",
|
||||
priority = 1000,
|
||||
config=function()
|
||||
vim.cmd.colorscheme "kanagawa"
|
||||
end
|
||||
}
|
||||
8
lua/plugins/nvim-surround.lua
Normal file
8
lua/plugins/nvim-surround.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"kylechui/nvim-surround",
|
||||
version = "^3.0.0",
|
||||
event = "VeryLazy",
|
||||
config=function()
|
||||
require("nvim-surround").setup({})
|
||||
end
|
||||
}
|
||||
12
lua/plugins/telescope.lua
Normal file
12
lua/plugins/telescope.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.8',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config=function()
|
||||
--telescope
|
||||
local builtin = require("telescope.builtin")
|
||||
vim.keymap.set('n', '<C-p>', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>fo', builtin.treesitter, {})
|
||||
end
|
||||
|
||||
}
|
||||
15
lua/plugins/treesitter.lua
Normal file
15
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
branch = 'master',
|
||||
lazy = false,
|
||||
build = ":TSUpdate",
|
||||
config= function()
|
||||
--TREESITTER
|
||||
local config = require("nvim-treesitter.configs")
|
||||
config.setup({
|
||||
ensure_installed ={"lua", "c", "python", "cpp", "typescript", "javascript", "html", "json5"},
|
||||
highlight ={enable=true},
|
||||
indent ={ disable=true },
|
||||
})
|
||||
end
|
||||
}
|
||||
Reference in New Issue
Block a user