From 1474caa8f624aa568ea011629d1aec4ae2aca3c1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:03:12 +0530 Subject: Using fzf as the application launcher. --- modules/tools/editor/neovim/config/keybindings.lua | 3 --- modules/tools/editor/neovim/config/options.lua | 16 ++++++++-------- 2 files changed, 8 insertions(+), 11 deletions(-) (limited to 'modules/tools/editor/neovim/config') 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", "", ":wincmd h", { silent = true }); vim.keymap.set("n", "", ":wincmd j", { silent = true }); vim.keymap.set("n", "", ":wincmd k", { silent = true }); vim.keymap.set("n", "", ":wincmd l", { silent = true }); - --- NvimTree -vim.keymap.set("n", "", ":NvimTreeToggle", { 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, +}); -- cgit v1.2.3