diff --git a/DESCRIPTION.md b/DESCRIPTION.md deleted file mode 100644 index e69de29..0000000 diff --git a/lua/custom/luasnip.lua b/lua/custom/luasnip.lua index 99235c6..e6917c7 100644 --- a/lua/custom/luasnip.lua +++ b/lua/custom/luasnip.lua @@ -25,7 +25,7 @@ vim.keymap.set({ "i", "s" }, "", function() end end, { silent = true }) -vim.keymap.set("n", "s", "source ~/.config/nvim_dev/lua/custom/luasnip.lua") +vim.keymap.set("n", "s", "source ~/.config/nvim/lua/custom/luasnip.lua") -- Load custom snippets for _, ft_path in ipairs(vim.api.nvim_get_runtime_file("lua/custom/snippets/*.lua", true)) do diff --git a/lua/custom/plugins/tmux_navigator.lua b/lua/custom/plugins/tmux_navigator.lua new file mode 100644 index 0000000..e7fa738 --- /dev/null +++ b/lua/custom/plugins/tmux_navigator.lua @@ -0,0 +1,18 @@ +return { + "christoomey/vim-tmux-navigator", + cmd = { + "TmuxNavigateLeft", + "TmuxNavigateDown", + "TmuxNavigateUp", + "TmuxNavigateRight", + "TmuxNavigatePrevious", + }, + keys = { + { "", "TmuxNavigateLeft" }, + { "", "TmuxNavigateDown" }, + { "", "TmuxNavigateUp" }, + { "", "TmuxNavigateRight" }, + { "", "TmuxNavigatePrevious" }, + }, +} + diff --git a/lua/custom/snippets/lua.lua b/lua/custom/snippets/lua.lua index 166600a..eaefb80 100644 --- a/lua/custom/snippets/lua.lua +++ b/lua/custom/snippets/lua.lua @@ -1,10 +1,9 @@ +-- Clear snippets collection when souring lua file +require("luasnip.session.snippet_collection").clear_snippets "lua" + local ls = require "luasnip" - -print("hello from lua snips") - ls.add_snippets("lua", { ls.parser.parse_snippet("expand", "-- this is what was expanded kek"), ls.parser.parse_snippet("pipa", "Pipasik"), }) - diff --git a/lua/custom/snippets/python.lua b/lua/custom/snippets/python.lua new file mode 100644 index 0000000..eaefb80 --- /dev/null +++ b/lua/custom/snippets/python.lua @@ -0,0 +1,9 @@ +-- Clear snippets collection when souring lua file +require("luasnip.session.snippet_collection").clear_snippets "lua" + +local ls = require "luasnip" + +ls.add_snippets("lua", { + ls.parser.parse_snippet("expand", "-- this is what was expanded kek"), + ls.parser.parse_snippet("pipa", "Pipasik"), +}) diff --git a/plugin/keymaps.lua b/plugin/keymaps.lua index 70d3e45..3918500 100644 --- a/plugin/keymaps.lua +++ b/plugin/keymaps.lua @@ -1,10 +1,10 @@ local set = vim.keymap.set -- Basic movement keybinds, these make navigating splits easy for me -set("n", "", "") -set("n", "", "") -set("n", "", "") -set("n", "", "") +-- set("n", "", "") +-- set("n", "", "") +-- set("n", "", "") +-- set("n", "", "") -- Bindings for reloading LUA files (used when working with lua files) -- set("n", "x", ".lua", { desc = "Execute the current lne" })