init
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
vim.cmd("set expandtab")
|
||||
vim.cmd("set tabstop=2")
|
||||
vim.cmd("set softtabstop=2")
|
||||
vim.cmd("set shiftwidth=2")
|
||||
vim.g.mapleader = " "
|
||||
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup("plugins")
|
||||
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', '<C-e>', ':Neotree filesystem reveal left<CR>')
|
||||
|
||||
require('nvim-treesitter').setup {
|
||||
ensure_installed = { "c", "javascript", "lua" },
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true }
|
||||
}
|
||||
|
||||
require("catppuccin").setup()
|
||||
vim.cmd.colorscheme "catppuccin"
|
||||
Reference in New Issue
Block a user