aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/editor/neovim/config
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-10-03 22:03:12 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-10-03 22:03:12 +0530
commit1474caa8f624aa568ea011629d1aec4ae2aca3c1 (patch)
tree52ba6bda3c8b2b7839543e71271931122b587900 /modules/tools/editor/neovim/config
parent6349cff878c36336ed9027423aaebf98ac883501 (diff)
downloadhome-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.tar.gz
home-manager-config-1474caa8f624aa568ea011629d1aec4ae2aca3c1.zip
Using fzf as the application launcher.
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,
+});