fix(nvim): prettier formatter path
fix(nvim): prettier formatter path

diff --git a/nvim/nvim/lua/_/formatter.lua b/nvim/nvim/lua/_/formatter.lua
index 89a0294..1637d44 100644
--- a/nvim/nvim/lua/_/formatter.lua
+++ b/nvim/nvim/lua/_/formatter.lua
@@ -3,10 +3,13 @@ local has_formatter, formatter = pcall(require, 'formatter')
 local M = {}

 local function prettier()
-  local local_prettier = '.yarn/sdks/prettier/index.js'
+  local pnp_prettier = '.yarn/sdks/prettier/index.js'
+  local node_modules_prettier = './node_modules/.bin/prettier'
   local prettier_exe = 'prettier';
-  if vim.fn.executable(local_prettier) == 0 then
-    prettier_exe = './node_modules/.bin/prettier'
+  if vim.fn.executable(pnp_prettier) == 1 then
+    prettier_exe = pnp_prettier;
+  elseif vim.fn.executable(node_modules_prettier) == 1 then
+    prettier_exe = node_modules_prettier;
   end
   return {
     exe=prettier_exe,

skyuplam/dotfiles,skyuplam/dotfiles