nvim: fixed indentation, added treesitter/telescope
This commit is contained in:
parent
9b8432ef4c
commit
173e25046f
|
@ -1,6 +1,6 @@
|
||||||
|
require("config.plg")
|
||||||
require("config.map")
|
require("config.map")
|
||||||
require("config.opt")
|
require("config.opt")
|
||||||
require("config.plg")
|
|
||||||
|
|
||||||
-- Colorscheme configuration
|
-- Colorscheme configuration
|
||||||
require("gruvbox").setup({
|
require("gruvbox").setup({
|
||||||
|
@ -8,3 +8,9 @@ require("gruvbox").setup({
|
||||||
transparent_mode = true
|
transparent_mode = true
|
||||||
})
|
})
|
||||||
vim.cmd("colorscheme gruvbox")
|
vim.cmd("colorscheme gruvbox")
|
||||||
|
|
||||||
|
-- ensure highlighting
|
||||||
|
require("nvim-treesitter.configs").setup({
|
||||||
|
ensure_installed = { "c", "lua", "go", "bash", "make", "html", "css" }
|
||||||
|
})
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
local tl = require("telescope.builtin")
|
||||||
local key = vim.keymap
|
local key = vim.keymap
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
|
@ -11,4 +12,9 @@ key.set("n", "<C-l>", "<C-w>l")
|
||||||
key.set("n", "<C-L>", ":vs<CR>")
|
key.set("n", "<C-L>", ":vs<CR>")
|
||||||
key.set("n", "<C-J>", ":sp<CR>")
|
key.set("n", "<C-J>", ":sp<CR>")
|
||||||
|
|
||||||
key.set("n", "<Esc><Esc>", ":nohlsearch<CR>", { silent = true })
|
key.set("n", "<Esc><Esc>", ":nohlsearch<CR>", { silent = true })
|
||||||
|
|
||||||
|
key.set("n", "<leader>ff", tl.find_files)
|
||||||
|
key.set("n", "<leader>f<leader>", tl.git_files)
|
||||||
|
key.set("n", "<leader><leader>", tl.buffers)
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,21 @@
|
||||||
-- Initialize lazy.nvim
|
-- Initialize lazy.nvim
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
"--filter=blob:none",
|
"--filter=blob:none",
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
"--branch=stable",
|
"--branch=stable",
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
local plugins = {
|
local plugins = {
|
||||||
{ "ellisonleao/gruvbox.nvim", priority = 1000 , config = true, opts = ...}
|
{ "ellisonleao/gruvbox.nvim", priority = 1000 , config = true, opts = ...},
|
||||||
|
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
||||||
|
{ 'nvim-telescope/telescope.nvim', tag = '0.1.5', dependencies = { 'nvim-lua/plenary.nvim' } }
|
||||||
}
|
}
|
||||||
|
|
||||||
require("lazy").setup(plugins, {})
|
require("lazy").setup(plugins, {})
|
||||||
|
|
Loading…
Reference in New Issue