Untitled
unknown
lua
10 hours ago
1.7 kB
6
No Index
in a month
vim.cmd("set expandtab") vim.cmd("set tabstop=2") vim.cmd("set softtabstop=2") vim.cmd("set shiftwidth=2") vim.g.mapleader = " " -- Bootstrap lazy.nvim local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = "https://github.com/folke/lazy.nvim.git" local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) if vim.v.shell_error ~= 0 then vim.api.nvim_echo({ { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { out, "WarningMsg" }, { "\nPress any key to exit..." }, }, true, {}) vim.fn.getchar() os.exit(1) end end vim.opt.rtp:prepend(lazypath) -- Make sure to setup `mapleader` and `maplocalleader` before -- loading lazy.nvim so that mappings are correct. -- This is also a good place to setup other settings (vim.opt) vim.g.mapleader = " " vim.g.maplocalleader = "\\" local plugins = { { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, { 'nvim-telescope/telescope.nvim', tag = '0.1.8', dependencies = { 'nvim-lua/plenary.nvim' } }, { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate"} } local opts= {} -- Setup lazy.nvim require("lazy").setup(plugins, opts) local builtin = require("telescope.builtin") vim.keymap.set('n', '<C-p>', builtin.find_files, {}) vim.keymap.set('n', '<leader>fg', builtin.live_grep, {}) require("catppuccin").setup() vim.cmd.colorscheme "catppuccin" local tsconfig = require("nvim-treesitter.configs") tsconfig.setup({ ensure_installed = {"lua", "javascript", "php"}, highlight = { enable = true }, indent = { enable = true } })
Editor is loading...
Leave a Comment