diff --git a/dotfiles/nvim/.config/nvim/lua/config/which_key.lua b/dotfiles/nvim/.config/nvim/lua/config/which_key.lua index b23c356b..4ff101de 100644 --- a/dotfiles/nvim/.config/nvim/lua/config/which_key.lua +++ b/dotfiles/nvim/.config/nvim/lua/config/which_key.lua @@ -43,10 +43,10 @@ whichKey.add({ { ",.", group = "profile" }, }) -local findNamedFile = { - "lua require'telescope.builtin'.find_files({find_command={'fd', '-H', '-i', vim.fn.expand('')}})", - "Find named file", -} +-- local findNamedFile = { +-- "lua require'telescope.builtin'.find_files({find_command={'fd', '-H', '-i', vim.fn.expand('')}})", +-- "Find named file", +-- } local my = require("myutils") whichKey.add({ diff --git a/dotfiles/nvim/.config/nvim/lua/myutils.lua b/dotfiles/nvim/.config/nvim/lua/myutils.lua index edb6cec9..cd8c8352 100644 --- a/dotfiles/nvim/.config/nvim/lua/myutils.lua +++ b/dotfiles/nvim/.config/nvim/lua/myutils.lua @@ -38,7 +38,7 @@ function M.find_node_process() return processOnPort end local processesMatchingNode = M.find_named_processes("node") - if table.getn(processesMatchingNode) == 1 then + if #processesMatchingNode == 1 then return processesMatchingNode[0].pid end return processesMatchingNode