diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 9b48fbd..18d6851 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -42,10 +42,10 @@ lsp.configure("efm", { filetypes = { "sh", "bash", "zsh" } }) ---lsp.on_attach(function(client, bufnr) --- local opts = { buffer = bufnr, remap = false } --- vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts) ---end) +lsp.on_attach(function(client, bufnr) + local opts = { buffer = bufnr, remap = false } + vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts) +end) lsp.setup() diff --git a/lua/junikim/remap.lua b/lua/junikim/remap.lua index 79ae4dd..e848bb5 100644 --- a/lua/junikim/remap.lua +++ b/lua/junikim/remap.lua @@ -31,6 +31,8 @@ vim.keymap.set({ "n", "v" }, "y", [["+y]]) vim.keymap.set("n", "Y", [["+Y]]) vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) vim.keymap.set("n", "X", "!chmod -x %", { silent = true }) +-- execute file +vim.keymap.set("n", "e", "!%:p", { silent = true }) vim.keymap.set("n", "vc", "e ~/.config/nvim"); vim.keymap.set("n", "vz", "e ~/.zshrc");