current nvim-config
This commit is contained in:
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