aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/editor/neovim/config
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tools/editor/neovim/config')
-rw-r--r--modules/tools/editor/neovim/config/keybindings.lua3
-rw-r--r--modules/tools/editor/neovim/config/options.lua16
2 files changed, 8 insertions, 11 deletions
diff --git a/modules/tools/editor/neovim/config/keybindings.lua b/modules/tools/editor/neovim/config/keybindings.lua
index 3e8e0fa..3f2c9bf 100644
--- a/modules/tools/editor/neovim/config/keybindings.lua
+++ b/modules/tools/editor/neovim/config/keybindings.lua
@@ -3,6 +3,3 @@ vim.keymap.set("n", "<C-h>", ":wincmd h<CR>", { silent = true });
vim.keymap.set("n", "<C-j>", ":wincmd j<CR>", { silent = true });
vim.keymap.set("n", "<C-k>", ":wincmd k<CR>", { silent = true });
vim.keymap.set("n", "<C-l>", ":wincmd l<CR>", { silent = true });
-
--- NvimTree
-vim.keymap.set("n", "<C-n>", ":NvimTreeToggle<CR>", { silent = true });
diff --git a/modules/tools/editor/neovim/config/options.lua b/modules/tools/editor/neovim/config/options.lua
index 450e613..bd475c7 100644
--- a/modules/tools/editor/neovim/config/options.lua
+++ b/modules/tools/editor/neovim/config/options.lua
@@ -31,11 +31,11 @@ vim.api.nvim_create_autocmd("FileType", {
});
-- Exception that use spaces
--- vim.api.nvim_create_autocmd("FileType", {
--- pattern = {},
--- callback = function()
--- vim.bo.expandtab = true;
--- vim.bo.tabstop = 2;
--- vim.bo.shiftwidth = 2;
--- end,
--- });
+vim.api.nvim_create_autocmd("FileType", {
+ pattern = { "yaml" },
+ callback = function()
+ vim.bo.expandtab = true;
+ vim.bo.tabstop = 2;
+ vim.bo.shiftwidth = 2;
+ end,
+});