54 lines
1.2 KiB
Lua
54 lines
1.2 KiB
Lua
-- Chechs for instal of lazy.nvim (plugin manager) in not found installs it --
|
|
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|
vim.fn.system({
|
|
"git",
|
|
"clone",
|
|
"--filter=blob:none",
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
"--branch=stable", -- latest stable release
|
|
lazypath,
|
|
})
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
|
|
-- Runs plugins --
|
|
|
|
require("lazy").setup("plugins") -- packet manager --
|
|
|
|
-- local builtin = require("telescope.builtin") -- fuzzy finder --
|
|
|
|
local config = require("nvim-treesitter.configs") -- tree sitter plugin config for langs --
|
|
config.setup({
|
|
ensure_installed = {
|
|
"lua", "python",
|
|
"javascript", "html", "css",
|
|
"markdown",
|
|
},
|
|
highlight = { enable = true },
|
|
indent = { enable = true },
|
|
})
|
|
|
|
require("everforest").setup({}) --color scheme
|
|
vim.cmd.colorscheme "everforest"
|
|
|
|
--require("catppuccin").setup(plugins, opts) -- color scheme --
|
|
--schemevim.cmd.colorscheme "catppuccin"
|
|
|
|
require('lualine').setup{
|
|
options = {
|
|
globalstatus = true,
|
|
}
|
|
} -- bottom line
|
|
|
|
-- Keypams --
|
|
|
|
|
|
vim.keymap.set('n', '<C-m>', ':Neotree filesystem toggle left<CR>', {})
|
|
|
|
-- Vim options --
|
|
|
|
require("vim-options")
|