A readme explaining how to make neovim work fast
| 1 | local M = {} |
| 2 | |
| 3 | -- tabs function |
| 4 | |
| 5 | vim.bo.tabstop = length |
| 6 | vim.bo.shiftwidth = length |
| 7 | vim.bo.softtabstop = length |
| 8 | vim.bo.expandtab = true |
| 9 | end |
| 10 | |
| 11 | -- configure a language |
| 12 | |
| 13 | if vim.bo.filetype == filetype then |
| 14 | func() |
| 15 | end |
| 16 | local augroup = vim.api.nvim_create_augroup(filetype .. "Options", { clear = true }) |
| 17 | vim.api.nvim_create_autocmd("Filetype", { |
| 18 | group = augroup, |
| 19 | callback = func, |
| 20 | }) |
| 21 | end |
| 22 | |
| 23 | return M |