Skip to content

Commit

Permalink
fix(nvim): Update config for new plugin versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Oct 16, 2023
1 parent d392d22 commit 4f17e00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions nvim/lua/my/lsp/filetypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ function M.treesitter_parsers()
end
end

-- insert extra parsers here
table.insert(result, 'regex')

return result
end

Expand Down
6 changes: 3 additions & 3 deletions nvim/lua/my/lsp/rust.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ return {
return
end

local extraArgs = checkOnSave.extraArgs
for _, v in pairs(extraArgs) do
checkOnSave.extraArgs = checkOnSave.extraArgs or {}
for _, v in pairs(checkOnSave.extraArgs or {}) do
if string.find(v, needle) then
return
end
end

local target_dir = config.root_dir .. '/target/ide-clippy'
table.insert(extraArgs, '--target-dir=' .. target_dir)
table.insert(checkOnSave.extraArgs, '--target-dir=' .. target_dir)
end,
settings = {
['rust-analyzer'] = {
Expand Down

0 comments on commit 4f17e00

Please sign in to comment.