feat(config): added new plugins
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
require "config.options"
|
||||
|
||||
-- autocmds and keymaps can wait to load
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
group = vim.api.nvim_create_augroup("LazyVim", { clear = true }),
|
||||
|
||||
@@ -32,6 +32,11 @@ bind("n", "zz", "<Cmd>:update<CR>")
|
||||
|
||||
bind("n", ",<space>", "<Cmd>:nohlsearch<CR>" )
|
||||
|
||||
|
||||
-- namespace php
|
||||
vim.keymap.set("n", "<leader>u", "<cmd>GetClass<cr>")
|
||||
vim.keymap.set("n", "<leader>un", "<cmd>Namespace<cr>")
|
||||
|
||||
--windows
|
||||
-- bind("n", "<a-h>", "<Cmd><c-w>h<CR>")
|
||||
-- nnoremap <a-h> <c-w>h
|
||||
|
||||
@@ -6,7 +6,7 @@ if not vim.loop.fs_stat(lazypath) then
|
||||
end
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
|
||||
require('lazy').setup({
|
||||
require("lazy").setup({
|
||||
change_detection = { notify = false },
|
||||
spec = {
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
@@ -16,6 +16,7 @@ require('lazy').setup({
|
||||
-- { import = "lazyvim.plugins.extras.dap.core" },
|
||||
-- { import = "lazyvim.plugins.extras.coding.yanky" },
|
||||
{ import = "lazyvim.plugins.extras.lang.markdown" },
|
||||
-- { import = "lazyvim.plugins.extras.coding.copilot" },
|
||||
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
||||
{ import = "lazyvim.plugins.extras.lang.docker" },
|
||||
{ import = "lazyvim.plugins.extras.lang.json" },
|
||||
@@ -38,7 +39,15 @@ require('lazy').setup({
|
||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||
},
|
||||
-- install = { colorscheme = { "tokyonight", "habamax" } },
|
||||
checker = { enabled = true }, -- automatically check for plugin updates
|
||||
checker = { enabled = true, notify = false }, -- automatically check for plugin updates
|
||||
dev = {
|
||||
path = "~/.config/nvim/lua/plugins",
|
||||
fallback = true,
|
||||
patterns = { "adalessa" },
|
||||
},
|
||||
ui = {
|
||||
border = "rounded",
|
||||
},
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
vim.opt.guifont = "VictorMono Nerd Font:h12"
|
||||
vim.g.mapleader = " "
|
||||
vim.g.snippets = "luasnip"
|
||||
|
||||
-- highlight blade
|
||||
vim.g.blade_custom_directives_pairs = {
|
||||
livewire = "endlivewire",
|
||||
error = "enderror",
|
||||
}
|
||||
|
||||
vim.o.langmap =
|
||||
"ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz"
|
||||
|
||||
@@ -12,11 +19,13 @@ vim.o.spelllang = "ru_ru,en_us"
|
||||
vim.o.linebreak = true
|
||||
vim.g.autoformat = false
|
||||
|
||||
vim.o.background = "dark" -- or "light" for light mode
|
||||
|
||||
local opt = vim.o
|
||||
|
||||
opt.mouse = ""
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
-- opt.relativenumber = true
|
||||
opt.conceallevel = 3
|
||||
opt.hidden = true
|
||||
opt.expandtab = true
|
||||
@@ -28,7 +37,7 @@ opt.errorbells = false
|
||||
opt.wrap = false
|
||||
opt.swapfile = false
|
||||
opt.undofile = true
|
||||
opt.undodir = os.getenv "HOME" .. "/.cache/nvim/undodir"
|
||||
opt.undodir = os.getenv("HOME") .. "/.cache/nvim/undodir"
|
||||
opt.hlsearch = false
|
||||
opt.incsearch = true
|
||||
opt.ignorecase = true
|
||||
@@ -50,5 +59,6 @@ opt.signcolumn = "yes"
|
||||
opt.equalalways = false
|
||||
opt.splitkeep = "screen"
|
||||
opt.shortmess = "filnxtToOFWIcC"
|
||||
opt.termguicolors = true
|
||||
|
||||
require("lazyvim.util").get_root = vim.loop.cwd
|
||||
|
||||
Reference in New Issue
Block a user