aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/lua/vimrc/init.lua
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-07-17 00:25:58 +0900
committernsfisis <nsfisis@gmail.com>2023-08-19 22:29:38 +0900
commitcddffa79d48087a13965e3605dea667a6fd28801 (patch)
tree0fab1a3e6db0a3fbe28e32b55721299f28bcb398 /.config/nvim/lua/vimrc/init.lua
parent616d202b75034d7a6a6c8f6e88e636cd93b38270 (diff)
downloaddotfiles-cddffa79d48087a13965e3605dea667a6fd28801.tar.gz
dotfiles-cddffa79d48087a13965e3605dea667a6fd28801.tar.zst
dotfiles-cddffa79d48087a13965e3605dea667a6fd28801.zip
neovim: add indentation settings for filetype={javascript,typescript}react
Diffstat (limited to '.config/nvim/lua/vimrc/init.lua')
-rw-r--r--.config/nvim/lua/vimrc/init.lua48
1 files changed, 25 insertions, 23 deletions
diff --git a/.config/nvim/lua/vimrc/init.lua b/.config/nvim/lua/vimrc/init.lua
index 90c8993..562abd8 100644
--- a/.config/nvim/lua/vimrc/init.lua
+++ b/.config/nvim/lua/vimrc/init.lua
@@ -43,29 +43,31 @@ function M.register_filetype_autocmds_for_indentation()
local TAB = false
local indentation_settings = {
- c = { style = SPACE, width = 4 },
- cmake = { style = SPACE, width = 2 },
- cpp = { style = SPACE, width = 4 },
- css = { style = SPACE, width = 2 },
- docbk = { style = SPACE, width = 2 },
- go = { style = TAB, width = 4 },
- haskell = { style = SPACE, width = 4 },
- html = { style = SPACE, width = 2 },
- javascript = { style = SPACE, width = 2 },
- json = { style = SPACE, width = 2 },
- leaf = { style = SPACE, width = 4 },
- lisp = { style = SPACE, width = 2 },
- lua = { style = SPACE, width = 3 },
- markdown = { style = SPACE, width = 4 },
- php = { style = SPACE, width = 2 },
- python = { style = SPACE, width = 4 },
- ruby = { style = SPACE, width = 2 },
- satysfi = { style = SPACE, width = 2 },
- toml = { style = SPACE, width = 2 },
- typescript = { style = SPACE, width = 2 },
- vim = { style = SPACE, width = 4 },
- xml = { style = SPACE, width = 2 },
- yaml = { style = SPACE, width = 2 },
+ c = { style = SPACE, width = 4 },
+ cmake = { style = SPACE, width = 2 },
+ cpp = { style = SPACE, width = 4 },
+ css = { style = SPACE, width = 2 },
+ docbk = { style = SPACE, width = 2 },
+ go = { style = TAB, width = 4 },
+ haskell = { style = SPACE, width = 4 },
+ html = { style = SPACE, width = 2 },
+ javascript = { style = SPACE, width = 2 },
+ javascriptreact = { style = SPACE, width = 2 },
+ json = { style = SPACE, width = 2 },
+ leaf = { style = SPACE, width = 4 },
+ lisp = { style = SPACE, width = 2 },
+ lua = { style = SPACE, width = 3 },
+ markdown = { style = SPACE, width = 4 },
+ php = { style = SPACE, width = 2 },
+ python = { style = SPACE, width = 4 },
+ ruby = { style = SPACE, width = 2 },
+ satysfi = { style = SPACE, width = 2 },
+ toml = { style = SPACE, width = 2 },
+ typescript = { style = SPACE, width = 2 },
+ typescriptreact = { style = SPACE, width = 2 },
+ vim = { style = SPACE, width = 4 },
+ xml = { style = SPACE, width = 2 },
+ yaml = { style = SPACE, width = 2 },
}
for ft, setting in pairs(indentation_settings) do