irongit

A readme explaining how to make neovim work fast

using ftplugin for file type config now

huncholanehuncholaneauthored
parent b0c5fbdcommit fa81dc7c36c5a5e9c61f8a3e6b461596d88f686bBrowse files

7 files changed, +8 -13

+4-4README.md
@@ -6,8 +6,8 @@ convert to neovim.
66 ## Prerequisites
77
88 - 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.
1111 - Install a [NerdFont Font](https://www.nerdfonts.com/font-downloads)
1212 - [FD-Find](https://github.com/sharkdp/fd)
1313
@@ -84,7 +84,7 @@ return {
8484
8585 - Add this to autocmd
8686
87-```lua
87+````lua
8888 -- autosave on focus lost and buffer change
8989 local group = vim.api.nvim_create_augroup("autosave_group", { clear = true })
9090 vim.api.nvim_create_autocmd({ "FocusLost", "BufLeave" }, {
@@ -126,4 +126,4 @@ return {
126126 enabled = not vim.g.started_by_firenvim,
127127 },
128128 }
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 @@
66 --
77 -- Or remove existing autocmds by their group name (which is prefixed with `lazyvim_` for the defaults)
88 -- e.g. vim.api.nvim_del_augroup_by_name("lazyvim_wrap_spell")
9-require("config/autocmds/formatting")
10-
119 local general = vim.api.nvim_create_augroup("autosave_group", { clear = true })
1210
1311 -- 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"
2121
2222
2323 # 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'
2525 bind c new-window -c "#{pane_current_path}" \; display "Opened new window in #{pane_current_path}"
2626 bind a attach-session -c "#{pane_current_path}" \; display "Attached current session to #{pane_current_path}"
2727 bind e show-environment