A readme explaining how to make neovim work fast
using ftplugin for file type config now
7 files changed, +8 -13
+4-4README.md
| @@ -6,8 +6,8 @@ convert to neovim. | ||
| 6 | 6 | ## Prerequisites |
| 7 | 7 | |
| 8 | 8 | - If you are using a mac, you need to use iterm2. The default terminal doesn't |
| 9 | -support true color, so | |
| 10 | -all the colorschemes will look terrible and unreadable. | |
| 9 | + support true color, so | |
| 10 | + all the colorschemes will look terrible and unreadable. | |
| 11 | 11 | - Install a [NerdFont Font](https://www.nerdfonts.com/font-downloads) |
| 12 | 12 | - [FD-Find](https://github.com/sharkdp/fd) |
| 13 | 13 | |
| @@ -84,7 +84,7 @@ return { | ||
| 84 | 84 | |
| 85 | 85 | - Add this to autocmd |
| 86 | 86 | |
| 87 | -```lua | |
| 87 | +````lua | |
| 88 | 88 | -- autosave on focus lost and buffer change |
| 89 | 89 | local group = vim.api.nvim_create_augroup("autosave_group", { clear = true }) |
| 90 | 90 | vim.api.nvim_create_autocmd({ "FocusLost", "BufLeave" }, { |
| @@ -126,4 +126,4 @@ return { | ||
| 126 | 126 | enabled = not vim.g.started_by_firenvim, |
| 127 | 127 | }, |
| 128 | 128 | } |
| 129 | -``` | |
| 129 | +```` |
+3-0after/ftplugin/markdown.lua
| @@ -0,0 +1,3 @@ | ||
| 1 | +local utils = require("utils.formatting") | |
| 2 | + | |
| 3 | +utils.set_tabs(4) |
+0-6lua/config/autocmds/formatting.lua
| @@ -1,6 +0,0 @@ | ||
| 1 | -local utils = require("config.utils.formatting") | |
| 2 | - | |
| 3 | --- Markdown | |
| 4 | -utils.config_lang("markdown", function() | |
| 5 | - utils.set_tabs(2) | |
| 6 | -end) |
+0-2lua/config/autocmds/init.lua
| @@ -6,8 +6,6 @@ | ||
| 6 | 6 | -- |
| 7 | 7 | -- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults) |
| 8 | 8 | -- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell") |
| 9 | -require("config/autocmds/formatting") | |
| 10 | - | |
| 11 | 9 | local general = vim.api.nvim_create_augroup("autosave_group", { clear = true }) |
| 12 | 10 | |
| 13 | 11 | -- autosave on focus lost and buffer change |
+0-0lua/plugins/nvim-lspconfig.lua → lua/plugins/lspconfig.lua
No content changes (mode or rename only).
+0-0lua/config/utils/formatting.lua → lua/utils/formatting.lua
No content changes (mode or rename only).
+1-1tmux.conf
| @@ -21,7 +21,7 @@ TMUX_FZF_LAUNCH_KEY="C-f" | ||
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | # Prefix keybindings |
| 24 | -bind r source-file ~/.tmux.conf \; display "Reloaded tmux config!" | |
| 24 | +bind r source-file ~/.tmux.conf \; display-popup -x "200" -y 0 -w 30 -h 3 -E 'echo Reloaded tmux config; sleep 2' | |
| 25 | 25 | bind c new-window -c "#{pane_current_path}" \; display "Opened new window in #{pane_current_path}" |
| 26 | 26 | bind a attach-session -c "#{pane_current_path}" \; display "Attached current session to #{pane_current_path}" |
| 27 | 27 | bind e show-environment |