This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /** | |
| Нормализация блочной модели | |
| */ | |
| *, | |
| ::before, | |
| ::after { | |
| box-sizing: border-box; | |
| } | |
| /** | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | -- show cursor line only in active window | |
| vim.api.nvim_create_autocmd({ "InsertLeave", "WinEnter" }, { | |
| callback = function() | |
| local ok, cl = pcall(vim.api.nvim_win_get_var, 0, "auto-cursorline") | |
| if ok and cl then | |
| vim.wo.cursorline = true | |
| vim.api.nvim_win_del_var(0, "auto-cursorline") | |
| end | |
| end, | |
| }) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | -- Fix conceallevel for json & help files | |
| vim.api.nvim_create_autocmd({ "FileType" }, { | |
| pattern = { "json", "jsonc" }, | |
| callback = function() | |
| vim.wo.spell = false | |
| vim.wo.conceallevel = 0 | |
| end, | |
| }) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | -- Taken from: https://github.com/LintaoAmons/CoolStuffes/blob/5b117d662f1f64e528545d584f5781f4522092c7/lazyvim/.config/nvim/lua/config/autocmds.lua#L5 | |
| -- HACK: Autosave | |
| local function save() | |
| local buf = vim.api.nvim_get_current_buf() | |
| vim.api.nvim_buf_call(buf, function() | |
| vim.cmd("silent! write") | |
| end) | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | -- Take from here: https://github.com/LazyVim/LazyVim/discussions/1346 | |
| -- Auto change input method between Normal and Insert mode | |
| vim.api.nvim_create_autocmd({ "InsertLeave" }, { | |
| pattern = "*", | |
| callback = function() | |
| -- record the input method in Insert mode | |
| local f_input = vim.fn.stdpath("state") .. "/last_input.tmp" | |
| os.execute("im-select > " .. f_input) | |
| -- switch back to `ABC` input method in Normal mode | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | -- That code taken from here: | |
| -- https://github.com/dpetka2001/dotfiles/blob/3cd9413e1f32589b6bb7a090006f70677379d987/dot_config/nvim/lua/plugins/inline_edit.lua | |
| return { | |
| -- Plugin for editing <script> tags in html files in proxy buffer | |
| -- which also provides support for correct attach `typescript` LSP | |
| { | |
| "AndrewRadev/inline_edit.vim", | |
| lazy = true, | |
| cmd = { "InlineEdit" }, | |
| keys = { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | -- Recipe taken from: https://github.com/LazyVim/LazyVim/discussions/1188 | |
| return { | |
| "b0o/incline.nvim", | |
| event = "BufReadPre", | |
| enabled = true, | |
| config = function() | |
| local colors = require("tokyonight.colors").setup() | |
| require("incline").setup({ | |
| highlight = { | |
| groups = { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | -- That snippet is used to assign mappings in neovim | |
| local function map(modes, lhs, rhs, opts) | |
| if type(modes) == "string" then | |
| modes = { modes } | |
| end | |
| local keys = require("lazy.core.handler").handlers.keys | |
| for _, mode in pairs(modes) do | |
| if not keys.active[keys.parse({ lhs, mode = mode }).id] then | |
| opts = opts or {} | |
| opts.silent = opts.silent ~= false | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # ┌───────────── minute (0 - 59) | |
| # │ ┌───────────── hour (0 - 23) | |
| # │ │ ┌───────────── day of month (1 - 31) | |
| # │ │ │ ┌───────────── month (1 - 12) | |
| # │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday; | |
| # │ │ │ │ │ 7 is also Sunday on some systems) | |
| # │ │ │ │ │ | |
| # │ │ │ │ │ | |
| # * * * * * command_to_execute | 
NewerOlder