diff options
| author | Cryxtalix <fgx8p9t@protonmail.com> | 2025-02-07 04:28:13 +0800 |
|---|---|---|
| committer | Cryxtalix <fgx8p9t@protonmail.com> | 2025-02-07 04:28:13 +0800 |
| commit | b6b7c5b0eedb9ea28c7d7429cbeb73d8f996520e (patch) | |
| tree | e641d96713c43a3ef8dc548b2bef5bf89e374e61 /.config/nvim/ftplugin/c.lua | |
| parent | ad03e606b4aaebf2fbad9e6f9ea1d9ebace308df (diff) | |
Added ssh configuration
Diffstat (limited to '.config/nvim/ftplugin/c.lua')
| -rw-r--r-- | .config/nvim/ftplugin/c.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.config/nvim/ftplugin/c.lua b/.config/nvim/ftplugin/c.lua index 0a3ce37..4514ab3 100644 --- a/.config/nvim/ftplugin/c.lua +++ b/.config/nvim/ftplugin/c.lua @@ -1,5 +1,12 @@ -local size = 8 +local indent_size = 8 +local use_tabs = false -local settings = string.format("setlocal softtabstop=%s tabstop=%s shiftwidth=%s expandtab", size, size, size) +local settings = string.format("setlocal softtabstop=%s tabstop=%s shiftwidth=%s", indent_size, indent_size, indent_size) + +if use_tabs == true then + settings = settings .. " noexpandtab" +else + settings = settings .. " expandtab" +end vim.cmd(settings) |
